SIP User's Manual 830 Document #: LTRT-83310
Mediant 600 & Mediant 1000
C.9 Syntax
Rules table:
Man Set ID Message
Type
Condition Action Element Action Type Action
Value
Row
Rule
ID <message-
type>
<match-
condition>
<message-
element>
<action-type> <value> ID
1. message-type:
Description: Rule is applied only if this is the message's type
Syntax: <method>.<message-role>
Examples:
• invite.request
• invite.response.200
• subscribe.response.2xx
a. method:
Description: Rule is applied only if this is the message's method
Syntax: token / any
Examples:
♦ Invite, subscribe rule applies only to INVITE messages
♦ Unknown unknown methods are also allowed
♦ Any no limitation on the method type
b. message-role
Description: Rule is applied only if this is the message's role
Syntax: request / response.response-code / any
Examples:
♦ Request rule applies only on requests
♦ Response.200 rule applies only on 200 OK messages
♦ Any no limitations on the type of the message
c. response-code
Description: Response code of the message
Syntax: 1xx / 2xx / 3xx / 4xx / 5xx / 6xx / 3digit / any
Examples:
♦ 3xx any redirection response
♦ 200 only 200 OK response
♦ Any any response
2. match-condition:
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'