Re: TAPI lineCallback not being invoked through MFC app

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



"Abhishek Sen" <abhisheksen@xxxxxxxxxxx> schrieb im Newsbeitrag
Do you know
how I can keep track of the call handles to make sure that if I receive a
call when I'm already in one, I don't overwrite the current call handle,
thereby causing trouble.

Abhishek,
you definitely need to store all received hCalls (LINE_APPNEWCALL message)
within your app yourself, e.g. in a list.
Then you can search this list for an already known hCall.
You may only remove a hCall from the list after calling
lineDeallocateCall(hCall).

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



.



Relevant Pages

  • Re: Identify call IDs
    ... Just suppose i phone someone, and it replies my phone call, my program will ... P.E, If a fax comes up, finish the call and don't save the audio. ... Microsoft MVP for TAPI / Windows SDK ... TAPI development around the world (Frappr! ...
    (microsoft.public.win32.programmer.tapi)
  • Re: what command sequence (tapi 2.x) is needed to switch from voice to data?
    ... The call state of hCall can be any state ... >> I See a command sequence in the ddk called VoiceToDataAnswer which is ... > Microsoft MVP for TAPI / Windows SDK ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI lineCallback not being invoked through MFC app
    ... Then you can search this list for an already known hCall. ... Microsoft MVP for TAPI / Windows SDK ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Identify call IDs
    ... Just suppose i phone someone, and it replies my phone call, my program will ... P.E, If a fax comes up, finish the call and don't save the audio. ... Microsoft MVP for TAPI / Windows SDK ... TAPI development around the world (Frappr! ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Doubts about the definition of HLINE, HCALL and LPHCALL.
    ... HLINE contains a handle to a TAPI line device. ... HCALL contains a handle to a TAPI call. ... You can certainly store an HLINE or HCALL in an integer as they are ...
    (microsoft.public.win32.programmer.tapi)