[OpenSIPS-Users] priority differences between carrierroute and drouting

Gabriel Bermudez elgabo81 at gmail.com
Tue Feb 2 16:04:42 CET 2010


Seems that a weighted load balancing is not directly posible with
drouting (http://lists.opensips.org/pipermail/users/2009-September/008106.html),
but you can trick the system to behave like this. It would be great if
the module could also support this feature natively, maybe by handling
a special format on the gwlist colum (GW1=0.4,GW2=0.2,GW3=0.4)

I was interested on use drouting, because it can be managed with
opensips control panel.  Is the carrierroute module on plans?

2010/2/1 Gabriel Bermudez <elgabo81 at gmail.com>
>
> Hi everybody,
>
> I've read the documentation on carrierroute and drouting, about the algorithm used to select a gateway.  I understand that on carrierroute the gateway selected depends on the prefix dialed and the value of the prob field.  For example for prefix 49, gateway x.x.x.x with prob=0.2 and gateway y.y.y.y with prob=0.8 can exists in the carrierroute table.
>
> +----+---------+-----------+-----------------+-------+--------+-------------------+
> | id | carrier | domain | scan_prefix | flags | prob | rewrite_host  |
> +----+---------+-----------+-----------------+-------+--------+-------------------+
> | 1  |       1 |      0      | 49              |     0 |  0.2   | x.x.x.x         |
> | 2  |       1 |      0      | 49              |     0 |  0.8   | y.y.y.y         |
> +----+---------+-----------+-----------------+-------+--------+-------------------+
>
> I understand that this means 20% of the calls will be sent to x.x.x.x and 80% to y.y.y.y
> Is this the same for drouting, or only the highest priority rule is selected?
>
> Thanks for your answers
>
> Regards,



More information about the Users mailing list