|
svchost.exe: Unloaded...
|
|
|
|
 |
|
|
|
03.11.2008 21:07 |
Michael |
Hi, I have problem with svchost (ro maybe with something else) I’m trying to make simple TSP fiew days ago in debug window I was receiving such info:
[…] TSPI_providerUIIdentify rc=0x0, lpszUIDLLName=0x1817204 "MyTSPUI.DLL" TSPI_lineNegotiateTSPIVersion dwDeviceID=0xffffffff, dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0x1815c70 TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 TSPI_providerEnumDevices dwPermanentProviderID=0x68, lpdwNumLines=0x298f3d4, [...]
And now I’m getting : 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp'
I compiled earlier version when it was ok, but now the same hapening. I’m guessing that is something with system. First I was receiving svchost errors – Visual Studio debugger was appearing all the time, then after Windows reinstaling when I’m oppening new folder some Adobe instalation wants start – Norton Antivirus found nothing. Can I avoid disk system formating?
Best Regards, Michael |
 |
|
|
|
|
04.11.2008 09:33 |
Andreas Marschall [MVP TAPI] |
"Michael" schrieb im Newsbeitrag news:uhc6R$ePJHA.1164@TK2MSFTNGP03.phx.gbl... > I have problem with svchost (ro maybe with something else) I'm trying to > make simple TSP fiew days ago in debug window I was receiving such info: > > [.] > TSPI_providerUIIdentify rc=0x0, lpszUIDLLName=0x1817204 "MyTSPUI.DLL" > TSPI_lineNegotiateTSPIVersion dwDeviceID=0xffffffff, > dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0x1815c70 > TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 > TSPI_providerEnumDevices dwPermanentProviderID=0x68, lpdwNumLines=0x298f3d4, > [...]
Michael, please provide the full trace. What do return as *lpdwNumLines ?
> And now I'm getting : > 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp'
Where exactly do you get this from?
> I compiled earlier version when it was ok, but now the same hapening. > I'm guessing that is something with system. First I was receiving > svchost errors - Visual Studio debugger was appearing all the time, then > after Windows reinstaling when I'm oppening new folder some Adobe > instalation wants start - Norton Antivirus found nothing. Can I avoid > disk system formating?
Issues within TAPISRV are almost always caused by one of the TSPs itself. Did you try installing your TSP on another PC (maybe a virtual PC)? How exactly do you install your TSP?
-- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ 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.
|
 |
