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

Phillip Jones pjintheusa at gmail.com
Tue Oct 26 13:00:55 PDT 2010


Anthony - thanks for the response and you patience!

>From your example the fail_on_single_reject must be passed in the {} before
the dial string. Not set on the A leg as I was doing:

This does not work:

<action application="set" data="fail_on_single_reject=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"/>

But this works now:

<action application="bridge"
data="{fail_on_single_reject=ALLOTTED_TIMEOUT,ignore_early_media=true,originate_continue_on_timeout=false}[leg_timeout=10]sofia/gateway/broadvox1/2158824374|[leg_timeout=25]sofia/gateway/broadvox2/2158824374"/>


Thanks again.




On Tue, Oct 26, 2010 at 2:51 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> I don't think you actually updated:
> see below
>
>
> freeswitch at deathstar.freeswitch.org> originate
>
> {fail_on_single_reject=ALLOTTED_TIMEOUT}error/ALLOTTED_TIMEOUT|sofia/internal/
> 1235 at conference.freeswitch.org
> 1234
> 2010-10-26 13:44:01.607864 [ERR] switch_ivr_originate.c:2612 Cannot
> create outgoing channel of type [error] cause: [ALLOTTED_TIMEOUT]
>
> -ERR ALLOTTED_TIMEOUT
>
> freeswitch at deathstar.freeswitch.org> originate
> error/ALLOTTED_TIMEOUT|sofia/internal/1235 at conference.freeswitch.org
> 1234                                        2010-10-26 13:44:09.407870
> [ERR] switch_ivr_originate.c:2612 Cannot create outgoing channel of
> type [error] cause: [ALLOTTED_TIMEOUT]
> 2010-10-26 13:44:09.407870 [NOTICE] switch_channel.c:784 New Channel
> sofia/internal/1235 at conference.freeswitch.org
> [91bdc528-23cd-429e-9d46-c9e97950599a]
> 2010-10-26 13:44:09.413867 [WARNING] switch_core_port_allocator.c:78
> Rounding odd end port 65535 to 65534
> 2010-10-26 13:44:09.573868 [INFO] sofia.c:709
> sofia/internal/1235 at conference.freeswitch.org Update Callee ID to
> "Imperial March" <sip:66 at 74.112.133.77 <sip%3A66 at 74.112.133.77>>
> 2010-10-26 13:44:09.577867 [NOTICE] sofia.c:4659 Ring-Ready
> sofia/internal/1235 at conference.freeswitch.org!
> 2010-10-26 13:44:09.681871 [NOTICE] sofia.c:5160 Channel
> [sofia/internal/1235 at conference.freeswitch.org] has been answered
> 2010-10-26 13:44:09.683869 [NOTICE] switch_ivr.c:1507 Transfer
> sofia/internal/1235 at conference.freeswitch.org to XML[1234 at default]
> 2010-10-26 13:44:09.683869 [INFO] mod_dialplan_xml.c:331 Processing
> Imperial March <66>->1234 in context default
>
> +OK 91bdc528-23cd-429e-9d46-c9e97950599a
>
> 2010-10-26 13:44:09.685878 [INFO] switch_ivr_async.c:2991 Bound A-Leg:
> *1 transfer::-both 3000
> freeswitch at deathstar.freeswitch.org> 2010-10-26 13:44:09.685878 [INFO]
> switch_core_session.c:1176
> sofia/internal/1235 at conference.freeswitch.org setting session
> heartbeat to 5 second(s).
> 2010-10-26 13:44:09.685878 [NOTICE] switch_channel.c:784 New Channel
> sofia/internal/sr at conference.freeswitch.org
> [80b3929b-a77f-4b4f-b9d2-433edbb36e30]
> 2010-10-26 13:44:09.895864 [INFO] sofia.c:709
> sofia/internal/sr at conference.freeswitch.org Update Callee ID to "sr"
> <sip:sr at 74.112.133.77 <sip%3Asr at 74.112.133.77>>
> 2010-10-26 13:44:09.901868 [NOTICE] sofia.c:5160 Channel
> [sofia/internal/sr at conference.freeswitch.org] has been answered
>
>
>
>
>
>
>
>
>
> On Tue, Oct 26, 2010 at 12:53 PM, Phillip Jones <pjintheusa at gmail.com>
> wrote:
> > Anthony - Any other thoughts on this? Anyone?
> >
> > On Mon, Oct 25, 2010 at 4:25 PM, Phillip Jones <pjintheusa at gmail.com>
> wrote:
> >>
> >> Anthony,
> >>
> >> Thanks. I updated to the latest trunk and retested. Unfortunately I got
> >> exactly the same result - 2158824374 is called by each gateway
> specified....
> >>
> >> Pj
> >>
> >>
> >>
> >> On Mon, Oct 25, 2010 at 2:09 PM, Anthony Minessale
> >> <anthony.minessale at gmail.com> wrote:
> >>>
> >>> can you try latest
> >>>
> >>> On Sun, Oct 24, 2010 at 10:09 AM, Phillip Jones <pjintheusa at gmail.com>
> >>> wrote:
> >>> > Jeff - Thanks for the response.
> >>> >
> >>> > <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="set" data="fail_on_single_reject=true"/>
> >>> >        <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>
> >>> > This gives exactly the same result. The 2158824374 is called by each
> >>> > gateway
> >>> > specified.
> >>> >
> >>> > Pj
> >>> > On Sat, Oct 23, 2010 at 6:17 PM, Jeff Lenk <jeff at jefflenk.com>
> wrote:
> >>> >>
> >>> >> what happens with  <action application="set"
> >>> >> data="fail_on_single_reject=true"/>
> >>> >>
> >>> >> --
> >>> >> View this message in context:
> >>> >>
> >>> >>
> http://freeswitch-users.2379917.n2.nabble.com/Using-the-bridge-operator-for-Implementing-Failover-tp5661010p5666526.html
> >>> >> Sent from the freeswitch-users mailing list archive at Nabble.com.
> >>> >>
> >>> >> _______________________________________________
> >>> >> 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
> >>
> >
> >
> > _______________________________________________
> > 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/20101026/3c92c07a/attachment.html 


More information about the FreeSWITCH-users mailing list