[OpenSIPS-Users] DR module fail over on multiple carriers with multiple gateways

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jan 6 10:34:09 CET 2016


Hi Jim,

The prefix matching does not work like that, please see:
http://www.opensips.org/html/docs/modules/1.11.x/drouting.html#id293629

For what you what to achieve, the DR rule should look like:
     prefix=216555, gwlist=#carrier2,#carrier1

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.01.2016 22:33, Jim DeVito wrote:
> Hi All,
>
> I'm trying to get this going but am having no luck. Basically I would 
> like the dynamic routing module to cycle through the list of gateways 
> associated with a carrier AND then move on to the next matching prefix 
> with a lower priority. All the reading and testing seem to say you 
> can't do that.
>
> dr_carriers
> carrier1,'carrier1GW1=50,carrier1GW2=50'
> carrier2,'carrier2GW1=50,carrier2GW2=50'
>
> dr_rules
> prefix=216555,pri=20,gwlist=#carrier1
> prefix=216555,pri=10,gwlist=#carrier2
>
> So as it stands the call goes (carrier1GW1 -> carrier2GW1) I would 
> like it to go (carrier1GW1 -> carrier1GW2 -> carrier2GW1 -> carrier2GW2)
>
> I call do_routing() with WF and F but the behavior is the same.
>
> Any thoughts on what I am doing wrong would be great!
>
> Thanks!!
>




More information about the Users mailing list