[Freeswitch-users] Trying to originate a call using ES.

Yuriy Nasida nasida at live.ru
Thu Nov 20 21:31:06 MSK 2014


Hi,

You can try to use loopback/<exten>[/context[/dialplan]] instead of user/1000 
+ originate_timeout

It works for me.

From: my.post at hotmail.com
To: freeswitch-users at 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 at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141120/1cf27b2d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list