<div dir="ltr">Do you have <action application="set" data="hangup_after_bridge=true"/> ? <a href="https://wiki.freeswitch.org/wiki/Variable_hangup_after_bridge">(wiki)</a><br><div>That's a usual way to run your dialplan and will hangup the channel before the lua script gets called.</div>
<div><br></div><div>So you can either not use the hangup_after_bridge, or, use an <a href="http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook">api_hangup_hook</a>.</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">On Mon, Jun 10, 2013 at 7:19 AM, Vincent Xia <span dir="ltr"><<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>i set the dialplan to call test.lua by adding</div><div><action application="lua" data="test.lua"/></div><div><br></div><div>it works fine when placing it before a "bridge" action, like </div>
<div><action application="lua" data="test.lua"/></div><div><action application="bridge" data="user/${dialed_extension}"/></div><div><br></div><div>but if i put "lua" after "bridge"</div>
<div><action application="bridge" data="user/${dialed_extension}"/></div><div><action application="lua" data="test.lua"/></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 "bridge"?</div><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></div>