<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><action application="set" data="failure_causes=user_busy,recovery_on_timer_expire" /> and then originate it.<div><br></div><div>Math<br><div><div><br><div><div>On 19-Jun-09, at 1:16 AM, Matthew Fong wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have two providers and want to first try to originate the call with provider A, and if that fails on certain failure causes attempt to originate the same call with provider B.<div><br></div><div>Normally I would do this using an | in the dial string like originate sofia/gatewayA/123456|sofia/gatewayB/123456</div> <div><br></div><div>but I do not want it to fail over on failure codes like USER_BUSY or NO_ANSWER because then I'm simply wasting the second carrier's resources. instead I would like to set a which error codes are considered a failure. The wiki notes a failure_causes channel variable for bridged calls, but this does not seem to work in an originate statement like </div> <div><br></div><div>originate {failure_causes='RECOVERY_ON_TIMER_EXPIRE',continue_on_fail=false}sofia/gateway/<a href="http://gatewaya.com/1XXXXXX">gatewaya.com/1XXXXXX</a> |sofia/gateway/<a href="http://gatewayb.com/1XXXXXX">gatewayb.com/1XXXXXX</a> 5000</div> <div><br></div><div>Can anyone recommend a way to accomplish what I'm trying to do...preferably w/o mod_lcr?</div><div><br></div><div>Thanks.</div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></div></body></html>