[Freeswitch-users] Best way to determine if a bridge was successful in Lua
Matthew Fong
mattdfong at gmail.com
Thu May 21 23:14:37 PDT 2009
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 <mattdfong at gmail.com> wrote:
> hrm...it's also seems to be that if my lua script looks like
> session:execute("bridge", "sofia/gateway/XXX/0XXXXX")
> session:execute("bridge", "sofia/gateway/XXXX/XXX")
>
> if the first bridge fails, the session is immediately hungup, even if
> hangup_after_bridge is set to false...is this the intended behavior?
>
> 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.
>
> --matt
>
> On Thu, May 21, 2009 at 10:44 PM, Matthew Fong <mattdfong at gmail.com>wrote:
>
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090521/aab67b9e/attachment-0002.html
More information about the FreeSWITCH-users
mailing list