[SR-Users] Destination number restriction

Morten Isaksen misak at misak.dk
Thu Oct 3 14:40:36 CEST 2013


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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Morten Isaksen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131003/319d28bb/attachment-0001.html>


More information about the sr-users mailing list