[Freeswitch-users] Calling Multiple Destinations with Failover

Rupa Schomaker rupa at rupa.com
Sat Aug 8 07:16:37 PDT 2009


While any use of loopback can be considered abuse, that is how I solve this
issue.  I use loopback for each dialed # and then in the dialplan use
mod_lcr to build a dialstring that does failover in order of cost.

So:

 <action application="bridge"
data="sofia/SIP_PROVIDER_1/6095551234,sofia/SIP_PROVIDER_1/7325551234"/>
becomes

 <action application="bridge"
data="loopback/6095551234,loopback/7325551234"/>

In the dialplan you then match on those (just regular 10digit dialing) and
do your normal failover dialstring.  Again, I do this with mod_lcr but that
isn't necessary.

<action application="bridge" data="sofia/gw1/$1|sofia/gw2/$2..."/>


On Sat, Aug 8, 2009 at 5:59 AM, Phillip Jones <pjintheusa at gmail.com> wrote:

> Hi there,
>
> I am trying to implement a scenario where I can terminate calls to
> multiple destinations AND have termination carrier fail over.
> Currently I can see how to do one or the other. But not both.
>
> Multiple destinations is easy:
>
>  <action application="bridge"
> data="sofia/SIP_PROVIDER_1/6095551234,sofia/SIP_PROVIDER_1/7325551234"/>
>
> Failover appears to use the same mechanism:
>
> <action application="bridge"
> data="sofia/gateway/primary/blah|sofia/gateway/secondary/blah"/>
>
> I can not get my head around how use these together, such that:
>
>
> - 6095551234 is dialed through SIP_PROVIDER_1
> - if NO_ROUTE_DESTINATION then dial 6095551234  through SIP_PROVIDER_2
> - Called party does not answer
> 7325551234 is dialed through SIP_PROVIDER_1
> - if NO_ROUTE_DESTINATION then dial 7325551234 through SIP_PROVIDER_2
> - Called party answers
>
>
> This must be a fairly common requirement so any ideas on what I might
> be missing would be very welcome.
>
> Thanks
>
>
> Phillip Jones
>
> _______________________________________________
> 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
>



-- 
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090808/194c7102/attachment-0002.html 


More information about the FreeSWITCH-users mailing list