|
|
|
|
04.11.2008 18:25 |
Michael |
Andreas, thank You for your response.
I’m Using VS 2005 with Debug Tapisrv Add In. I made simple TSP with Julmar’s wizard, added fiew debug info in service provider and device constructor, and in VS debugger was receiving (part which was saved):
-- service provider constructor -- TSPI_providerUIIdentify lpszUIDLLName=0x1817204 TSPI_providerUIIdentify rc=0x0, lpszUIDLLName=0x1817204 "SipTSP9UI.DLL" The thread 'Win32 Thread' (0xe74) has exited with code 0 (0x0). TSPI_lineNegotiateTSPIVersion dwDeviceID=0xffffffff, dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0x1815c70 TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 TSPI_providerEnumDevices dwPermanentProviderID=0x68, lpdwNumLines=0x298f3d4, lpdwNumPhones=0x298f3d8, hProvider=0x1815c60, lpfnLineCreateProc=0x73387c0d, lpfnPhoneCreateProc=0x7338fec9 TSPI_providerEnumDevices rc=0x0, lpdwNumLines=0x0, lpdwNumPhones=0x0 TSPI_providerInit dwTSPIVersion=0x30000, dwPermanentProviderID=0x68, dwLineDeviceIDBase=0x1f, dwPhoneDeviceIDBase=0x1, dwNumLines=0x0, dwNumPhones=0x0, lpfnCompletionProc=0x73395e06, lpdwTSPIOptions=0x1815c6c ---device constructor -- Device 68, Base Line=1f, Count=0, Base Phone=1, Count=0 Completion Callback function = 73395e06 TSPI_providerInit rc=0x0, lpdwTSPIOptions=0x1815c6c IntervalTimerThread(0x1a0) starting LibraryTimerThread(0x65c) starting
And I think I haven’t made others changes after that besides added to every class debug info like: _TSP_DTRACE(" -- device init -- ");
And after that I’m receiving:
'svchost.exe': Loaded 'C:\WINDOWS\system32\MyTSP.tsp', Symbols loaded. Supports TSPI_lineConditionalMediaDetection Supports TSPI_lineDial Supports TSPI_lineGetID Supports TSPI_lineGetLineDevStatus Supports TSPI_lineMakeCall Supports TSPI_lineMonitorMedia Supports TSPI_lineSetCallData Supports TSPI_lineSetCallParams Supports TSPI_phoneDevSpecific Supports TSPI_phoneGetButtonInfo Supports TSPI_phoneGetDisplay Supports TSPI_phoneGetExtensionID Supports TSPI_phoneGetID Supports TSPI_phoneGetLamp Supports TSPI_phoneNegotiateExtVersion Supports TSPI_phoneSelectExtVersion Supports TSPI_phoneSetDisplay Supports TSPI_lineGetCallHubTracking 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp'
To install TSP I’m simply putting MyTSP.tsp and MyTSPUI.dll files to Windows/system32 folder. I tried to instal my TSP on other PC (without VS2005 but with DBWin32) and looks like the same problem occurring.
Best Regards Michael
Andreas Marschall [MVP TAPI] pisze: > "Michael" schrieb im Newsbeitrag > news:uhc6R$ePJHA.1164@TK2MSFTNGP03.phx.gbl... >> I have problem with svchost (ro maybe with something else) I'm trying to >> make simple TSP fiew days ago in debug window I was receiving such info: >> >> [.] >> TSPI_providerUIIdentify rc=0x0, lpszUIDLLName=0x1817204 "MyTSPUI.DLL" >> TSPI_lineNegotiateTSPIVersion dwDeviceID=0xffffffff, >> dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0x1815c70 >> TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 >> TSPI_providerEnumDevices dwPermanentProviderID=0x68, lpdwNumLines=0x298f3d4, >> [...] > > Michael, > please provide the full trace. > What do return as *lpdwNumLines ? > > >> And now I'm getting : >> 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp' > > Where exactly do you get this from? > > >> I compiled earlier version when it was ok, but now the same hapening. >> I'm guessing that is something with system. First I was receiving >> svchost errors - Visual Studio debugger was appearing all the time, then >> after Windows reinstaling when I'm oppening new folder some Adobe >> instalation wants start - Norton Antivirus found nothing. Can I avoid >> disk system formating? > > Issues within TAPISRV are almost always caused by one of the TSPs itself. > Did you try installing your TSP on another PC (maybe a virtual PC)? > How exactly do you install your TSP? > |
 |
|
|
|
|
05.11.2008 11:44 |
Sheng Zhang |
"Michael" schrieb im Newsbeitrag news:uhc6R$ePJHA.1164@TK2MSFTNGP03.phx.gbl...
> And now I’m getting : > 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp' >
hi Michael,
I have read this information as well. I don't think that is a problem, IMO, the svchost can unload your tsp if it is not used, and if you want use your TSP, it will be loaded again. It only matters if your TSP is working or not.
regards,
Sheng
|
 |
