|
|
|
date: Thu, 31 Jul 2008 13:54:55 +0200,
group: microsoft.public.win32.programmer.tapi
back
TSP++ problem with makecall() function
hi,
I am developing my own TSP with C++ and TAPI 3.0, when I opened a new
project
with help of TSP++ wizard, a function names makecall() to the MyLine class
is automatically
generated, it seems to be a TSPI-handler, and after I add some code into
this function, I realize
that this function is never called correctly.
I normally generate the .tsp file and add it into the WINDOWS/system32
folder and then add
the TSP in the system configuration, after that I open my MS Outlook 2007
and choose a line
of my TSP, then make a call, but always get an error after a few seconds:
"Ein von der erweiterten Wahlwiederholung angeforderter Vorgang kann nicht
abgeschlossen
werden. Überprüfen Sie, ob das Modem, das Telefon und die Telefonleitung
richtig konfiguriert sind."
(sorry the error is in German, but I think Andreas can understand it. :) )
what can I do to get rid of this error? If I haven't configured my line
properly, which cofiguration
do I need to do to my line? thank you in advance.
Sheng Zhang
date: Thu, 31 Jul 2008 13:54:55 +0200
author: Sheng Zhang
Re: TSP++ problem with makecall() function
"Sheng Zhang" schrieb im Newsbeitrag
news:ujhqARw8IHA.4108@TK2MSFTNGP04.phx.gbl...
> I am developing my own TSP with C++ and TAPI 3.0, when I opened a new
> project
> with help of TSP++ wizard, a function names makecall() to the MyLine class
> is automatically
> generated, it seems to be a TSPI-handler, and after I add some code into
> this function, I realize
> that this function is never called correctly.
>
> I normally generate the .tsp file and add it into the WINDOWS/system32
> folder and then add
Sheng,
did you copy the TSP-UI.dll to /system32/ too?
> the TSP in the system configuration, after that I open my MS Outlook 2007
> and choose a line
> of my TSP, then make a call, but always get an error after a few seconds:
>
> "Ein von der erweiterten Wahlwiederholung angeforderter Vorgang kann nicht
> abgeschlossen
> werden. Überprüfen Sie, ob das Modem, das Telefon und die Telefonleitung
> richtig konfiguriert sind."
>
> (sorry the error is in German, but I think Andreas can understand it. :) )
>
> what can I do to get rid of this error? If I haven't configured my line
> properly, which cofiguration
> do I need to do to my line? thank you in advance.
It is strongly recommended to use MS TAPI Browser TB20 and/or JulMar Phone.exe
for TSP testing.
These tools are much more powerful and you get precise error messages etc.
Only after your TSP works ok or with these test tools you should start testing
with other app (like Outlook, MS Dialer etc.)
Can you reproduce the issue with TAPI Browser TB20 ?
Please post a TB20.log and enable Options/LogParameters and /ShowTimeStamps in
TB20.
See my TAPI and TSPI FAQ:
Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can
Q: Is there a user guide available for TAPI Browser TB20 ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_1
--
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.
date: Thu, 31 Jul 2008 14:18:39 +0200
author: Andreas Marschall [MVP TAPI]
Re: TSP++ problem with makecall() function
thank you Andreas for your quick answer!
"Andreas Marschall [MVP TAPI]" schrieb im
Newsbeitrag news:eFTMSew8IHA.4820@TK2MSFTNGP06.phx.gbl...
> "Sheng Zhang" schrieb im Newsbeitrag
> news:ujhqARw8IHA.4108@TK2MSFTNGP04.phx.gbl...
>> I am developing my own TSP with C++ and TAPI 3.0, when I opened a new
>> project
>> with help of TSP++ wizard, a function names makecall() to the MyLine
>> class
>> is automatically
>> generated, it seems to be a TSPI-handler, and after I add some code into
>> this function, I realize
>> that this function is never called correctly.
>>
>> I normally generate the .tsp file and add it into the WINDOWS/system32
>> folder and then add
>
> Sheng,
> did you copy the TSP-UI.dll to /system32/ too?
no, I don' have a UI for that, maybe later, is it neccesary?
>
>
>> the TSP in the system configuration, after that I open my MS Outlook 2007
>> and choose a line
>> of my TSP, then make a call, but always get an error after a few seconds:
>>
>> "Ein von der erweiterten Wahlwiederholung angeforderter Vorgang kann
>> nicht
>> abgeschlossen
>> werden. Überprüfen Sie, ob das Modem, das Telefon und die Telefonleitung
>> richtig konfiguriert sind."
>>
>> (sorry the error is in German, but I think Andreas can understand it.
>> :) )
>>
>> what can I do to get rid of this error? If I haven't configured my line
>> properly, which cofiguration
>> do I need to do to my line? thank you in advance.
>
> It is strongly recommended to use MS TAPI Browser TB20 and/or JulMar
> Phone.exe
> for TSP testing.
> These tools are much more powerful and you get precise error messages etc.
> Only after your TSP works ok or with these test tools you should start
> testing
> with other app (like Outlook, MS Dialer etc.)
>
since I am using TAPI3.0, I think I should use Tapi3.xBrowser:
ITTAPI.CreateInstance ITTAPI_1
returned hr = 0x00000000
ITTAPI_1.Initialize returned hr = 0x00000000
ITRequest.CreateInstance ITRequest_1
returned hr = 0x00000000
ITRequest_1.MakeCall
BSTR pDestAddress : 103
BSTR pAppName :
BSTR pCalledParty :
BSTR pComment :
returned hr = 0x00000000
finally I get a warning from windows: "Ein von der Wählhilfe angeforderter
Vorgang konnte vom
Windows-Telefoniedienst nicht ausgeführt werden. Beenden Sie die Wählhilfe,
und starten Sie
erneut."
btw. where can I find the Julmar Phone.exe? not seen on the julmar website.
> Can you reproduce the issue with TAPI Browser TB20 ?
> Please post a TB20.log and enable Options/LogParameters and
> /ShowTimeStamps in
> TB20.
> See my TAPI and TSPI FAQ:
>
> Q: Where can I download TAPI Browser ?
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can
>
> Q: Is there a user guide available for TAPI Browser TB20 ?
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_1
>
> --
> 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.
>
>
>
date: Thu, 31 Jul 2008 14:58:44 +0200
author: Sheng Zhang
Re: TSP++ problem with makecall() function
"Sheng Zhang" schrieb im Newsbeitrag
news:%23VQDr0w8IHA.5044@TK2MSFTNGP06.phx.gbl...
> thank you Andreas for your quick answer!
Sheng, you are welcome.
> > did you copy the TSP-UI.dll to /system32/ too?
>
> no, I don' have a UI for that, maybe later, is it neccesary?
you need to implement the TUISPI_functions somewhere, either in a seperate
UI.dll or within the TSP file.
Usually TSP## generates a seperate project in a UI subfolder for the UI.dll
What is your TSPI_providerUIIdentify() return in lpszUIDLLName ?
> > It is strongly recommended to use MS TAPI Browser TB20 and/or JulMar
> > Phone.exe
> > for TSP testing.
> > These tools are much more powerful and you get precise error messages etc.
> > Only after your TSP works ok or with these test tools you should start
> > testing
> > with other app (like Outlook, MS Dialer etc.)
> >
>
> since I am using TAPI3.0, I think I should use Tapi3.xBrowser:
Aren't you developing a TSP ?
TSPI is much more related to TAPI2 functions than to TAPI3.
So again I strongly recommend TB20 for TSP testing.
BTW Outlook AFAIK is using TAPI2 not TAPI3.
> ITRequest_1.MakeCall
> finally I get a warning from windows: "Ein von der Wählhilfe angeforderter
> Vorgang konnte vom
> Windows-Telefoniedienst nicht ausgeführt werden. Beenden Sie die Wählhilfe,
> und starten Sie
> erneut."
Now you are using TAPI assisted Telephony via teh MS Dialer that is displaying
this error message.
Once again, I strongly recommend TB20 (and in addition JulMar Phone) for TSP
testing!
> btw. where can I find the Julmar Phone.exe? not seen on the julmar website.
http://www.julmar.com/tapi/
--
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.
date: Thu, 31 Jul 2008 15:55:02 +0200
author: Andreas Marschall [MVP TAPI]
Re: TSP++ problem with makecall() function
"Andreas Marschall [MVP TAPI]" schrieb im
Newsbeitrag news:uzUpKUx8IHA.1568@TK2MSFTNGP04.phx.gbl...
> "Sheng Zhang" schrieb im Newsbeitrag
> news:%23VQDr0w8IHA.5044@TK2MSFTNGP06.phx.gbl...
>> thank you Andreas for your quick answer!
>
> Sheng, you are welcome.
>
>> > did you copy the TSP-UI.dll to /system32/ too?
>>
>> no, I don' have a UI for that, maybe later, is it neccesary?
>
> you need to implement the TUISPI_functions somewhere, either in a seperate
> UI.dll or within the TSP file.
> Usually TSP## generates a seperate project in a UI subfolder for the
> UI.dll
>
> What is your TSPI_providerUIIdentify() return in lpszUIDLLName ?
>
yes, by TSP++ you can also choose not to setup a UI project, so I disabled
it for the
first time. the name of my UIDLL is set to MyTSP.TSP.
>
>> > It is strongly recommended to use MS TAPI Browser TB20 and/or JulMar
>> > Phone.exe
>> > for TSP testing.
>> > These tools are much more powerful and you get precise error messages
>> > etc.
>> > Only after your TSP works ok or with these test tools you should start
>> > testing
>> > with other app (like Outlook, MS Dialer etc.)
>> >
>>
>> since I am using TAPI3.0, I think I should use Tapi3.xBrowser:
>
> Aren't you developing a TSP ?
> TSPI is much more related to TAPI2 functions than to TAPI3.
> So again I strongly recommend TB20 for TSP testing.
>
> BTW Outlook AFAIK is using TAPI2 not TAPI3.
>
oh thank you for this advice, I really didn't realize this point, and I have
tried my TSP now
with TB20:
lineInitialize returned SUCCESS
num line devs = 39
lineOpen returned SUCCESS
lineMakeCall returned x100bd
received LINE_REPLY
device=x0
cbInst=x0
param1=x100bd,
param2=x80000048,
param3=x0,
LINEERR_OPERATIONFAILED
can you tell me what these parameters mean?
>> ITRequest_1.MakeCall
>> finally I get a warning from windows: "Ein von der Wählhilfe
>> angeforderter
>> Vorgang konnte vom
>> Windows-Telefoniedienst nicht ausgeführt werden. Beenden Sie die
>> Wählhilfe,
>> und starten Sie
>> erneut."
>
> Now you are using TAPI assisted Telephony via teh MS Dialer that is
> displaying
> this error message.
> Once again, I strongly recommend TB20 (and in addition JulMar Phone) for
> TSP
> testing!
>
>> btw. where can I find the Julmar Phone.exe? not seen on the julmar
>> website.
>
> http://www.julmar.com/tapi/
>
> --
> 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.
>
>
>
date: Thu, 31 Jul 2008 18:21:49 +0200
author: Sheng Zhang
Re: TSP++ problem with makecall() function
"Sheng Zhang" schrieb im Newsbeitrag
news:e4XaKmy8IHA.4892@TK2MSFTNGP05.phx.gbl...
> yes, by TSP++ you can also choose not to setup a UI project, so I disabled
> it for the
> first time. the name of my UIDLL is set to MyTSP.TSP.
Sheng,
that's ok, as long as ypur TSP file implements and exports the
TUOISPI_functions.
> > TSPI is much more related to TAPI2 functions than to TAPI3.
> > So again I strongly recommend TB20 for TSP testing.
> >
> > BTW Outlook AFAIK is using TAPI2 not TAPI3.
> >
>
> oh thank you for this advice, I really didn't realize this point, and I have
> tried my TSP now
> with TB20:
Please enable Options/LogParameters and /ShowTimeStamps in TB20.
> lineInitialize returned SUCCESS
> num line devs = 39
If you want to use TAPI 2.x then you need to use lineInitialzeEx (as opposed
to lineInitialize which is only for TAPI 1.x).
> lineOpen returned SUCCESS
Are you sure that you did use the correct dwDeviceID, i.e. the device that is
from your TSP?
You may want to check with lineGetDevCaps().
> lineMakeCall returned x100bd
> received LINE_REPLY
> device=x0
> cbInst=x0
> param1=x100bd,
> param2=x80000048,
> param3=x0,
> LINEERR_OPERATIONFAILED
>
> can you tell me what these parameters mean?
Again, are you sure that this lineMakeCall was on the correct device
(lineOpen(dwDeviceID))?
The fact that the LINEERR_ code was returned asynchronous (LINE_REPLY) and not
synchronously (immedieately as return code) implies that thes error comes from
the TSP.
If it was actually your TSP then your TSPI_lineMakeCall() must have been
called and a ASYNC_COMPLETION must have been fired.
Anything in your TSP trace?
--
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.
date: Fri, 1 Aug 2008 13:18:04 +0200
author: Andreas Marschall [MVP TAPI]
Re: TSP++ problem with makecall() function
"Andreas Marschall [MVP TAPI]" schrieb im
Newsbeitrag news:uYFzFh88IHA.4140@TK2MSFTNGP02.phx.gbl...
> "Sheng Zhang" schrieb im Newsbeitrag
> news:e4XaKmy8IHA.4892@TK2MSFTNGP05.phx.gbl...
>> yes, by TSP++ you can also choose not to setup a UI project, so I
>> disabled
>> it for the
>> first time. the name of my UIDLL is set to MyTSP.TSP.
>
> Sheng,
> that's ok, as long as ypur TSP file implements and exports the
> TUOISPI_functions.
>
>
>> > TSPI is much more related to TAPI2 functions than to TAPI3.
>> > So again I strongly recommend TB20 for TSP testing.
>> >
>> > BTW Outlook AFAIK is using TAPI2 not TAPI3.
>> >
>>
>> oh thank you for this advice, I really didn't realize this point, and I
>> have
>> tried my TSP now
>> with TB20:
>
> Please enable Options/LogParameters and /ShowTimeStamps in TB20.
>
>
>> lineInitialize returned SUCCESS
>> num line devs = 39
>
> If you want to use TAPI 2.x then you need to use lineInitialzeEx (as
> opposed
> to lineInitialize which is only for TAPI 1.x).
>
>
>> lineOpen returned SUCCESS
>
> Are you sure that you did use the correct dwDeviceID, i.e. the device that
> is
> from your TSP?
> You may want to check with lineGetDevCaps().
>
>> lineMakeCall returned x100bd
>> received LINE_REPLY
>> device=x0
>> cbInst=x0
>> param1=x100bd,
>> param2=x80000048,
>> param3=x0,
>> LINEERR_OPERATIONFAILED
>>
>> can you tell me what these parameters mean?
>
> Again, are you sure that this lineMakeCall was on the correct device
> (lineOpen(dwDeviceID))?
>
> The fact that the LINEERR_ code was returned asynchronous (LINE_REPLY) and
> not
> synchronously (immedieately as return code) implies that thes error comes
> from
> the TSP.
> If it was actually your TSP then your TSPI_lineMakeCall() must have been
> called and a ASYNC_COMPLETION must have been fired.
> Anything in your TSP trace?
>
> --
yes, I am sure the line is of my TSP, I have got the dwLineDeviceID with a
tool called LineWatcher,
and thank you for everything, after I switched to TAPI2.0 and used TB2.0 I
have solved my problem
and made a call from Outlook, now I am working on the Incoming Call, maybe I
will bother you later. :)
Vielen Dank!
Sheng Zhang
> 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.
>
>
>
date: Fri, 1 Aug 2008 14:57:12 +0200
author: Sheng Zhang
Re: TSP++ problem with makecall() function
"Sheng Zhang" schrieb im Newsbeitrag
news:OCvZgY98IHA.2060@TK2MSFTNGP02.phx.gbl...
> yes, I am sure the line is of my TSP, I have got the dwLineDeviceID with a
> tool called LineWatcher,
> and thank you for everything, after I switched to TAPI2.0 and used TB2.0 I
> have solved my problem
> and made a call from Outlook, now I am working on the Incoming Call, maybe I
> will bother you later. :)
> Vielen Dank!
Sheng,
gern geschehen :-)
Thanks for the feedback.
Feel free to post additional questions...
--
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.
date: Fri, 1 Aug 2008 17:37:45 +0200
author: Andreas Marschall [MVP TAPI]
|
|