<div dir="ltr">leg_timeout  - <a href="http://wiki.freeswitch.org/wiki/Variable_leg_timeout">http://wiki.freeswitch.org/wiki/Variable_leg_timeout</a> - this limits how long to TRY to connect the leg.<br>Once the call connects, this timer is no longer applied.<br>

<br>If you want to enforce a maximum answered time, then use:<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup</a></div>

<div><meta http-equiv="content-type" content="text/html; charset=utf-8">or <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_transfer">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_transfer</a></div>

<div><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_transfer"></a><br>-Avi Marcus<br><br><br>On Tue, Jul 5, 2011 at 5:59 PM, Mateusz Bartczak &lt;<a href="mailto:netcentrica@gmail.com">netcentrica@gmail.com</a>&gt; wrote:<br>

&gt; Hi all<br>&gt;<br>&gt; I use outbound socket to handle call, I&#39;m bridging call to external voip<br>&gt; provider. This works very nice but I also need to specify call timeout (once<br>&gt; answered).<br>&gt;<br>
&gt; I&#39;ve tried following but with no success:<br>
&gt;<br>&gt; sendmsg<br>&gt; call-command: execute<br>&gt; execute-app-name: bridge<br>&gt; execute-app-arg:<br>&gt; {ignore_early_media=true,leg_timeout=10}sofia/gateway/trunk/600<br>&gt; event-lock: true<br>&gt;<br>&gt; sendmsg<br>

&gt; call-command: execute<br>&gt; execute-app-name: bridge<br>&gt; execute-app-arg:<br>&gt; {ignore_early_media=true}[leg_timeout=10]sofia/gateway/trunk/600<br>&gt; event-lock: true<br>&gt;<br>&gt; sendmsg<br>&gt; call-command: execute<br>

&gt; execute-app-name: bridge<br>&gt; execute-app-arg: [leg_timeout=10]sofia/gateway/trunk/600<br>&gt; event-lock: true<br>&gt;<br>&gt;<br>&gt; Leg_timeout seems to be ignored and call continues after 10 seconds. What&#39;s<br>

&gt; the correct form of setting it for calls bridged via outbound socket<br>&gt; handler?<br>&gt;<br>&gt; Is the leg_timeout a good choice to limit maximum answered call length?<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>

&gt; Join us at ClueCon 2011, Aug 9-11, Chicago<br>&gt; <a href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE<br>&gt;<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>

&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br><br></div></div>