<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Mickael,<br>
<br>
I guess your overlapping happens because the prefixes are not
consistent as format. The 3669 is a France national number and
36xxx is international format.<br>
<br>
If you want to put those numbers in the same routing group, you
should consider having all in the same international format, to
avoid collisions :<br>
+33 3669<br>
+36 xxxx<br>
<br>
Regards,</tt><br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 03/05/2013 11:25 AM, Mickael HUBERT wrote:
<blockquote cite="mid:5135BA0D.8000204@winlux.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi list,<br>
I have a issue in my drouting module.<br>
<br>
In fact I have many prefixes and overlap is not OK to me.<br>
<br>
<u>Example:</u><br>
<br>
Prefix: 3669 (In France is premium rate number, 4 digits is
talking clock service)<br>
<br>
Prefix: 36.... (is prefix hungary)<br>
<br>
In my dr_rule table is:<br>
<br>
<i>INSERT INTO `dr_rules` (`ruleid`, `groupid`, `prefix`,
`timerec`, `priority`, `routeid`, `gwlist`, `attrs`,
`description`) VALUES</i><i><br>
</i><i>(1, '1', '3', '', 1, '', '#1', NULL, 'All numbers 3XYZ'),</i><i><br>
</i><i>(2, '1', '36', '', 1, '', '#2', NULL, 'Hungary prefixe');</i><br>
<br>
If +36 1 398 0344 (to hungary destination), Drouting module choose
id 2 no ?<br>
if 3669 (to clock service), drouting module choose id 2 too ?<br>
<br>
<span id="result_box" class="short_text" lang="en"><span
class="hps">how to differentiate</span> <span class="hps">this
two</span> <span class="hps">prefixes?</span></span><br>
<br>
thanks in advance<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>