Trying to originate a call using ES.
Hello Everybody! I'm stuck trying to originate a call using event socket. Somewhere on the internet I've found some Perl script involving ESL. So I changed it a bit so I get an incoming call to outbound socket, look for destination number and trying to set up outgoing call using originate like so: $con->sendRecv("api originate user/1000 &park()") This works. The question is how can I control a unanswered timeout of this originate, say to playback some message to initial caller after 5 seconds ? I've tried setting the following variables: originate_timeout=5 leg_timeout=5 call_timeout=5 like so: $con->sendRecv("api originate {originate_timeout=5}user/1000 &park()") None of this working. The originated call keeps ringing. Please advise. Thanks. Regards, Pavel.
Hello! Some clarifications: This is working: $con->sendRecv("api originate {originate_timeout=5}user/1000 &park()") But this is not: $con->sendRecv("api originate {return_ring_ready=true,originate_timeout=5}user/1000 &park()") The originated call keeps ringing.Please advise. Thanks. Regards, Pavel.
what return_ring_ready means is to consider the call successful on a sip 180 or ringing indication, at that point, we would stop tracking the timeouts. If you want to wait for the timeout until its answered, don't use return_ring_ready.
On Nov 13, 2014, at 5:26 AM, Pavel <my.post@hotmail.com> wrote:
Hello! Some clarifications:
This is working: $con->sendRecv("api originate {originate_timeout=5}user/1000 &park()")
But this is not: $con->sendRecv("api originate {return_ring_ready=true,originate_timeout=5}user/1000 &park()")
The originated call keeps ringing.Please advise.
Hi, You can try to use loopback/<exten>[/context[/dialplan]] instead of user/1000 + originate_timeout It works for me. From: my.post@hotmail.com To: freeswitch-users@lists.freeswitch.org Date: Wed, 12 Nov 2014 23:26:20 +0600 Subject: [Freeswitch-users] Trying to originate a call using ES. Hello Everybody! I'm stuck trying to originate a call using event socket. Somewhere on the internet I've found some Perl script involving ESL. So I changed it a bit so I get an incoming call to outbound socket, look for destination number and trying to set up outgoing call using originate like so: $con->sendRecv("api originate user/1000 &park()") This works. The question is how can I control a unanswered timeout of this originate, say to playback some message to initial caller after 5 seconds ? I've tried setting the following variables: originate_timeout=5 leg_timeout=5 call_timeout=5 like so: $con->sendRecv("api originate {originate_timeout=5}user/1000 &park()") None of this working. The originated call keeps ringing. Please advise. Thanks. Regards, Pavel. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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
participants (3)
-
Michael Jerris
-
Pavel
-
Yuriy Nasida