How to delay IVR answer during an outbound call
I have a dummy question. Say, you have an outbound call to the demo IVR as below: originate sofia/gateway/myvoip/19876543210 5000 How do I delay the IVR response until the recipient at 19876543210 picks up the call? I tried "ignore_early_media=true", which had no effect. Many thanks in advance.
Is your provider answering the call before its connected? If so then they should be shot. I can't imagine other way the call would be answered unless you're using ignore_early_media wrong.... can you show me who you're doing this? /b On Aug 12, 2009, at 12:58 AM, Paul Li wrote:
I have a dummy question. Say, you have an outbound call to the demo IVR as below:
originate sofia/gateway/myvoip/19876543210 5000
How do I delay the IVR response until the recipient at 19876543210 picks up the call? I tried "ignore_early_media=true", which had no effect.
Many thanks in advance.
I am actually doing a lua script for IVR as follows -- answer the call session:answer(); while session:ready() == true do -- sleep a second session:sleep(1000); -- play a file session:streamFile("/path/to/blah.wav"); -- hangup session:hangup(); end The problem lies in: when I picked up my phone, blah.wav was already played for a while, instead of from the beginning. I shall greatly appreciate any input. On Wed, Aug 12, 2009 at 12:58 AM, Paul Li<plite2012@gmail.com> wrote:
I have a dummy question. Say, you have an outbound call to the demo IVR as below:
originate sofia/gateway/myvoip/19876543210 5000
How do I delay the IVR response until the recipient at 19876543210 picks up the call? I tried "ignore_early_media=true", which had no effect.
Many thanks in advance.
I have been experiencing this as well. It happens randomly and I haven't been able to find out what the issue is. I think there is some delay when the RTP ports are being negotiated/allocated. Or something. What helped me a bit: I start with playing a file containing 1 second of silence and only then do whatever I want to do. Jan On Wed, Aug 12, 2009 at 8:23 AM, Paul Li<plite2012@gmail.com> wrote:
I am actually doing a lua script for IVR as follows
-- answer the call session:answer();
while session:ready() == true do -- sleep a second session:sleep(1000);
-- play a file session:streamFile("/path/to/blah.wav");
-- hangup session:hangup(); end
The problem lies in: when I picked up my phone, blah.wav was already played for a while, instead of from the beginning.
I shall greatly appreciate any input.
On Wed, Aug 12, 2009 at 12:58 AM, Paul Li<plite2012@gmail.com> wrote:
I have a dummy question. Say, you have an outbound call to the demo IVR as below:
originate sofia/gateway/myvoip/19876543210 5000
How do I delay the IVR response until the recipient at 19876543210 picks up the call? I tried "ignore_early_media=true", which had no effect.
Many thanks in advance.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Nope. The issue is the far end isn't done in time. So we send packets and they ignore them. The only way to prevent this is to answer, silence_stream://1000, then playback. /b On Aug 20, 2009, at 10:43 AM, Jan Kubr wrote:
I have been experiencing this as well. It happens randomly and I haven't been able to find out what the issue is. I think there is some delay when the RTP ports are being negotiated/allocated. Or something. What helped me a bit: I start with playing a file containing 1 second of silence and only then do whatever I want to do.
Jan
participants (3)
-
Brian West
-
Jan Kubr
-
Paul Li