Re: [Freeswitch-users] Best way to determine if a bridge was successful in Lua

2009-05-21 Thread seven
would you like to try this? bridge_hangup_cause = session:getVariable("bridge_hangup_cause") or session:getVariable("originate_disposition"); if (bridge_hangup_cause == "NORMAL_TEMPORARY_FAILURE" or bridge_hangup_cause == "NO_ROUTE_DESTINATION" or bridge_hangup_cause == "CALL_REJEC

Re: [Freeswitch-users] Best way to determine if a bridge was successful in Lua

2009-05-21 Thread Matthew Fong
grr...continue_on_fail...ignore my ignorance ;) but it would still be nice getting a response back from the session:execute bridge --matt On Thu, May 21, 2009 at 11:09 PM, Matthew Fong wrote: > hrm...it's also seems to be that if my lua script looks like > session:execute("bridge", "sofia/gatew

Re: [Freeswitch-users] Best way to determine if a bridge was successful in Lua

2009-05-21 Thread Matthew Fong
hrm...it's also seems to be that if my lua script looks like session:execute("bridge", "sofia/gateway/XXX/0X") session:execute("bridge", "sofia/gateway//XXX") if the first bridge fails, the session is immediately hungup, even if hangup_after_bridge is set to false...is this the intended be

[Freeswitch-users] Best way to determine if a bridge was successful in Lua

2009-05-21 Thread Matthew Fong
I'm using a lua script to control an IVR, and would like to know how I can tell if a session:execute("bridge","sofia/gateway/blahblah"); was successful or not it seems the response from session:execute is nil regardless if the bridge was successful or not whats the best way? Thanks --matt _