Version 6.6 457 MP-11x & MP-124
User's Manual 42. SIP Message Manipulation Syntax
♦ 200 only 200 OK response
♦ Any any response
42.12.2 Condition
The Condition (match-condition) syntax is described below:
Description: Matching criteria for the rule
Syntax: (message-element / param) SWS match-type [SWS value] * [ SWS logical-
expression SWS match-condition ]
Examples:
• header.from.user == '100'
• header.contact.header-param.expires > '3600'
• header.to.host contains 'itsp'
• param.call.dst.user != '100'
• header.john exists
• header.john exists AND header.to.host !contains 'john'
• header.from.user == '100' OR header.from.user == '102' OR header.from.user ==
'300'
<match-type>:
• Description: Comparison to be made
• Syntax:
♦ == equals
♦ != not equals
♦ > greater than
♦ < less than
♦ >= greater than or equal to
♦ <= less than or equal to
♦ contains does a string contain a value (relevant only to string fields)
♦ exists does a certain header exists
♦ !exists does a certain header not exists
♦ !contains does a string exclude a value. Relevant only to string fields
♦ len> is the string length greater than
♦ len< is the string length less than
♦ len== is the string length equal to
♦ regex regex expression
logical-expression:
• Description: Condition for the logical expression
• Syntax:
♦ AND logical And
♦ OR logical Or
Note: "A AND B OR C" is calculated as A AND (B OR C).