Re: TAPI 2.0: phone methods not working
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Thu, 10 Jul 2008 18:40:04 +0200
<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.
.
- References:
- TAPI 2.0: phone methods not working
- From: mgregoire . m5t
- TAPI 2.0: phone methods not working
- Prev by Date: TAPI 2.0: phone methods not working
- Next by Date: Re: tapi3 - vb6: help in disconnect a call
- Previous by thread: TAPI 2.0: phone methods not working
- Next by thread: Re: Future of TAPI
- Index(es):
Relevant Pages
|