My problem is with this "if (uri=~"^sip:[EMAIL PROTECTED]") {".
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 <[EMAIL PROTECTED]>:

I need to block calls that they start with number 0.
i did this, but it`s not OK:
if (uri=~"^sip:[EMAIL PROTECTED]") {
   rewritehost("10.0.0.10");
   log("access ok");
   route(1);
   break;
};

if (uri=~"^sip:[EMAIL PROTECTED]") {
   log("access deny");
   break;
};

How can i do this?




--
--------------------------------
Carlos Eduardo Ribas
Fone: 9986-4892
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to