Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query about Service Provider initialization

13 views
Skip to first unread message

Mohit

unread,
Dec 16, 2009, 4:45:01 AM12/16/09
to

Hi friends,

Can anyone tell me how TSP can prompt or force the TAPI server to start the
provider intialization process (i.e., calling TSPI_lineNegotiateTSPIVersion()
with dwDeviceID as INITIALIZE_NEGOTIATION and TSPI_providerEnumDevices()
functions) when no TAPI application is running or using that service provider.

Thanks,
Mohit

Andreas Marschall [exMVP TAPI]

unread,
Dec 16, 2009, 6:54:43 AM12/16/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:43285B1B-FA33-4F68...@microsoft.com...

Mohit,
this is not possible.
TAPISRV does this only when the Telephony Service is starting.

What is the purposes of your request?

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto� Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no
rights.

Mohit

unread,
Dec 16, 2009, 11:25:01 PM12/16/09
to

"Andreas Marschall [exMVP TAPI]" wrote:

> "Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
> news:43285B1B-FA33-4F68...@microsoft.com...
> > Can anyone tell me how TSP can prompt or force the TAPI server to start
> > the
> > provider intialization process (i.e., calling
> > TSPI_lineNegotiateTSPIVersion()
> > with dwDeviceID as INITIALIZE_NEGOTIATION and TSPI_providerEnumDevices()
> > functions) when no TAPI application is running or using that service
> > provider.
>
> Mohit,
> this is not possible.
> TAPISRV does this only when the Telephony Service is starting.
>
> What is the purposes of your request?
>


So, when the Telephony Services is starting, the TAPISRV calls
TSPI_lineNegotiateTSPIVersion(), TSPI_providerEnumDevices() and
TSPI_providerInit() for Service Provider?

Actually I had obsered this behavior in the some vendor's TSP. It provides
ON and OFF the TSP flags. When this flag is ON then it requests to restart
the PC and when windows gets start, TAPISRV negotiates the TSPI version by
calling TSPI_lineNegotiateTSPIVersion() and then calls
TSPI_providerEnumDevices() to get the number of line and phone devices
supported by the TSP.

Secondly, this Telephony Service is the services provided by MS Windows OS,
i.e., which is listed in services.msc?

If it is so, then is there any method using which I can enable or disable
the Telephony Service from services.msc from my TSP configuration window?


> --
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
> TAPI / TSP Developer and Tester
> My TAPI and TSPI FAQ:
> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> My Toto® Tools (a collection of free, mostly TAPI related tools):
> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
> TAPI development around the world (Frappr! map):
> http://www.frappr.com/TAPIaroundTheWorld
> * Please post all messages and replies to the newsgroup so all may
> * benefit from the discussion. Private mail is usually not replied to.
> * This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

> .
>

Thanks,
Mohit

Andreas Marschall [exMVP TAPI]

unread,
Dec 17, 2009, 6:37:51 AM12/17/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:8869E9A3-ADBA-4C51...@microsoft.com...

> So, when the Telephony Services is starting, the TAPISRV calls
> TSPI_lineNegotiateTSPIVersion(), TSPI_providerEnumDevices() and
> TSPI_providerInit() for Service Provider?

Yes.

> Actually I had obsered this behavior in the some vendor's TSP. It provides
> ON and OFF the TSP flags. When this flag is ON then it requests to restart
> the PC and when windows gets start, TAPISRV negotiates the TSPI version by
> calling TSPI_lineNegotiateTSPIVersion() and then calls
> TSPI_providerEnumDevices() to get the number of line and phone devices
> supported by the TSP.

Mohit,
I still don't understand the deeper purpose of this "ON and OFF TSP flag".
A user can easily "disable" a TSP by clicking on "Remove" button in
Control Panel / Phone And Modem Options / Advanced
and afterwards "enabling" it again via "Add..." button.


> Secondly, this Telephony Service is the services provided by MS Windows
> OS,
> i.e., which is listed in services.msc?

Yes, TAPISRV is the Telephony Service and it is part of the OS.

> If it is so, then is there any method using which I can enable or disable
> the Telephony Service from services.msc from my TSP configuration window?

