[Serusers] Verify sip number in ser.cfg failed...

jimmy jimmy_huang at uni.com.tw
Fri Feb 17 12:00:35 CET 2006


Hi All,

 

I am using ser 0.9.6, and refer the doc
(http://www.iptel.org/ser/doc/seruser/seruser.html#CONDITIONS)

and I want to use number 11 to 19 for pstn number, but in the first step to
verify the pstn number failed.

 

 

my code in ser.cfg,

 

*******************************************

case 1:

test sip client register number is 11

Sip uri is 11 at 192.168.5.1

 

if(uri=~"^sip:1[1-9]@"){

           log(1,"LOG: number is 11-19\n")

}else{

           log(1,"LOG: NOT 11-19\n")

}

Result is "NOT 11-19"

*******************************************

case 2:

test sip client register number is 11

Sip uri is 11 at 192.168.5.1

 

if(uri=~"^sip:1[1-9]"){

           log(1,"LOG: number is 11-19\n")

}else{

           log(1,"LOG: NOT 11-19\n")

}

Result is "number is 11-19"

case 3:

test sip client register number is ab

Sip uri is ab at 192.168.5.1

 

if(uri=~"^sip:1[1-9]"){

           log(1,"LOG: number is 11-19\n")

}else{

           log(1,"LOG: NOT 11-19\n")

}

Result is "number is 11-19"

*******************************************

 

Seems the character @ cause the incorrect result .?

Did anyone experience this problem before? 

Or there is something wrong in my ser.cfg ?

Please tell me what should I do to configure it properly?

 

Thanks,

 

Jimmy

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060217/e166549d/attachment.htm>


More information about the sr-users mailing list