|
|
|
|
05.11.2008 13:53 |
Andreas Marschall [MVP TAPI] |
"Michael" schrieb im Newsbeitrag news:uMruXJqPJHA.728@TK2MSFTNGP05.phx.gbl... > Andreas, thank You for your response.
Michael, you are welcome.
> TSPI_providerEnumDevices dwPermanentProviderID=0x68, > lpdwNumLines=0x298f3d4, lpdwNumPhones=0x298f3d8, hProvider=0x1815c60, > lpfnLineCreateProc=0x73387c0d, lpfnPhoneCreateProc=0x7338fec9 > TSPI_providerEnumDevices rc=0x0, lpdwNumLines=0x0, lpdwNumPhones=0x0 > TSPI_providerInit dwTSPIVersion=0x30000, dwPermanentProviderID=0x68, > dwLineDeviceIDBase=0x1f, dwPhoneDeviceIDBase=0x1, dwNumLines=0x0, > dwNumPhones=0x0, lpfnCompletionProc=0x73395e06, lpdwTSPIOptions=0x1815c6c
> And after that I'm receiving:
> 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp'
Your TSP is telling TAPISRV that it supports 0 line and 0 phone devices. So it is exposing no device at all.
Do you get the same result if you report at least one device?
-- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ 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.
|
 |