Mohit,
if you diasable TAPISRV then this will affect *all* TSPs, not only a
specific one.
In Services Control Manager (Services.MSC) you can set the ServiceStartMode
to
- Disabled
- Manual
- Automatic
You can also stop/(re-)start it from there or via console
- NET STOP TAPISRV
- NET START TAPISRV
But again, this affects the *complete* Telephony Service, not only a single
TSP.

Mohit

unread,
Dec 17, 2009, 7:47:01 AM12/17/09
to

"Andreas Marschall [exMVP TAPI]" wrote:

> "Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
> news:8869E9A3-ADBA-4C51...@microsoft.com...
> > So, when the Telephony Services is starting, the TAPISRV calls
> > TSPI_lineNegotiateTSPIVersion(), TSPI_providerEnumDevices() and
> > TSPI_providerInit() for Service Provider?
>
> Yes.
>
> > Actually I had obsered this behavior in the some vendor's TSP. It provides
> > ON and OFF the TSP flags. When this flag is ON then it requests to restart
> > the PC and when windows gets start, TAPISRV negotiates the TSPI version by
> > calling TSPI_lineNegotiateTSPIVersion() and then calls
> > TSPI_providerEnumDevices() to get the number of line and phone devices
> > supported by the TSP.
>
> Mohit,
> I still don't understand the deeper purpose of this "ON and OFF TSP flag".
> A user can easily "disable" a TSP by clicking on "Remove" button in
> Control Panel / Phone And Modem Options / Advanced
> and afterwards "enabling" it again via "Add..." button.
>
>


The problem in removing the TSP is that it will uninstall the TSP from the
PC and when we install the TSP again, the Permenent Provider ID for the TSP
gets changed. So, it will be like a fresh installation of TSP.
What I had obsereved in some vendor's TSP was, when the TSP is OFF then it
was not get removed from the list of service providers and when the Telephony
Service gets start (at power on of PC) it was not calling
TSPI_lineNegotiateTSPIVersion() or may be it was not entertained by TSP.

> > Secondly, this Telephony Service is the services provided by MS Windows
> > OS,
> > i.e., which is listed in services.msc?
>
> Yes, TAPISRV is the Telephony Service and it is part of the OS.
>
> > If it is so, then is there any method using which I can enable or disable
> > the Telephony Service from services.msc from my TSP configuration window?
>
> Mohit,
> if you diasable TAPISRV then this will affect *all* TSPs, not only a
> specific one.
> In Services Control Manager (Services.MSC) you can set the ServiceStartMode
> to
> - Disabled
> - Manual
> - Automatic
> You can also stop/(re-)start it from there or via console
> - NET STOP TAPISRV
> - NET START TAPISRV
> But again, this affects the *complete* Telephony Service, not only a single
> TSP.
>

So, there is no method to hide the TSP from the TPISRV excepting removing it?


> --
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
> TAPI / TSP Developer and Tester
> My TAPI and TSPI FAQ:
> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> My Toto® Tools (a collection of free, mostly TAPI related tools):
> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
> TAPI development around the world (Frappr! map):
> http://www.frappr.com/TAPIaroundTheWorld
> * Please post all messages and replies to the newsgroup so all may
> * benefit from the discussion. Private mail is usually not replied to.
> * This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

> .
>

Andreas Marschall [exMVP TAPI]

unread,
Dec 17, 2009, 10:15:13 AM12/17/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:052A1C99-8485-46FB...@microsoft.com...

> The problem in removing the TSP is that it will uninstall the TSP from the
> PC and when we install the TSP again, the Permenent Provider ID for the
> TSP
> gets changed. So, it will be like a fresh installation of TSP.
> What I had obsereved in some vendor's TSP was, when the TSP is OFF then it
> was not get removed from the list of service providers and when the
> Telephony
> Service gets start (at power on of PC) it was not calling
> TSPI_lineNegotiateTSPIVersion() or may be it was not entertained by TSP.

Mohit,
how can you be sure about not calling TSPI_lineNegotiateTSPIVersion() ?
How did you check this?

