Hi All,
I am using ser
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@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
*******************************************
case 2:
test sip client register
number is 11
Sip uri is 11@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
case 3:
test sip client register
number is ab
Sip uri is ab@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
*******************************************
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