Brekeke SIP Server Wiki

$and

AND-operator.
Return “true” if all of the conditions are met.

Syntax:
$and( value1, value2, [value3] )
$and( pattern1, pattern2, [pattern3] )

 

Parameters:

value – Must indicates “true” or “false”
pattern – Matching Pattern.

 

Returns:

true – if all of the conditions are met.
false – otherwise

 

Version Since:

2.3

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$and(“$transport=TCP”,”$addr=192.168.1.10$”) = true
If a SIP packet came from 192.168.1.10 over TCP.

 

See Also:

$if 
$or

Yes No
Suggest Edit