> So, there is no method to hide the TSP from the TPISRV excepting removing
> it?

Maybe the TSP returns LINEERR_OPERATIONUNAVAIL from
TSPI_lineNegotiateTSPIVersion() / TSPI_providerEnumDevices() ?

Mohit

unread,
Dec 17, 2009, 11:06:01 PM12/17/09
to
Thanks Andreas for your reply

"Andreas Marschall [exMVP TAPI]" wrote:

> "Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
> news:052A1C99-8485-46FB...@microsoft.com...
> > The problem in removing the TSP is that it will uninstall the TSP from the
> > PC and when we install the TSP again, the Permenent Provider ID for the
> > TSP
> > gets changed. So, it will be like a fresh installation of TSP.
> > What I had obsereved in some vendor's TSP was, when the TSP is OFF then it
> > was not get removed from the list of service providers and when the
> > Telephony
> > Service gets start (at power on of PC) it was not calling
> > TSPI_lineNegotiateTSPIVersion() or may be it was not entertained by TSP.
>
> Mohit,
> how can you be sure about not calling TSPI_lineNegotiateTSPIVersion() ?
> How did you check this?
>

Actually that TSP was generating a debug file in which it was logging all
events.

> > So, there is no method to hide the TSP from the TPISRV excepting removing
> > it?
>
> Maybe the TSP returns LINEERR_OPERATIONUNAVAIL from
> TSPI_lineNegotiateTSPIVersion() / TSPI_providerEnumDevices() ?
>

Yes it might be.

> --
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
> TAPI / TSP Developer and Tester
> My TAPI and TSPI FAQ:
> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> My Toto® Tools (a collection of free, mostly TAPI related tools):
> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
> TAPI development around the world (Frappr! map):
> http://www.frappr.com/TAPIaroundTheWorld
> * Please post all messages and replies to the newsgroup so all may
> * benefit from the discussion. Private mail is usually not replied to.
> * This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

> .
>

Andreas Marschall [exMVP TAPI]

unread,
Dec 18, 2009, 6:13:31 AM12/18/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:54B24345-44A2-4314...@microsoft.com...

> Thanks Andreas for your reply

Mohit, you are welcome.

>> > What I had obsereved in some vendor's TSP was, when the TSP is OFF then
>> > it
>> > was not get removed from the list of service providers and when the
>> > Telephony
>> > Service gets start (at power on of PC) it was not calling
>> > TSPI_lineNegotiateTSPIVersion() or may be it was not entertained by
>> > TSP.
>>

>> how can you be sure about not calling TSPI_lineNegotiateTSPIVersion() ?
>> How did you check this?
>
> Actually that TSP was generating a debug file in which it was logging all
> events.

The logging may be incomplete or even suppressed in this case.

sibi burhan

unread,
Sep 19, 2010, 11:17:23 AM9/19/10
to
Hi,
When ever call lands in windows 2003 server , it works fine after 20 min it automatically stops the telephony service.i am using a TAPi bridge application to collect caller id.

When i am trying to restart telephony service manually.it shows error.

System's activity log shows EVENT id:7031 Telephony service stop uninterpted...etc.

Do we need to keep new TapiSrv.dll or need to run new hotfix of windows will solve the issue?

Please please adivise!

> On Wednesday, December 16, 2009 4:45 AM Mohit wrote:

> Hi friends,


>
> Can anyone tell me how TSP can prompt or force the TAPI server to start the
> provider intialization process (i.e., calling TSPI_lineNegotiateTSPIVersion()
> with dwDeviceID as INITIALIZE_NEGOTIATION and TSPI_providerEnumDevices()
> functions) when no TAPI application is running or using that service provider.
>

> Thanks,
> Mohit


>> On Wednesday, December 16, 2009 6:54 AM Andreas Marschall [exMVP TAPI] wrote:

>> Mohit,
>> this is not possible.
>> TAPISRV does this only when the Telephony Service is starting.
>>
>> What is the purposes of your request?
>>

>> --
>> Best Regards
>> Andreas Marschall
>> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
>> TAPI / TSP Developer and Tester
>> My TAPI and TSPI FAQ:
>> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm

