[Freeswitch-users] Using the bridge | operator for Implementing Failover

Anthony Minessale anthony.minessale at gmail.com
Fri Oct 22 13:42:22 PDT 2010


also add {originate_continue_on_timeout=false}


On Fri, Oct 22, 2010 at 2:58 PM, Phillip Jones <pjintheusa at gmail.com> wrote:
> Anthony - thanks for the response.
>
> <include>
>   <extension name="public_did">
>     <condition field="destination_number" expression="^(3478309992)$">
>       <action application="answer"/>
>       <action application="sleep" data="2000"/>
>       <action application="set"
> data="fail_on_single_reject=NO_ANSWER,NORMAL_CLEARING,ALLOTTED_TIMEOUT"/>
>       <action application="bridge"
> data="{ignore_early_media=true}[leg_timeout=10]sofia/gateway/broadvox1/2158824374|[leg_timeout=25]sofia/gateway/broadvox2/2158824374"/>
>     </condition>
>   </extension>
> </include>
>
> I get ALLOTTED_TIMEOUT as expected from the first attempt at
> calling 2158824374, but it is just called again through the 2nd broadvox
> gateway. It does not fail as expected.
>
> I am on todays GIT.
>
> I do note that in the WIKI and code comments - it only mentions
> fail_on_single_reject in connection the ',' AND operator not '|' pipe
> operator.
>
> Can you see what I am doing wrong here?
>
> Thanks,
>
>
> Pj
>
>
> On Thu, Oct 21, 2010 at 11:55 PM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
>>
>> put this before the bridge call
>>
>> <!-- add as many , sep cause codes which qualify to stop trying the
>> pipe sep list -->
>> <action application="set" data="fail_on_single_reject=no_answer"/>
>>
>>
>> On Thu, Oct 21, 2010 at 8:23 PM, Phillip Jones <pjintheusa at gmail.com>
>> wrote:
>> > Hi there,
>> > From the WIKI
>> > Implementing Failover
>> >
>> > Failover for your outbound gateway is easy to implement at bridge time
>> > using
>> > the | separator:
>> >
>> > <action application="bridge"
>> >
>> > data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/>
>> >
>> >
>> > In the above example though, if the user does not pick the call, that
>> > bridge
>> > will try again using the secondary gateway, which is not desired. The
>> > second
>> > attempt should only be made in there is a problem with the gateway.
>> >
>> > How do you control that? .
>> >
>> >
>> > Thanks
>> >
>> >
>> > Pj
>> > _______________________________________________
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > http://www.freeswitch.org
>> >
>> >
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list