<div dir="ltr">Hello Everyone,<div><br></div><div style>Currently we are using do_routing to route our calls based on group id&#39;s. Now we would</div><div style>like to offer some different routes to every group based on prefixes. Essentially it would be something like</div><div style><br></div><div style>do_routing(2,L)<br></div><div style><br></div><div style><div>INSERT INTO dr_rules (groupid, prefix, timerec, priority, routeid, gwlist, attrs, description) VALUES (&#39;2&#39;,&#39;00111&#39;,&#39;&#39;,1,&#39;0&#39;,&#39;1&#39;,&#39;yes&#39;,&#39;Standard Wholesale Route&#39;);</div><div>INSERT INTO dr_rules (groupid, prefix, timerec, priority, routeid, gwlist, attrs, description) VALUES (&#39;2&#39;,&#39;00112&#39;,&#39;&#39;,1,&#39;0&#39;,&#39;2&#39;,&#39;yes&#39;,&#39;Premium Wholesale Route&#39;);</div><div><br></div><div style>In essence, a group can be routed to many gateways based on prefix sent in initial invite.</div><div style><br></div><div style>Reading the documentation:</div><div style><br></div><div style><span class="" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:medium"><em>L</em></span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:medium"> </span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:medium">- Do strict length matching over the prefix - actually DR engine will do full number matching and not prefix matching anymore.</span></div><div style><font color="#000000" face="Helvetica, Arial" size="3"><br></font></div><div style><font color="#000000" face="Helvetica, Arial" size="3">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.</font></div><div style><font color="#000000" face="Helvetica, Arial" size="3"><br></font></div><div style><font color="#000000" face="Helvetica, Arial" size="3">Nick.<br></font><div><font color="#000000" face="Helvetica, Arial" size="3"><br></font></div></div><div><br></div></div></div>