Re: tapi3 - vb6: help in disconnect a call
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Mon, 7 Jul 2008 16:16:23 +0200
"micha" <mlovem1@xxxxxxxxxxx> schrieb im Newsbeitrag
news:9fcccf40b3564762ba7572b4cd5517d8@xxxxxxxxxxxxx
i made a program that connect to panasonic tda100 pbx
i can make phone calls from any station that i choose
and see all the events of all stations
but i cant diconect a call from the station i choose
i try somthing like this:
Dim MyAddress As ITAddress2
Dim MyColl As ITCollection
Dim MyPhone As ITBasicCallControl
Set MyAddresss = MyColl.Item(217) 'station 102
i dont know what to set MyPhone to (set MyPhone = ?????)
and then make
myphone.Disconnect DC_NORMAL
micha,
you need to be owner of the call that you want to disconnect.
Do you request ownership when you ITTAPI::RegisterCallNotifications() ?
Please see the VB sample from MSDN on it:
http://msdn.microsoft.com/en-us/library/ms734177(VS.85).aspx
Please see MSDN for the VB sample on how to receive / answer a call:
http://msdn.microsoft.com/en-us/library/ms734172(VS.85).aspx
It shows how to get ITBasicCallControl from ITCallInfo and
ITCallNotificationEvent.
With that you can ITBasicCallControl::Disconnect(DC_NORMAL).
Try it with TAPI Browser TB3x before starting to code anything yourself.
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 TB3x ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2
--
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.
.
- References:
- tapi3 - vb6: help in disconnect a call
- From: micha
- tapi3 - vb6: help in disconnect a call
- Prev by Date: tapi3 - vb6: help in disconnect a call
- Next by Date: Re: tapi3 - vb6: help in disconnect a call
- Previous by thread: tapi3 - vb6: help in disconnect a call
- Next by thread: tapi3 - vb6: help in disconnect a call
- Index(es):
Relevant Pages
|