[Serusers] Implementing a black list.

Robert Zorop rzorop at gmail.com
Mon Jul 10 20:49:05 CEST 2006


Hi, thanks for the response. The problem i have is a lot of this
destinations to block. Does someone knows a scalable method to do it? . I
think that writing a hundred of this entry should be slow at lookup time?..


2006/7/10, CM0002 at aol.com <CM0002 at aol.com>:
>
>  try this:
>
>         # block expensive area codes
>         if (uri=~"^sip:00355[0-9].*@.*" |
>         uri=~"^sip:00358830[0-9].*@.*" |
>         uri=~"^sip:001670.*@.*" |
>         uri=~"^sip:001671.*@.*" |
>         uri=~"^sip:00247[0-9].*@.*"
>                ) {
>                        sl_send_reply("409", "Country not in plan");
>                        break;
>                 };
>
> regards Christian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060710/0d91c4c8/attachment.htm>


More information about the sr-users mailing list