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"><<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"><<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 <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>