[Freeswitch-users] bypass_media=true & using continue_on_fail

Matthew Fong mattdfong at gmail.com
Fri Nov 12 21:53:28 PST 2010


I am trying to write an application that bypasses media between 2 endpoints.

If I set both legs to bypass_media=true then bypass media works GREAT, but
if leg B (a SIP provider) returns an error code that is found inside
continue_on_fail, then the leg A will immediately hangup instead of
continuing on with the dial plan. ignore_early_media is set to true both on
leg A (FS) and this program, which is suppose to do switching amongst
various voip providers with a fail-over to the next provider if the first
provider throws an error inside continue_on_fail

I tried programming around this by instead setting bypass_media=false
initially and listening to the to the CHANNEL_BRIDGE event and issuing a
uuid_media off command but this causes the first half second or so of audio
not to be transmitted between the endpoints.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101112/fee03870/attachment.html 


More information about the FreeSWITCH-users mailing list