I am trying to write an application that bypasses media between 2 endpoints.<div><br></div><div>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</div>
<div><br></div><div>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.</div>
<div><br></div><div>Thanks.</div>