The only reason ORIGINATOR_CANCEL is that FS canceled the call and moving forward to the next  after the `|' so there's no reason it work as you thought. So I would completely remove everything including and after `|' if I really don't want to call over the next gateway.



On Fri, Mar 13, 2015 at 9:53 PM, 彭勇 <ppyy@pubyun.com> wrote:

we would like to fail over in inbound event socket:

dial in -> park 
origin -> park
uuid_bridge

originate {continue_on_fail=^^:NO_USER_RESPONSE:UNALLOCATED_NUMBER:NORMAL_TEMPORARY_F
AILURE:NO_ROUTE_DESTINATION:CALL_REJECTED:RECOVERY_ON_TIMER_EXPIRE:NETWORK_OUT_OF_ORDER,fail_on_single_reject=^^:USER_BUSY:NO_ANSWER:ORIGINATOR_CANCEL}sofia/gateway/gw01/xxxx|sofia/gateway/gw02/xxxx &park()

it will not hangup if the first gateway fails with ORIGINATOR_CANCEL.

how can set continue_on_fail and fail_on_single_reject?

--
Peng Yong

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

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



--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn