<div dir="ltr"><div style>i commented hangup_after_bridge and the problem persists,<br>my lua script:</div><div>freeswitch.consoleLog("info", "lua===============================================\n" )<br>
</div><div><br></div><div style>dialplan:</div><div style> <extension name="test_lua" continue="false"><br></div><div style><div> <condition field="destination_number" expression="^(10[01][0-9])$"></div>
<div> <action application="export" data="dialed_extension=$1"/></div><div><span class="" style="white-space:pre">        </span><!--<action application="set" data="hangup_after_bridge=true"/>--></div>
<div><span class="" style="white-space:pre">        </span><action application="bridge" data="user/${dialed_extension}"/></div><div><span class="" style="white-space:pre">        </span><action application="answer"/></div>
<div> <action application="lua" data="test.lua"/></div><div><span class="" style="white-space:pre">        </span><action application="sleep" data="1000"/></div><div> </condition></div>
<div> </extension></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"><<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>></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'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"><<a href="mailto:bdfoster@davri.com" target="_blank">bdfoster@davri.com</a>></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, "Vincent Xia" <<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>> 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><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></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>