|
|
|
|
15.11.2008 20:51 |
Michael |
Hi,
Sorry for delay of my response but lately I have many things on my head. I think I had some viruses in my system or other bad stuff, so I recover it to safety state. Now it looks ok. But still I have problem with my TSP. I see that I don’t have set line. What I want is to set a line and, I think, have MakeCall feature to send SIP message: INVITE, but I’ve got stuck in code.
In debug trace I have: (entries like : "-- device init –" are my indiwidual for marking whitch class is running):
-- Service provider constructor— TSPI_providerUIIdentify lpszUIDLLName=0x2686e3c TSPI_providerUIIdentify rc=0x0, lpszUIDLLName=0x2686e3c "SipTSP9UI.DLL" TSPI_lineNegotiateTSPIVersion dwDeviceID=0xffffffff, dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0x26856f0 TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 TSPI_providerEnumDevices dwPermanentProviderID=0x22, lpdwNumLines=0xe7f3d4, lpdwNumPhones=0xe7f3d8, hProvider=0x26856e0, lpfnLineCreateProc=0x73387c0d, lpfnPhoneCreateProc=0x7338fec9 -- providerEnumDevices -- TSPI_providerEnumDevices rc=0x0, lpdwNumLines=0x1, lpdwNumPhones=0x0 TSPI_providerInit dwTSPIVersion=0x30000, dwPermanentProviderID=0x22, dwLineDeviceIDBase=0x7, dwPhoneDeviceIDBase=0x0, dwNumLines=0x1, dwNumPhones=0x0, lpfnCompletionProc=0x73395e06, lpdwTSPIOptions=0x26856ec -- device init -- Device 22, Base Line=7, Count=1, Base Phone=0, Count=0 Completion Callback function = 73395e06 IntervalTimerThread(0xa78) starting ---line---constructor----Lock(-1) 0x1a2609c [Total=0], Thread=0xbfc, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xbfc, LockCnt=0, Owner=0xbfc, InThread=1, hEvent=0x0 Adding Line #1 (id 7) to device list ---line--- read ----0x1a26f50,LineID=0x0,DeviceID=0x7,htLine=0x00000000 Lock(-1) 0x1a2609c [Total=0], Thread=0xbfc, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xbfc, LockCnt=0, Owner=0xbfc, InThread=1, hEvent=0x0 -- device init ok -- -- create input thread ok – TSPI_providerInit rc=0x0, lpdwTSPIOptions=0x26856ec TSPI_lineNegotiateTSPIVersion dwDeviceID=0x7, dwLoVersion=0x10003, dwHiVersion=0x30001, lpdwTSPIVersion=0xe7f37c TSPI_lineNegotiateTSPIVersion rc=0x0, lpdwTSPIVersion=0x30000 -- device ConnectionThread -- LibraryTimerThread(0xd54) starting TSPI_lineGetDevCaps dwDeviceID=0x7, dwTSPIVersion=0x30000, dwExtVersion=0x0, lpLineDevCaps=0x2685d54 TSPI_lineGetDevCaps rc=0x0, lpLineDevCaps=0x2685d54 LINEDEVCAPS at 0x2685d54 dwTotalSize = 0x320 dwNeededSize = 0x188 dwUsedSize = 0x188 dwProviderInfoSize = 0x18 dwProviderInfoOffset = 0x124 "SipProvider." dwSwitchInfoSize = 0x14 dwSwitchInfoOffset = 0x13c "SipSwitch." dwPermanentLineID = 0x0 dwLineNameSize = 0x0 dwLineNameOffset = 0x0 dwStringFormat = 0x1 (ASCII) dwAddressModes = 0x1 (ADDRESSID) dwNumAddresses = 0x0 dwBearerModes = 0x1 (VOICE) dwMaxRate = 0x0 dwMediaModes = 0x0 dwGenerateToneModes = 0x0 dwGenerateToneMaxNumFreq= 0x0 dwGenerateDigitModes = 0x0 dwMonitorToneMaxNumFreq = 0x0 dwMonitorToneMaxNumEntries = 0x0 dwMonitorDigitModes = 0x0 dwGatherDigitsMinTimeout= 0x0 dwGatherDigitsMaxTimeout= 0x0 dwMedCtlDigitMaxListSize= 0x0 dwMedCtlMediaMaxListSize= 0x0 dwMedCtlToneMaxListSize = 0x0 dwMedCtlCallStateMaxListSize = 0x0 dwDevCapFlags = 0xc00 (CALLHUB,CALLHUBTRACKING) dwMaxNumActiveCalls = 0x1 dwAnswerMode = 0x0 dwRingModes = 0x1 dwLineStates = 0x1f9f9ff (OTHER,RINGING,CONNECTED,DISCONNECTED,MSGWAITON,MSGWAITOFF,INSERVICE,OUTOFSERVICE,MAINTENANCE,NUMCALLS,NUMCOMPLETIONS,TERMINALS,ROAMMODE,BATTERY,SIGNAL,LOCK,CAPSCHANGE,CONFIGCHANGE,TRANSLATECHANGE,COMPLCANCEL,REMOVED) dwUUIAcceptSize = 0x0 dwUUIAnswerSize = 0x0 dwUUIMakeCallSize = 0x0 dwUUIDropSize = 0x0 dwUUISendUserUserInfoSize = 0x0 dwUUICallInfoSize = 0x0 MinDialParams = dwDialPause = 0x0 dwDialSpeed = 0x0 dwDigitDuration = 0x0 dwWaitForDialtone = 0x0 MaxDialParams = dwDialPause = 0x0 dwDialSpeed = 0x0 dwDigitDuration = 0x0 dwWaitForDialtone = 0x0 DefaultDialParams = dwDialPause = 0x0 dwDialSpeed = 0x0 dwDigitDuration = 0x0 dwWaitForDialtone = 0x0 dwNumTerminals = 0x0 dwTerminalCapsSize = 0x0 dwTerminalCapsOffset = 0x0 dwTerminalTextEntrySize = 0x0 dwTerminalTextSize = 0x0 dwTerminalTextOffset = 0x0 dwDevSpecificSize = 0x0 dwDevSpecificOffset = 0x0 dwLineFeatures = 0x8 (MAKECALL) dwSettableDevStatus = 0x0 dwDeviceClassesSize = 0x38 dwDeviceClassesOffset = 0x150 00000000 74 00 61 00 70 00 69 00 2F 00 6C 00 69 00 6E 00 t.a.p.i./.l.i.n. 00000010 65 00 00 00 74 00 61 00 70 00 69 00 2F 00 70 00 e...t.a.p.i./.p. 00000020 72 00 6F 00 76 00 69 00 64 00 65 00 72 00 69 00 r.o.v.i.d.e.r.i. 00000030 64 00 00 00 00 00 00 00 d............... TSPI_lineOpen dwDeviceID=0x7, htLine=0x2686178, lphdLine=0x26861dc, dwTSPIVersion=0x30000, lpfnEventProc=0x73387c0d --line OpenDevice -- -- line OnLineFeaturesChanged -- : Calculating new line features - 0x0, Final=0x0, ConnectedCalls=0, Max=1 : Adjusting line features with 0x0, New Caps=0x8, New Status=0x0 TSPI_lineOpen rc=0x0, lphdLine=0x1a26f50 TSPI_lineGetNumAddressIDs hdLine=0x1a26f50, lpdwAddressIDs=0x26861f4 TSPI_lineGetNumAddressIDs rc=0x0, lpdwAddressIDs=0x0 TSPI_lineGetID hdLine=0x1a26f50, dwAddressID=0x0, hdCall=0x0, dwSelect=0x1 (LINE), lpDeviceID=0x268625c, lpszDeviceClass=0x2686418 "LineGuid", hTargetProces=0x1834 Lock(-1) 0x1a26f5c [Total=0], Thread=0x654, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a26f5c [Total=0], Thread=0x654, LockCnt=0, Owner=0x654, InThread=1, hEvent=0x0 TSPI_lineGetID rc=0x80000023 ((LINEERR_INVALDEVICECLASS)) TSPI_lineClose hdLine=0x1a26f50 Lock(-1) 0x1a26f5c [Total=0], Thread=0x654, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a26f5c [Total=0], Thread=0x654, LockCnt=0, Owner=0x654, InThread=1, hEvent=0x0 Lock(-1) 0x1a26f5c [Total=0], Thread=0x654, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a26f5c [Total=0], Thread=0x654, LockCnt=0, Owner=0x654, InThread=1, hEvent=0x0 -- line OnLineFeaturesChanged -- : Calculating new line features - 0x0, Final=0x0, ConnectedCalls=0, Max=1 : Adjusting line features with 0x0, New Caps=0x8, New Status=0x0 TSPI_lineClose rc=0x0 Lock(-1) 0x1a2609c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 Lock(-1) 0x1a2609c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 ( --line OnTimer -- Lock(-1) 0x1a26f5c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a26f5c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 Lock(-1) 0x1a2609c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 -- device LocateOwnerFromEvent -- Lock(-1) 0x1a2609c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 Lock(-1) 0x1a2609c [Total=0], Thread=0xa78, LockCnt=-1, Owner=0x0, InThread=0, hEvent=0x0 Unlock() 0x1a2609c [Total=0], Thread=0xa78, LockCnt=0, Owner=0xa78, InThread=1, hEvent=0x0 )
And part in () is repeating.
Sorry for that describing of my problem isn’t good.
Best regards, Michael
Andreas Marschall [MVP TAPI] pisze: > "Michael" schrieb im Newsbeitrag > news:uMruXJqPJHA.728@TK2MSFTNGP05.phx.gbl... >> Andreas, thank You for your response. > > Michael, you are welcome. > >> TSPI_providerEnumDevices dwPermanentProviderID=0x68, >> lpdwNumLines=0x298f3d4, lpdwNumPhones=0x298f3d8, hProvider=0x1815c60, >> lpfnLineCreateProc=0x73387c0d, lpfnPhoneCreateProc=0x7338fec9 >> TSPI_providerEnumDevices rc=0x0, lpdwNumLines=0x0, lpdwNumPhones=0x0 >> TSPI_providerInit dwTSPIVersion=0x30000, dwPermanentProviderID=0x68, >> dwLineDeviceIDBase=0x1f, dwPhoneDeviceIDBase=0x1, dwNumLines=0x0, >> dwNumPhones=0x0, lpfnCompletionProc=0x73395e06, lpdwTSPIOptions=0x1815c6c > >> And after that I'm receiving: > >> 'svchost.exe': Unloaded 'C:\WINDOWS\system32\MyTSP.tsp' > > Your TSP is telling TAPISRV that it supports 0 line and 0 phone devices. > So it is exposing no device at all. > > Do you get the same result if you report at least one device? > |
 |
