We use something like this:

        if ((uri =~ "^sip:90[0-9]{6}@.*") && (!avp_check("$avp(s:perms)","re/9/g"))) {
                xlog("$ru : No permissions to call 90X numbers ($ci)");
                sl_send_reply("403", "No permissions to call 90XXXXXX");
                exit;
        }

and then store the information in usr_prefences table.

/Morten



On Thu, Oct 3, 2013 at 12:14 PM, Keith <keith@hubner.co.uk> wrote:
Hi,

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?

Thanks,
Keith

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




--
Morten Isaksen