[Freeswitch-users] How to failover with fail_on_single_reject construct

Johny Kadarisman Kwan jkr888 at gmail.com
Fri Oct 18 23:58:46 MSD 2013


I’m attempting to setup FS to failover from gw1, gw2, and gw3 subsequently.
AND if any gateway response with NO_ANSWER or ALLOTED_TIMEOUT, then the
next attempt should be stop. Using “fail_on_single_reject” var, I tried
following script :



   <extension name="public_extensions">

      <condition field="destination_number" expression="^1234$">

                      <action application="sleep" data="2000"/>

                      <action application="answer"/>

    <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}"/>

                     <action application="hangup"/>

      </condition>

    </extension>



Bridge app still continue attempting call to each gw1, gw2, and gw3 when
 ALLOTED_TIMEOUT response. From searching lists, above dialplan should work
out fine. Did I misses any steps?



Btw, tried above on FreeSWITCH Version
1.5.6b+git~20131010T172322Z~1cd6d44b06 (git 1cd6d44 2013-10-10 17:23:22Z)
windows built.



Thanks,

Jkwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131018/b626c642/attachment.html 


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