bypass_media=true & using continue_on_fail
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.
I don't think anyone will be able to assist unless you provide the debug log with sip trace and the relevant dialplan snippets. -MC On Fri, Nov 12, 2010 at 9:53 PM, Matthew Fong <mattdfong@gmail.com> wrote:
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.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This doesn't work on purpose and their is a reason but I can't recall it off the top of my head. But its a real good technical reason if I recall. /b On Nov 13, 2010, at 1:37 PM, Michael Collins wrote:
I don't think anyone will be able to assist unless you provide the debug log with sip trace and the relevant dialplan snippets. -MC
On Fri, Nov 12, 2010 at 9:53 PM, Matthew Fong <mattdfong@gmail.com> wrote: 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.
participants (3)
-
Brian West
-
Matthew Fong
-
Michael Collins