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

Trying to write a TAPI driver

60 views
Skip to first unread message

kbr...@star2star.com

unread,
Aug 11, 2006, 9:38:57 AM8/11/06
to
Hello all,

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

Andreas Marschall [MVP TAPI]

unread,
Aug 11, 2006, 3:02:35 PM8/11/06
to
<kbr...@star2star.com> schrieb im Newsbeitrag
news:1155303537.2...@h48g2000cwc.googlegroups.com...

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.

kbr...@star2star.com

unread,
Aug 11, 2006, 3:21:16 PM8/11/06
to
Andreas,

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

Andreas Marschall [MVP TAPI]

unread,
Aug 11, 2006, 4:42:50 PM8/11/06
to
<kbr...@star2star.com> schrieb im Newsbeitrag
news:1155324076.2...@74g2000cwt.googlegroups.com...

> 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.

Kevin,
after firing LINECALLSTATE_IDLE did your TSP receive a TSPI_lineCloseCall() ?

kbr...@star2star.com

unread,
Aug 22, 2006, 9:36:21 AM8/22/06
to
Andreas,

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:

Andreas Marschall [MVP TAPI]

unread,
Aug 25, 2006, 12:19:48 PM8/25/06
to
<kbr...@star2star.com> schrieb im Newsbeitrag
news:1156253781.8...@75g2000cwc.googlegroups.com...

> Andreas,
>
> 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, you are welcome.

Just return 0 from TSPI_lineCloseCall()
and release all call handle related TSPI internal resources.

0 new messages