[OpenSIPS-Users] Group and Prefix Based Dynamic Routing

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Feb 9 10:17:05 CET 2015


Hi Nick,

If you want to do "prefix" based routing, you should not use the "L" 
flag - this flag says that the whole number you have in RURI must match 
the "prefix" in DB.

Regards,

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

On 08.02.2015 03:58, symack wrote:
> Hello Everyone,
>
> Currently we are using do_routing to route our calls based on group 
> id's. Now we would
> like to offer some different routes to every group based on prefixes. 
> Essentially it would be something like
>
> do_routing(2,L)
>
> INSERT INTO dr_rules (groupid, prefix, timerec, priority, routeid, 
> gwlist, attrs, description) VALUES 
> ('2','00111','',1,'0','1','yes','Standard Wholesale Route');
> INSERT INTO dr_rules (groupid, prefix, timerec, priority, routeid, 
> gwlist, attrs, description) VALUES 
> ('2','00112','',1,'0','2','yes','Premium Wholesale Route');
>
> In essence, a group can be routed to many gateways based on prefix 
> sent in initial invite.
>
> Reading the documentation:
>
> /L/- Do strict length matching over the prefix - actually DR engine 
> will do full number matching and not prefix matching anymore.
>
> Will I not be able to route the call based on the prefix alone? I do 
> not know the full number, unless we use regex which is the job of 
> dialplan and not dr_rules.
>
> Nick.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150209/5a80ce35/attachment.htm>


More information about the Users mailing list