message-manipulations
This command configures the Message Manipulations table, which lets you define SIP Message Manipulation rules.
Syntax
(config-voip)# message message-manipulations <Index> (message-manipulations-<Index>)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
action-subject |
Defines the SIP header upon which the manipulation is performed. |
action-type {add|add-prefix|add-suffix|modify|normalize|remove|remove-prefix|remove-suffix} |
Defines the type of manipulation. |
action-value |
Defines a value that you want to use in the manipulation. |
condition |
Defines the condition that must exist for the rule to be applied. |
manipulation-name |
Defines a descriptive name, which is used when associating the row in other tables. |
manipulation-set-id |
Defines a Manipulation Set ID for the rule. |
message-type |
Defines the SIP message type that you want to manipulate. |
row-role |
Determines which message manipulation condition (configured by the 'Condition' parameter) to use for the rule. |
Command Mode
Privileged User
Example
This example adds ";urgent=1" to the To header if the URL of the Request-URI in the INVITE message equals "120":
(config-voip)# message message-manipulations 0 (message-manipulations-0)# message-type invite.request (message-manipulations-0)# condition header.request.uri.url=='120' (message-manipulations-0)# action-subject header.to (message-manipulations-0)# action-type modify (message-manipulations-0)# action-value header.to +';urgent=1' (message-manipulations-0)# activate