<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear All,</div>
<div> </div>
<div>I'm experimenting with the piped failover on the latest master. I want a failover to stop gw hunting and return from bridge when B-leg receives a specific disconnect code e.g. USER_BUSY or NO_ANSWER, but while it works as expected with error channels in console i.e.:</div>
<div> </div>
<div>freeswitch@internal> originate {fail_on_single_reject=CALL_REJECTED:USER_BUSY}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED 999<br/>
-ERR USER_BUSY</div>
<div> </div>
<div>
<div>freeswitch@internal> originate {fail_on_single_reject=CALL_REJECTED:NO_ANSWER}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED 999<br/>
-ERR NO_ANSWER</div>
<div> </div>
<div>it does not work in dialplan:</div>
<div> </div>
<div>
<div> <extension name="outbound"><br/>
<condition field="destination_number" expression="^\d{7}$"><br/>
<action application="set" data="bridge_answer_timeout=120"/><br/>
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE:NO_ROUTE_DESTINATION:CALL_REJECTED"/><br/>
<action application="set" data="fail_on_single_reject=USER_BUSY:NO_ANSWER:NO_USER_RESPONSE:RECOVERY_ON_TIMER_EXPIRE:ORIGINATOR_CANCEL"/><br/>
<action application="set" data="bridge_early_media=true"/><br/>
<action application="set" data="hangup_after_bridge=true"/><br/>
<action application="odbc_query" inline="true" data="route_out"/><br/>
<action application="bridge" data="${bridge_to}"/><br/>
<action application="hangup" data="${last_bridge_hangup_cause}"/><br/>
<anti-action application="hangup" data="INVALID_NUMBER_FORMAT"/><br/>
</condition><br/>
</extension></div>
<div> </div>
<div>or when included in bridge dialstring:</div>
<div> </div>
<div><action application="bridge" data="{fail_on_single_reject=USER_BUSY:NO_ANSWER}${bridge_to}"/></div>
<div> </div>
<div>i.e. it tries *all* gateways in the dialstring and ignores returning codes completely.</div>
<div> </div>
<div>I tried the same test when remote gateways were just hanging up with USER_BUSY code on receiving calls, but it did not affect the same negative result - all remote peers were tried in order and return code were ignored.</div>
<div> </div>
<div>I had the same experience with ver 1.2, but that time set continue_on_single_reject=err1,err2,err3 in dialplan worked for me flawlessly. However the same approach does not work for 1.5 and 1.4. Has anyone succeded in getting it to work as expected?</div>
<div> </div>
<div>Thanks / Mike</div>
</div>
</div></div></body></html>