$eval and $e
Evaluate a Matching Pattern.
Syntax:
$eval( pattern ) $e( pattern )
Parameters:
pattern – Matching Pattern.
Returns:
true – if the specified Matching Pattern is fulfilled.
false – otherwise
Version Since:
3.1
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$eval(“From = sip:bod@”) = true
If a From URI has sip:bob@