Re: TAPI 2.0: phone methods not working



<mgregoire.m5t@xxxxxxxxx> schrieb im Newsbeitrag
news:358ba542-13ee-4897-b633-1eda44dba6cf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
But, I need to control the volume, gain and trigger ring sound in my
application so I thought that using phone methods instead
(phoneInitializedEx, phoneOpen...) looks like a better solution for me
since these methods are already implemented. I changed my calls to
phone methods and I'm not receiving events anymore.

I think that this code should work. The same logic is used with line
methods and it's working. As I said, all calls to phone methods are
returning 0 and the thread to receive TAPI events is started and is
waiting for events. I'm clueless to what is not working. Any hints on
what is wrong?

Please note that a phone device is not a replcement for line device but a
supplement.
So you still need all the line function stuff you previously used for call
controll, i.e. get notified ony incoming calls, getting CallerID, making
calls, answering call etc.
If you need *additinally* any phone function then you have to
lineGetID("tapi/phone") to get the phone_deviceID associated with this line
device. You can then do a phoneOpen(phone_deviceID).
After that yo can try to phoneSetVolume(), phoneSetGain() etc.

--
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: 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: 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: Conference in Windows Mobile.
    ... hConsultCall is also NULL initialized handle ... TAPI / TSP Developer and Tester ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI how to get the device Name
    ... when I try to output ppName, I get hex or address location ... TAPI / TSP Developer and Tester ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI how to get the device Name
    ... So what is the function of ITAddress->GetAddressName(BSTR ppName)? ... TAPI / TSP Developer and Tester ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)