<div dir="ltr"><div style>i commented hangup_after_bridge and the problem persists,<br>my lua script:</div><div>freeswitch.consoleLog(&quot;info&quot;, &quot;lua===============================================\n&quot; )<br>
</div><div><br></div><div style>dialplan:</div><div style>    &lt;extension name=&quot;test_lua&quot; continue=&quot;false&quot;&gt;<br></div><div style><div>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;</div>
<div>    &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;!--&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;--&gt;</div>
<div><span class="" style="white-space:pre">        </span>&lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}&quot;/&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;action application=&quot;answer&quot;/&gt;</div>
<div>    &lt;action application=&quot;lua&quot; data=&quot;test.lua&quot;/&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div><div>     &lt;/condition&gt;</div>
<div>    &lt;/extension&gt;</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/10 Vincent Xia <span dir="ltr">&lt;<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</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">my lua script is very simple with just one sentence to print info on freeswitch console, i&#39;ve post it along with the dialplan anyways.</div>
<div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/10 Brian Foster <span dir="ltr">&lt;<a href="mailto:bdfoster@davri.com" target="_blank">bdfoster@davri.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">What exactly is your Lua script doing? Please post your script here at <a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a>. Also go ahead and post your relevent dialplan and reply with links to both posts.</p>



<p dir="ltr">- BDF</p>
<div class="gmail_quote"><div><div>On Jun 10, 2013 12:29 AM, &quot;Vincent Xia&quot; &lt;<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>&gt; wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div>i set the dialplan to call test.lua by adding</div><div>&lt;action application=&quot;lua&quot; data=&quot;test.lua&quot;/&gt;</div><div><br></div><div>it works fine when placing it before a &quot;bridge&quot; action, like </div>



<div>&lt;action application=&quot;lua&quot; data=&quot;test.lua&quot;/&gt;</div><div>&lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}&quot;/&gt;</div><div><br></div><div>but if i put &quot;lua&quot; after &quot;bridge&quot;</div>



<div>&lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}&quot;/&gt;</div><div>&lt;action application=&quot;lua&quot; data=&quot;test.lua&quot;/&gt;</div><div><br></div><div>then test.lua is not executed, no matter the dialed_extension answered the call or not,</div>



<div><br></div><div>my question is:</div><div>1. why is this happening?</div><div>2. how can i get test.lua get executed after &quot;bridge&quot;?</div><div><br></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>_________________________________________________________________________<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></div></blockquote></div><br></div>