I am attempting to develope a TAPI driver to work with Asterisk VoIP
PBX in C++. So far I have been able to get Outlook to dial my IP Phone
first, call the person from my contacts and we connect with no problem.
The problem I am having is when the call is terminated. Outlook seems
to have trouble recognizing the call has terminated. Currently, from my
driver, I send a "LINEDEVSTATE_CLOSE". With this, Outlook does
recognize the call has ended, but it produces the following error
message "The line or address is in use by another program or device.
You call could not be place at this time. Try your call again later".
My question is, is there some Windows Message I can send to Outlook
that will notify it the call has terminated?
Kevin J. Brooks
Kevin,
LINE_LINEDEVSTATE(LINEDEVSTATE_CLOSE) message isn't intended for this.
Try just a LINE_CALLSTATE(LINECALLSTATE_IDLE.) message.
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
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.
I did try that first. Outlook still seems to think the call is going
even after both parties have hung up. With the LINECALLSTATE_IDLE,
when the user attempts to use Outlook to initiate another call, he is
told a call is in progress and is asked if he wants to hang up. If he
answers yes, then closes the subsequent window, he then can make a call
without a problem.
Thanks,
Kevin J. Brooks
Kevin,
after firing LINECALLSTATE_IDLE did your TSP receive a TSPI_lineCloseCall() ?
Thanks for your reply. Yes I do receive the TSPI_lineCloseCall(). Is
there anything specific I should send back from my
TSPI_lineCloseCall()? I am new to TAPI, but I did read "Windows
Telephony Programming" by Chris Sells.
Kevin
Andreas Marschall [MVP TAPI] wrote:
Kevin, you are welcome.
Just return 0 from TSPI_lineCloseCall()
and release all call handle related TSPI internal resources.