Brekeke SIP Server Wiki

$or

OR-operator.
Return “true” if any one of the conditions are met.

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

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

 

Returns:

true – if any one of the conditions are met.
false – otherwise

 

Version Since:

2.3

 

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

 

Example:
$or($registered(From),”From=sip:alice@” ) = true

If the From’s SIP-URI is registered or it shows sip:alice@.

$or(“$transport=TCP”,”$addrtype=6”) = true

If a SIP packet came from over TCP or IPv6.

 

See Also:

$and
$if 

Yes No
Suggest Edit