sip-manipulation > header-rules > element-rules

The element-rules sub-subelement is used to define a list of actions to perform on a given SIP header.

Parameters

name
Enter the name of the element to which this rule applies. The name parameter does not apply for the following element types: header-value, uri-user, uri-host, uri-port, uri-header. You still need to enter a dummy value here for tracking purposes.
type
Select the type of element on which to perform the action
  • Default: none
  • Values:
    • header-value—Full value of the header
    • header-param-name—Header parameter name
    • header-param—Parameter portion of the header
    • uri-display—Display of the SIP URI
    • uri-user—User portion of the SIP URI
    • uri-host—Host portion of the SIP URI
    • uri-port—Port number portion of the SIP URI
    • uri-param-name—Name of the SIP URI param
    • uri-param—Parameter included in the SIP URI
    • uri-header-name—SIP URI header name
    • uri-header—Header included in a request constructed from the URI
    • uri-user-param—User parameter of the SIP URI
    • status-code—Status code of the SIP URI
    • reason-phrase—Reason phrase of the SIP URI
    • uri-user-only—URI username without the URI user parameters
    • uri-phone-number-only—User part of the SIP/TEL URI without the user parameters when the user qualifies for specific BNF
action
Select the action to take to the element specified in the name parameter, if there is a match value
  • Default: none
  • Values:
    • none—No action taken
    • add—Add a new element, if it does not already exist
    • replace—Replace the elements
    • delete-element—Delete the specified element, if it exists
    • delete-header—Delete the specified header, if it exists
    • store—Store the elements
match-val-type
Select the type of value that needs to be matched for the action to be performed
  • Default: ANY
  • Values:
    • FQDN—FQDN value
    • ANY— Both IP or FQDN values
match-value
Enter the value to match against the element value for a manipulation action to be performed
new-value
Enter the explicit value for a new element or replacement value for an existing element. You can enter an expression that includes a combination of absolute values, pre-defined parameters, and operators.
  • Use double quotes around string values
  • Pre-defined parameters always start with a $. Valid pre-defined parameters are:
    • $ORIGINAL—Original value of the element is used.
    • $LOCAL_IP—Local IP address is used when you receive an inbound address.
    • $REMOTE_IP—Remote IP address is used.
    • $REMOTE_VIA_HOST—Remote VIA host part is used.
    • $TRUNK_GROUP—Trunk group is used.
    • $TRUNK_GROUP_CONTEXT—Trunk group context is used.
  • Operators are:
parameter-name
Enter the element parameter name for which the rules need to be applied
comparison-type
Select the type of comparison to be used for the match-value
  • Default: case-sensitive
  • Values: case-sensitive | case-insensitive | pattern-rule

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

Path

element-rules is a sub-subelement under the header-rules subelement under the sip-manipulation configuration element, under the session-router path.