<div dir="ltr">got it, thanks a lot!</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/30 Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try <a href="https://wiki.freeswitch.org/wiki/Variable_leg_timeout" target="_blank">https://wiki.freeswitch.org/wiki/Variable_leg_timeout</a> in the actual bridge string, e.g.:<div>
<pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">
&lt;action application=&quot;bridge&quot; data=&quot;[leg_timeout=15]user/hastoanswerquickly/<a href="http://some.domain.com" target="_blank">some.domain.com</a>,[leg_timeout=60]user/<a href="mailto:hasaminutetoanswer@some.domain.com" target="_blank">hasaminutetoanswer@some.domain.com</a>&quot;/&gt;</pre>


</div><div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div></div><br><div class="gmail_quote"><div><div class="h5">On Sat, Jun 29, 2013 at 12:00 PM, Vincent Xia <span dir="ltr">&lt;<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><br></div><div>in a dialplan extension, i have</div><div>&lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot; /&gt;</div>


<div>then</div><div><br></div><div>&lt;action application=&quot;lua&quot; data=&quot;bridge.lua ${effective_caller_id_number} $1&quot;&gt;</div>
<div>in which call bridging is to be processed, after this, is</div><div><br></div><div>&lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot; /&gt;</div>



<div>to transfer the call to voicemail.</div><div><br></div><div>the purpose is to test no-answer till timeout and see if the call is transferred as planned.</div><div><br></div><div>but nothing happened untill 60 secs after the dial, which is the default value of call_timeout.</div>



<div><br></div><div>in my understanding, when lua takes over, the channel variable call_timeout is no longer effective and will not affect what happens in lua script, so i tried</div><div><br></div><div>session:execute(&quot;set&quot;, &quot;call_timeout=30&quot;);</div>



<div>in bridge.lua, but the problem is still there.</div><div><br></div><div>how to make call_timeout work with lua, could anyone figure this out?</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>