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&#39;m simply wasting the second carrier&#39;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=&#39;RECOVERY_ON_TIMER_EXPIRE&#39;,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&#39;m trying to do...preferably w/o mod_lcr?</div><div><br></div><div>Thanks.</div>