<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>You can try to use loopback/&lt;exten&gt;[/context[/dialplan]] instead of user/1000 <br>+ originate_timeout<br><br>It works for me.<br><br><div><hr id="stopSpelling">From: my.post@hotmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Wed, 12 Nov 2014 23:26:20 +0600<br>Subject: [Freeswitch-users] Trying to originate a call using ES.<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hello Everybody!<br><br>I'm stuck trying to originate a call using event socket.<br>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:<br><br>$con-&gt;sendRecv("api originate user/1000&nbsp; &amp;park()")<br>This works.<br><br>The question is how can I control a unanswered timeout of this originate, say to playback some message to initial caller after 5 seconds ?<br><br>I've tried setting the following variables:<br><br>originate_timeout=5<br>leg_timeout=5<br>call_timeout=5<br><br>like so:<br><br>$con-&gt;sendRecv("api originate {originate_timeout=5}user/1000&nbsp; &amp;park()")<br><br>None of this working. The originated call keeps ringing.<br>Please advise.<br><br>Thanks.<br><br>Regards,<br><br>Pavel.<br>                                               </div>
<br>_________________________________________________________________________
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</div>                                               </div></body>
</html>