On Thursday 25 September 2008, BERGANZ François wrote: > I have a problem with my emergency calls > if (uri=~"^sip:[EMAIL PROTECTED]" || uri=~"^sip:[EMAIL PROTECTED]") > if I call 170725014, it think that it is 17 (emergency in france) > > is my "if" syntaxe is correct ?
The if is correct, the regexp isn't: you try to match zero or more @'s Try: if ($rU =~ "^1[578]$$" || $ru =~ "^11[29]$$") -- Greetings, Alex Hermann _______________________________________________ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users