Re: question about making a call
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Mon, 7 Nov 2005 10:57:44 +0100
"jim" <jim@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:3992F5E4-C38C-439F-BE62-F6747E510DC4@xxxxxxxxxxxxxxxx
> I want to use a voice modem to make a phone call and play some wave files. I
> want to play a wave file at 1 second after a person has answered the phone.
> How can I control the timing?
jim,
Modem HW in voice mode doesn't have proper call state progression detection,
so
the modem simply doesn't know when the far end answers the call, and therefore
TAPI can't know either. UniModem.TSP just generates _CONNECTED after dialing
is complete.
Possible workarounds:
1) Do the analysis of the incoming media stream on your own and try to detect
whether it is a human voice or answering machine on the other side.
This is probably what the control you mentioned is doing.
2) Play repeatedly an anouncement, instructing the callee to press a button
("Press '1' to continue ...").
You can use lineMonitorDigits() to get this button press.
If you get this event, you may conclude that a human answered the call.
3) Use other HW that has better call state progression detection.
For telephony devices with proper call progression detection you may want to
see
http://www.terasens.de/products/teravoice/hardware.aspx?Language=EN
Regarding playing wave files you may want to take a look at the tapisend
sample (TAPI3 in C/C++) from P-SDK and at the IVR application (including
source for TAPI2 in C/C++) from Alex. C. Punnen.
See my TAPI and TSPI FAQ:
Q: Is there any sample code available ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
* 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.
.
- Follow-Ups:
- Re: question about making a call
- From: jim
- Re: question about making a call
- Prev by Date: Re: TAPI around the world (Frappr! map)
- Next by Date: Re: understanding disconnect event while running Consultative transfer
- Previous by thread: Avaya IPO Wave Driver
- Next by thread: Re: question about making a call
- Index(es):