Hello,
I have a problem with my emergency calls
if (uri=~"^sip:1[578]{1}@*" || uri=~"^sip:11[29]{1}@*")
if I call 170725014, it think that it is 17 (emergency in france)
is my "if" syntaxe is correct ?
Cordialement
BERGANZ François
http://www.acropolistelecom.net http://www.acropolistelecom.net/
On Thursday 25 September 2008, BERGANZ François wrote:
I have a problem with my emergency calls if (uri=~"^sip:1[578]{1}@*" || uri=~"^sip:11[29]{1}@*") 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]$$")
Ok thank you
Cordialement
BERGANZ François http://www.acropolistelecom.net
-----Message d'origine----- De : users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] De la part de Alex Hermann Envoyé : jeudi 25 septembre 2008 16:36 À : users@lists.kamailio.org Objet : Re: [Kamailio-Users] problem with emergency calls (short-numbers)
On Thursday 25 September 2008, Alex Hermann wrote:
if ($rU =~ "^1[578]$$" || $ru =~ "^11[29]$$")
$rU