[Freeswitch-users] Continue after lua execute bridge
Michael Collins
msc at freeswitch.org
Wed Jan 4 00:48:36 MSK 2012
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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120103/5756358f/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list