>> My Toto? Tools (a collection of free, mostly TAPI related tools):


>> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
>> TAPI development around the world (Frappr! map):
>> http://www.frappr.com/TAPIaroundTheWorld
>> * Please post all messages and replies to the newsgroup so all may
>> * benefit from the discussion. Private mail is usually not replied to.
>> * This posting is provided "AS IS" with no warranties, and confers no
>> rights.


>>> On Wednesday, December 16, 2009 11:25 PM Mohit wrote:

>>> "Andreas Marschall [exMVP TAPI]" wrote:
>>>
>>>
>>>

>>> So, when the Telephony Services is starting, the TAPISRV calls
>>> TSPI_lineNegotiateTSPIVersion(), TSPI_providerEnumDevices() and
>>> TSPI_providerInit() for Service Provider?
>>>

>>> Actually I had obsered this behavior in the some vendor's TSP. It provides
>>> ON and OFF the TSP flags. When this flag is ON then it requests to restart
>>> the PC and when windows gets start, TAPISRV negotiates the TSPI version by
>>> calling TSPI_lineNegotiateTSPIVersion() and then calls
>>> TSPI_providerEnumDevices() to get the number of line and phone devices
>>> supported by the TSP.
>>>

>>> Secondly, this Telephony Service is the services provided by MS Windows OS,
>>> i.e., which is listed in services.msc?
>>>

>>> If it is so, then is there any method using which I can enable or disable
>>> the Telephony Service from services.msc from my TSP configuration window?
>>>
>>>
>>>

>>> Thanks,
>>> Mohit


>>>> On Thursday, December 17, 2009 6:37 AM Andreas Marschall [exMVP TAPI] wrote:

>>>> Yes.
>>>>
>>>>
>>>> Mohit,
>>>> I still do not understand the deeper purpose of this "ON and OFF TSP flag".


>>>> A user can easily "disable" a TSP by clicking on "Remove" button in
>>>> Control Panel / Phone And Modem Options / Advanced
>>>> and afterwards "enabling" it again via "Add..." button.
>>>>
>>>>
>>>>

>>>> Yes, TAPISRV is the Telephony Service and it is part of the OS.
>>>>
>>>>

>>>> Mohit,
>>>> if you diasable TAPISRV then this will affect *all* TSPs, not only a
>>>> specific one.
>>>> In Services Control Manager (Services.MSC) you can set the ServiceStartMode
>>>> to
>>>> - Disabled
>>>> - Manual
>>>> - Automatic
>>>> You can also stop/(re-)start it from there or via console
>>>> - NET STOP TAPISRV
>>>> - NET START TAPISRV
>>>> But again, this affects the *complete* Telephony Service, not only a single
>>>> TSP.
>>>>

>>>> --
>>>> Best Regards
>>>> Andreas Marschall
>>>> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
>>>> TAPI / TSP Developer and Tester
>>>> My TAPI and TSPI FAQ:
>>>> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm

>>>> My Toto? Tools (a collection of free, mostly TAPI related tools):


>>>> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
>>>> TAPI development around the world (Frappr! map):
>>>> http://www.frappr.com/TAPIaroundTheWorld
>>>> * Please post all messages and replies to the newsgroup so all may
>>>> * benefit from the discussion. Private mail is usually not replied to.
>>>> * This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.


>>>>> On Thursday, December 17, 2009 7:47 AM Mohit wrote:

>>>>> "Andreas Marschall [exMVP TAPI]" wrote:
>>>>>
>>>>>
>>>>>
>>>>> The problem in removing the TSP is that it will uninstall the TSP from the
>>>>> PC and when we install the TSP again, the Permenent Provider ID for the TSP
>>>>> gets changed. So, it will be like a fresh installation of TSP.

>>>>> What I had obsereved in some vendor's TSP was, when the TSP is OFF then it
>>>>> was not get removed from the list of service providers and when the Telephony
>>>>> Service gets start (at power on of PC) it was not calling
>>>>> TSPI_lineNegotiateTSPIVersion() or may be it was not entertained by TSP.
>>>>>
>>>>>
>>>>>
>>>>>

