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.<br><br>So:<br>
<br> &lt;action application=&quot;bridge&quot;<br>
data=&quot;sofia/SIP_PROVIDER_1/6095551234,sofia/SIP_PROVIDER_1/7325551234&quot;/&gt;<div><br>becomes<br><br> &lt;action application=&quot;bridge&quot;<br>
data=&quot;loopback/6095551234,loopback/7325551234&quot;/&gt;<br><br>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&#39;t necessary.<br>
<br>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gw1/$1|sofia/gw2/$2...&quot;/&gt;<br></div><br><br><div class="gmail_quote">On Sat, Aug 8, 2009 at 5:59 AM, Phillip Jones <span dir="ltr">&lt;<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi there,<br>
<br>
I am trying to implement a scenario where I can terminate calls to<br>
multiple destinations AND have termination carrier fail over.<br>
Currently I can see how to do one or the other. But not both.<br>
<br>
Multiple destinations is easy:<br>
<br>
 &lt;action application=&quot;bridge&quot;<br>
data=&quot;sofia/SIP_PROVIDER_1/6095551234,sofia/SIP_PROVIDER_1/7325551234&quot;/&gt;<br>
<br>
Failover appears to use the same mechanism:<br>
<br>
&lt;action application=&quot;bridge&quot;<br>
data=&quot;sofia/gateway/primary/blah|sofia/gateway/secondary/blah&quot;/&gt;<br>
<br>
I can not get my head around how use these together, such that:<br>
<br>
<br>
- 6095551234 is dialed through SIP_PROVIDER_1<br>
- if NO_ROUTE_DESTINATION then dial 6095551234  through SIP_PROVIDER_2<br>
- Called party does not answer<br>
7325551234 is dialed through SIP_PROVIDER_1<br>
- if NO_ROUTE_DESTINATION then dial 7325551234 through SIP_PROVIDER_2<br>
- Called party answers<br>
<br>
<br>
This must be a fairly common requirement so any ideas on what I might<br>
be missing would be very welcome.<br>
<br>
Thanks<br>
<br>
<br>
Phillip Jones<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>