sip-manipulation > header-rules

The header-rules subelement is used to define one action to perform on a given SIP header.

Parameters

name
Enter the name of the header to which this rule applies. This name must match a header name.
action
Select the action you want applied to the header specified in the name parameter.
  • Default: none
  • Values:
    • add—Add a new header, if that header does not already exist
    • delete—Delete the header, if it exists
    • manipulate—Manipulate this header according to the element rules configured
    • store—Store this header
    • none—Take no action
match-value
Enter the exact value to be matched. The action you specify is only performed if the header value matches.
msg-type
Select the message type to which this header rule applies
  • Default: any
  • Values:
    • any—Both Requests and Reply messages
    • request—Request messages only
    • reply— Reply messages only
methods
Enter a list of SIP methods that this header rule applies to. An empty value applies this header rule to all SIP method messages.
  • Default: none
element-rules
Access the element rules sub-subelement
header-name
Enter the header name for which the rules need to be applied
comparison-type
Select the comparison type that the match-value uses
  • Default: case-sensitive
  • Values:
    • case-sensitive
    • case-insensitive
    • pattern-rule
    • refer-case-sensitive
    • refer-case-insensitive
    • boolean
new-value
The new value to be used in add or manipulate actions. To clear the new-value enter an empty string.

Path

header-rules is a subelement under the sip-manipulation configuration element, under the session-router path. The full path from the topmost ACLI prompt is: configure terminal , and then session-router , and then sip-manipulation , and then header-rules.