Author |
|
ajdiaz Junior
Joined: December 10 2007 Location: United States Posts: 76
|
Posted: July 08 2009 at 6:46pm | IP Logged
|
|
|
Question: If we are transmitting a very big wave file (2 minutes long) using TransmitInCallIvrData() and the listener hangs up the phone, will TransmitInCallIvrData() return an error because the user hung up the phone and the phone line is now OnHook, or will it continue transmitting data until the wave file / buffer is completed, possible minutes after the user has disconnected?
I could not find in the documentation where this question was addressed.
Thanks.
-AJ
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: July 09 2009 at 1:30pm | IP Logged
|
|
|
Hello AJ,
You understand exactly.
If you are transmitting audio out to any phone line and the far end terminates the call (hangs up), the TransmitInCallIvrData() API procedure will return the SipNoCallActive status back to your application when you try to send the next sample buffer of data to the phone line IVR channel. You can use this return status value to detect when your VOIP app can stop transmitting Tx IVR data to the phone line.
I have made a note of your question. I think we need to add this to the API docs as a clarification.
Good work!
Randal
|
Back to Top |
|
|