<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Indeed, the function check_address() takes the groupid as one of its arguments<br>In opensips script you can write a condition to use specific group in specific case.<br><br>http://www.opensips.org/html/docs/modules/1.6.x/permissions.html#id293674 <br><br>//Binan.<br><h3 class="title">
                <code class="function"><br></code></h3><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div id="yiv2102489317"><div><br><div class="yiv2102489317gmail_quote">On Fri, Aug 24, 2012 at 10:43 AM, Ali Pey <span dir="ltr"><<a rel="nofollow" ymailto="mailto:alipey@gmail.com" target="_blank" href="/mc/compose?to=alipey@gmail.com">alipey@gmail.com</a>></span> wrote:<br><blockquote class="yiv2102489317gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The permissions module returns the first match, so depends on which group is first in your database, that will be selected. So basically you need to make sure there is no overlap. <div><br></div><div>Regards,</div><div>Ali Pey<br>
<div><br><div class="yiv2102489317gmail_quote"><div><div class="yiv2102489317h5">On Fri, Aug 24, 2012 at 10:31 AM, Brett Nemeroff <span dir="ltr"><<a rel="nofollow" ymailto="mailto:brett@nemeroff.com" target="_blank" href="/mc/compose?to=brett@nemeroff.com">brett@nemeroff.com</a>></span> wrote:<br>
</div></div><blockquote class="yiv2102489317gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="yiv2102489317h5">
Hello All,<div>I was wondering if anyone knew how gracefully overlapping address ranges works in the permissions module (using the address table).</div><div><br></div><div>An example of an overlapping address range would be something like:</div>
<div><a rel="nofollow" target="_blank" href="http://192.168.1.5/32">192.168.1.5/32</a> - Group 1</div><div><a rel="nofollow" target="_blank" href="http://192.168.1.0/24">192.168.1.0/24</a> - Group 2</div><div><br></div></div></div></blockquote></div>
</div></div></blockquote></div></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></td></tr></table>