[Serusers] ser.cfg Operators and Operands
Miklos Tirpak
miklos at iptel.org
Fri Jun 9 12:44:44 CEST 2006
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
>
>
>
More information about the sr-users
mailing list