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"/>
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org