No, you cannot do it this way. If you call the bridge from within your Lua script then the Lua script will be &quot;active&quot; for the duration of the bridge. If you transfer the call out to an XML dialplan and then perform the bridge then you&#39;ll be fine.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Sat, Dec 24, 2011 at 7:01 AM, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Gang,<div><br></div><div>I&#39;m executing from a lua script:</div><div><br></div><div>session:execute(&quot;bridge&quot;,&quot;sofia/gateway/&quot; .. gw .. &quot;/&quot; .. out_number .. &quot;&quot;)</div>
<div><br>

</div><div>But I want my script to END if the bridge is succesfull, i.e.: Ringing, Answer, Busy...</div><div>I&#39;ve been testing, but it doesn&#39;t seem like the script is aware of the result of the bridge until AFTER it has been release by the &quot;bridge&quot; application...</div>


<div><br></div><div>Is there ANY way to end my script in any of the scenarious mentioned before? (Ringing, Answer, Busy)</div><div><br></div><div>Thanks a lot</div><div><br></div><div>oh, and MERRY CHRISTMAS or Happy Holidays, or whatever suits you! ;)</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div><div>David</div>
</font></span><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>