[OpenSIPS-Users] Managing different route classes (Standard, Premium, Direct)

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 9 11:39:37 CET 2013


Hello Nick,

Using the actual prefix as groupid may not scale (depends on what kind 
of groups you plan to use).

You can do something like:
     prefix(1001011) ->  dr group N (like 10)  - do this via dialplan

In this way you can set more prefixes for the same group also.

Regards,

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

On 07.12.2013 01:07, Nick Cameo wrote:
> Thanks Bogdan,
>
> Correct me if I am wrong, you are suggesting something like:
>
> Standard: 1001011
> Premium: 1001012
> Direct: 1001013
>
> $var(prefix) = $tU.substr,0,7
>       do_routing($var(prefix));
>
>
> +--------+---------+--------+---------+----------+---------+--------+-------+----------------------------------------+
> | ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
> attrs | description                 |
> +--------+-----------------+--------+---------+----------+---------+--------+-------+---------------------------------+
> | 321408 | 1001011 | 91     |         |        1 | 0       | 1,2
>    | yes  | Standard India Route    |
> +--------+----------------+--------+---------+----------+---------+--------+-------+----------------------------------+
> | 321409 | 1001012 | 91     |         |        1 | 0       | 4,5
>    | yes | Premium India Route    |
> +--------+---------------+--------+---------+----------+---------+--------+-------+-----------------------------------+
> | 321410 | 1001013  | 91     |         |        1 | 0       | 6,7    |
> yes   | Direct India Route        |
> +--------+---------+--------+---------+----------+---------+----+---------+----------------------------------------------+
>
> Makes sense. Just a few issues:
>
> * There will be only one massive dr_rules table for everything (ie,
> standard,premium,
> and direct prefixes destined to multiple gateways
> * Only one dr_gateways table for the three types of routes. Again,
> offered by multiple
> carriers, failover etc...
>
> Did I misunderstand something. And how manageable,scalable,performance
> would this approach be?
>
> Nice to hear from you again Bogdan,
>
> Nick.




More information about the Users mailing list