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

Phillip Jones pjintheusa at gmail.com
Fri Oct 22 14:43:01 PDT 2010


Thanks.

That didn't seem to work however.

<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,originate_continue_on_timeout=false}[leg_timeout=10]sofia/gateway/broadvox1/2158824374|[leg_timeout=25]sofia/gateway/broadvox2/2158824374"/>
    </condition>
 </extension>

2158824374 is called from each gateway.

I also tried, originate_continue_on_timeout=true since the WIKI says the
default is false.


Any other ideas?


Thanks!

Pj




On Fri, Oct 22, 2010 at 4:42 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> 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 <MSN%3Aanthony_minessale at hotmail.com>
> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> >> IRC: irc.freenode.net #freeswitch
> >>
> >> FreeSWITCH Developer Conference
> >> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> >> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 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 <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101022/3f511499/attachment-0001.html 


More information about the FreeSWITCH-users mailing list