|
|
|
|
15.11.2008 23:01 |
Andreas Marschall [MVP TAPI] |
"Michael" schrieb im Newsbeitrag news:OtsZOu1RJHA.5092@TK2MSFTNGP05.phx.gbl... > LINEDEVCAPS at 0x2685d54 > dwPermanentLineID = 0x0
Michael, You need to generate a unique dwPermanentLineID. Usually the upper WORD of the DWORD is filled with dwPermanentProviderID from TSPI_providerInit(), i.e. dwPermanentLineID = (dwPermanentProviderID << 16) + (0x0000FFFF & dwSomething);
> dwAddressModes = 0x1 (ADDRESSID) > dwNumAddresses = 0x0
You need to support at least one address, i.e. dwNumAddresses=1;
> dwMediaModes = 0x0
You need to support at least one media mode, e.g. LINEMEDIAMODE_INTERACTIVEVOICE
> dwDevCapFlags = 0xc00 (CALLHUB,CALLHUBTRACKING)
Do you actually need / support that?
> TSPI_lineGetNumAddressIDs hdLine=0x1a26f50, lpdwAddressIDs=0x26861f4 > TSPI_lineGetNumAddressIDs rc=0x0, lpdwAddressIDs=0x0
You need to support at least one address, i.e. *lpdwAddressIDs=1;
> TSPI_lineGetID hdLine=0x1a26f50, dwAddressID=0x0, hdCall=0x0, > dwSelect=0x1 (LINE), lpDeviceID=0x268625c, lpszDeviceClass=0x2686418 > "LineGuid", hTargetProces=0x1834 > Lock(-1) 0x1a26f5c [Total=0], Thread=0x654, LockCnt=-1, Owner=0x0, > InThread=0, hEvent=0x0 > Unlock() 0x1a26f5c [Total=0], Thread=0x654, LockCnt=0, Owner=0x654, > InThread=1, hEvent=0x0 > TSPI_lineGetID rc=0x80000023 ((LINEERR_INVALDEVICECLASS))
What did you #define as TAPI_CURRENT_VERSION prior #include "tspi.h" ?
> TSPI_lineClose hdLine=0x1a26f50
I guess TAPISRV doesn't like either your TSP's line device having no address in TSPI_lineGetDevCaps() / TSPI_lineGetNumAddressIDs(), and/or supporting no media mode in TSPI_lineGetDevCaps(), and/or returning LINEERR_INVALDEVICECLASS from TSPI_lineGetID(). You need to implement TSPI_lineGetAddressCaps() too, if you haven't already.
-- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ 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.
|
 |
|
|
|
|
24.11.2008 21:42 |
Michael |
Andreas, big thanks for Your response.
I was debugging my TSP according Yours advices, and finally found problem. I was using separated UI in which I didn't include any line and address handling and TSP wanted use that information. Now I've made simple TSP without separated UI and I can chose my line in TAPI applications. That was painful but didactic process for me ;-)
Best Regards, Michael |
 |
|
|
|
|
25.11.2008 04:28 |
Andreas Marschall [MVP TAPI] |
"Michael" schrieb im Newsbeitrag news:uUzqlUnTJHA.4916@TK2MSFTNGP06.phx.gbl... > Andreas, big thanks for Your response.
Michael, you are welcome.
> I was debugging my TSP according Yours advices, and finally found > problem. I was using separated UI in which I didn't include any line and > address handling and TSP wanted use that information. Now I've made > simple TSP without separated UI and I can chose my line in TAPI > applications.
Good to read that it finally works.
> That was painful but didactic process for me ;-)
-- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ 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 TotoR 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.
|
 |
|
|
 |
|
|
|
|
|