Hi All!
What is the correct operand in a condtional statement for negation? I have a problem in a ser.cfg line:
if (uri=~"sip:0[1-9][0-9]*@.*" && uri!="sip:01234[6-9][0-9]@.*")
The SER doesn't take in consideration the 2nd part of the conditional statement after the && operand. What is wrong in this line?
Thanks!
Szasz Szabolcs
a!=b means !(a==b) try !(a=~b) to negate regex comparison
Miklos
Szabolcs Szasz wrote:
Hi All!
What is the correct operand in a condtional statement for negation? I have a problem in a ser.cfg line:
if (uri=~"sip:0[1-9][0-9]*@.*" && uri!="sip:01234[6-9][0-9]@.*")
The SER doesn't take in consideration the 2nd part of the conditional statement after the && operand. What is wrong in this line?
Thanks!
Szasz Szabolcs