[Freeswitch-users] How to failover with fail_on_single_reject construct

Mimiko vbvbrj at gmail.com
Mon Oct 28 10:21:53 MSK 2013


On 25.10.2013 22:41, Johny Kadarisman Kwan wrote:
> Like to report back, in case anybody bumping to the same problem.
>
> After digging more and looking at debug log. Apparently the culprit is
> on the way I set channel variable. On my case, dialstring should be :
>
>      <action application="bridge"
>   data="{ignore_early_media=true,fail_on_single_reject=^^:NO_ANSWER:ALLOTTED_TIMEOUT}[leg_timeout=20}]sofia/gateway/gw1/7321231234|[leg_timeout=20]sofia/gateway/gw2/7321231234|[leg_timeout=20]sofia/gateway/gw3/7321231234}"/>
>
> Once that in-place, it work as expected.
>
> Thats all, my bad, Freeswitch Rock!!

Thank you. I am too in implementing this and was wandering how to do it. 
As I understand, fail_on_single_reject=^^:NO_ANSWER:ALLOTTED_TIMEOUT 
will make the bridge to try next gateway if there is a network failure 
with the gateway or its server does not respond, but will not try next 
gateway if caller does not answer or it is invalid number?

Also could you update wiki to reflect this example of yours?

-- 
Mimiko desu.



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list