Iņaki,<br><br>Maybe you can try with 2 masks that are not 32.<br>example:<br><br>Entry 1:<br>
- grp   = 1<br>
- ip_addr =  9.9.9.128<br>
- mask   =  25<br>
<br>
Entry 2:<br>
- grp   = 2<br>
- ip_addr =  9.9.9.0<br>
- mask   =  24<br><br>And then verify if the order or id matters. But as per Juha&#39;s comment, the result can be unpredictable.<br>Maybe we an develop an exported function that can take into account the mask to get the most exact entry.<br>
<br>Cheers,<br>Uriel<br><br><div class="gmail_quote">On Wed, Apr 28, 2010 at 2:13 PM, Juha Heinanen <span dir="ltr">&lt;<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Iņaki Baz Castillo writes:<br>
<br>
 &gt; However after checking the module code it seems that there are just<br>
 &gt; two cases:<br>
 &gt; - IP addresses (mask = 32).<br>
 &gt; - Subnets (mask != 32).<br>
 &gt;<br>
 &gt; So first the source address is always matched against he address hash,<br>
 &gt; and if it doesn&#39;t match then it is matched against the subnet hash,<br>
 &gt; but in this last case it is not taken into account any kind of<br>
 &gt; priority based on mask value, am I right?<br>
<br>
</div>yes, if address does not match exactly, the any address/mask that<br>
matches results in success.<br>
<font color="#888888"><br>
-- juha<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br>