<div dir="ltr"><div>We use something like this:<br><br>        if ((uri =~ "^sip:90[0-9]{6}@.*") && (!avp_check("$avp(s:perms)","re/9/g"))) {<br>                xlog("$ru : No permissions to call 90X numbers ($ci)");<br>
                sl_send_reply("403", "No permissions to call 90XXXXXX");<br>                exit;<br>        }<br><br></div>and then store the information in usr_prefences table.<br><div><div><br></div>
<div>/Morten<br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 3, 2013 at 12:14 PM, Keith <span dir="ltr"><<a href="mailto:keith@hubner.co.uk" target="_blank">keith@hubner.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am looking to restrict calls based on destination numbers, e.g. so people can't call premium rate etc. Which module is best to achieve this?</div>
<div><br></div><div>Thanks,</div>
<div>Keith</div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Morten Isaksen<br>
</div>