Re: tapi3 - vb6: help in disconnect a call

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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



.



Relevant Pages

  • Re: how save information about traffic (tapi 2.1)
    ... Grant Schenck Software ... > first i will try witch: ... >> The answers are fairly TSP (TAPI Service Provider) specific. ... how does your TSP model a station to station call? ...
    (microsoft.public.win32.programmer.tapi)
  • Re: LINE_NEWCALL & LINECALLSTATE_ONHOLD
    ... > see the "waiting" call on their turret (there is a flashing light) and take ... > prefered TAPI notification message to use in order to let all TAPI client ... > In this can is lineUnhold() the only "tapi" client application solution to ... "Indicates that the call is being offered at more than one station, ...
    (microsoft.public.win32.programmer.tapi)
  • Re: how save information about traffic (tapi 2.1)
    ... The answers are fairly TSP (TAPI Service Provider) specific. ... how does your TSP model a station to station call? ... > call witch is under extension or call witch is crated under CO. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Line Busy status
    ... Possibly use lineGetDevCaps and/or lineGetAddressCaps to determine ... which lines are station lines and which lines you want to monitor. ... enable parameter display and logging in the TAPI ...
    (microsoft.public.win32.programmer.tapi)
  • Re: how save information about traffic (tapi 2.1)
    ... first i will try witch: ... > The answers are fairly TSP (TAPI Service Provider) specific. ... how does your TSP model a station to station call? ... >> call witch is under extension or call witch is crated under CO. ...
    (microsoft.public.win32.programmer.tapi)