>>>>> So, there is no method to hide the TSP from the TPISRV excepting removing it?


>>>>>> On Thursday, December 17, 2009 10:15 AM Andreas Marschall [exMVP TAPI] wrote:

>>>>>> Mohit,


>>>>>> how can you be sure about not calling TSPI_lineNegotiateTSPIVersion() ?
>>>>>> How did you check this?
>>>>>>
>>>>>>

>>>>>> Maybe the TSP returns LINEERR_OPERATIONUNAVAIL from
>>>>>> TSPI_lineNegotiateTSPIVersion() / TSPI_providerEnumDevices() ?
>>>>>>

>>>>>> --
>>>>>> Best Regards
>>>>>> Andreas Marschall
>>>>>> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
>>>>>> TAPI / TSP Developer and Tester
>>>>>> My TAPI and TSPI FAQ:
>>>>>> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm

>>>>>> My Toto? Tools (a collection of free, mostly TAPI related tools):


>>>>>> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
>>>>>> TAPI development around the world (Frappr! map):
>>>>>> http://www.frappr.com/TAPIaroundTheWorld
>>>>>> * Please post all messages and replies to the newsgroup so all may
>>>>>> * benefit from the discussion. Private mail is usually not replied to.
>>>>>> * This posting is provided "AS IS" with no warranties, and confers no
>>>>>> rights.


>>>>>>> On Thursday, December 17, 2009 11:06 PM Mohit wrote:

>>>>>>> Thanks Andreas for your reply
>>>>>>>

>>>>>>> "Andreas Marschall [exMVP TAPI]" wrote:
>>>>>>>
>>>>>>>

>>>>>>> Actually that TSP was generating a debug file in which it was logging all
>>>>>>> events.
>>>>>>>
>>>>>>>

>>>>>>> Yes it might be.


>>>>>>>> On Friday, December 18, 2009 6:13 AM Andreas Marschall [exMVP TAPI] wrote:

>>>>>>>> Mohit, you are welcome.


>>>>>>>>
>>>>>>>>
>>>>>>>> The logging may be incomplete or even suppressed in this case.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best Regards
>>>>>>>> Andreas Marschall
>>>>>>>> Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
>>>>>>>> TAPI / TSP Developer and Tester
>>>>>>>> My TAPI and TSPI FAQ:
>>>>>>>> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm

>>>>>>>> My Toto? Tools (a collection of free, mostly TAPI related tools):


>>>>>>>> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
>>>>>>>> TAPI development around the world (Frappr! map):
>>>>>>>> http://www.frappr.com/TAPIaroundTheWorld
>>>>>>>> * Please post all messages and replies to the newsgroup so all may
>>>>>>>> * benefit from the discussion. Private mail is usually not replied to.
>>>>>>>> * This posting is provided "AS IS" with no warranties, and confers no
>>>>>>>> rights.


>>>>>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>>>>>>> ObjectDumper LINQ To Export Collection Via .NET Reflection
>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/21737599-5a63-4672-a32c-a36cca282a3f/objectdumper-linq-to-export-collection-via-net-reflection.aspx

Andreas Marschall [exMVP TAPI]

unread,
Sep 19, 2010, 5:08:30 PM9/19/10
to
> Discussion subject changed to "Telephony Service stops" by sibi burhan

sibi,
why didn't you open your own therad rather than using than existing
one?

On Sep 19, 5:17 pm, sibi burhan <sibi.bur...@gmail.com> wrote:
> When ever call lands in windows 2003 server , it works fine after 20 min it automatically stops the telephony service.i am using a TAPi bridge application to collect caller id.
>
> When i am trying to restart telephony service manually.it shows error.
>
> System's activity log shows EVENT id:7031 Telephony service stop uninterpted...etc.
>
> Do we need to keep new TapiSrv.dll or need to run new hotfix of windows will solve the issue?

What non-MS TSPs do you have installed ?

Do you have RAS services running?

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm

My Toto® Tools (a collection of free, mostly TAPI related tools):

0 new messages