message-manipulations
This command configures the Message Manipulations table, which lets you define SIP message manipulation rules. The table is a child of the Message Manipulation Sets table (see msg-man-set).
Syntax
(config-voip)# message msg-man-set <Index> (msg-man-set-<Index>)# message-manipulations <Index>
(message-manipulations-<Index>/<Index>)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
action-subject |
Defines the SIP subject (e.g., header) upon which the manipulation is done. |
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 for the message manipulation rule. |
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 |
Defines which message manipulation condition (configured by the 'Condition' parameter) to use for the rule. |
Command Mode
Privileged User
Related Commands
msg-man-set (parent table)
Example
This example configures a Message Manipulation Set called "MyMM" and configures a manipulation rule that adds ";urgent=1" to the To header if the URL of the Request-URI in the INVITE message is "120":
(config-voip)# message msg-man-set 0 (msg-man-set-0)# name MyMM
(msg-man-set-0)# message-manipulations 1
(message-manipulations-0/1)# message-type invite.request (message-manipulations-0/1)# condition header.request.uri.url=='120' (message-manipulations-0/1)# action-subject header.to (message-manipulations-0/1)# action-type modify (message-manipulations-0/1)# action-value header.to +';urgent=1' (message-manipulations-0/1)# activate