[Users] Re: block calls

Carlos Ribas caduribas at gmail.com
Thu Apr 19 17:36:11 CEST 2007


My problem is with this "if (uri=~"^sip:[1-9]*@.*") {".
If i put "sip:[0-9]" its OK, but with "sip:[1-9]" it doesn`t work.
Does anybody know why?
thanks.


2007/4/19, Carlos Ribas <caduribas at gmail.com>:
>
> I need to block calls that they start with number 0.
> i did this, but it`s not OK:
> if (uri=~"^sip:[1-9]*@.*") {
>    rewritehost("10.0.0.10");
>    log("access ok");
>    route(1);
>    break;
> };
>
> if (uri=~"^sip:0[1-9]*@.*") {
>    log("access deny");
>    break;
> };
>
> How can i do this?
>



-- 
--------------------------------
Carlos Eduardo Ribas
Fone: 9986-4892
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070419/5601e299/attachment.htm 


More information about the Users mailing list