No, you cannot do it this way. If you call the bridge from within your Lua script then the Lua script will be "active" for the duration of the bridge. If you transfer the call out to an XML dialplan and then perform the bridge then you'll be fine. -MC On Sat, Dec 24, 2011 at 7:01 AM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Gang,
I'm executing from a lua script:
session:execute("bridge","sofia/gateway/" .. gw .. "/" .. out_number .. "")
But I want my script to END if the bridge is succesfull, i.e.: Ringing, Answer, Busy... I've been testing, but it doesn't seem like the script is aware of the result of the bridge until AFTER it has been release by the "bridge" application...
Is there ANY way to end my script in any of the scenarious mentioned before? (Ringing, Answer, Busy)
Thanks a lot
oh, and MERRY CHRISTMAS or Happy Holidays, or whatever suits you! ;)
David
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org