<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">would you like to try this?<div><br></div><div><div>bridge_hangup_cause = session:getVariable("bridge_hangup_cause") or session:getVariable("originate_disposition");</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if &nbsp;(bridge_hangup_cause == "NORMAL_TEMPORARY_FAILURE" or bridge_hangup_cause == "NO_ROUTE_DESTINATION" or bridge_hangup_cause == "CALL_REJECTED") &nbsp;then</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>--&nbsp;blah...<br></div><div><br></div><div><br></div><div><html>On May 22, 2009, at 2:14 PM, Matthew Fong wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">grr...continue_on_fail...ignore my ignorance ;)<div><br></div><div>but it would still be nice getting a response back from the session:execute bridge</div><div><br></div><div>--matt<br><br><div class="gmail_quote">On Thu, May 21, 2009 at 11:09 PM, Matthew Fong <span dir="ltr">&lt;<a href="mailto:mattdfong@gmail.com">mattdfong@gmail.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hrm...it's also seems to be that if my lua script looks like<div><br></div><div><div>session:execute("bridge", "sofia/gateway/XXX/0XXXXX")</div> <div>session:execute("bridge", "sofia/gateway/XXXX/XXX")</div> </div><div><br></div><div>if the first bridge fails, the session is immediately hungup, even if hangup_after_bridge is set to false...is this the intended behavior?</div><div><br></div><div>I'm not trying to setup failover--I know I can use | to setup a bridge failover, but would like to retain use of the lua ivr script should a bridge fail. If I want to redirect to a voicemail or recorded message, on bridge fail, how can I do this? Thanks again.</div> <div><br></div><div>--matt</div><div><div></div><div class="h5"><div><br><div class="gmail_quote">On Thu, May 21, 2009 at 10:44 PM, Matthew Fong <span dir="ltr">&lt;<a href="mailto:mattdfong@gmail.com" target="_blank">mattdfong@gmail.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I'm using a lua script to control an IVR, and would like to know how I can tell if a&nbsp;<div><br></div><div>session:execute("bridge","sofia/gateway/blahblah");</div><div><br></div><div>was successful or not</div> <div><br></div><div>it seems the response from session:execute is nil regardless if the bridge was successful or not</div><div><br></div><div>whats the best way? Thanks</div><div><br></div><div>--matt</div> </blockquote></div><br></div> </div></div></blockquote></div><br></div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>