Related Documentation
- Manipulation of Headers and Request URIs in SIP Messages in Session Border Control Solutions Guide Using BGF and IMSG
- Configuring Message Manipulation Rules in Session Border Control Solutions Guide Using BGF and IMSG
sip-header
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Configure the values of the header fields that you want to manipulate in SIP messages. You can have up to five of each of the field value definitions in each SIP header configuration. For example, up to five modify-regular-expression field values or up to five add-missing field values.
Options
header-field-name—Name of the header field in SIP headers for which you want to define field values.
add field-value—Adds an instance of the header field with the field value that you define. If the header field already exists, the software creates a new instance of the header field and inserts it before any existing instance of the header field. Having more than one field value is not allowed for some header fields.
add-missing field-value—Adds a new header field with the field value that you define if the header field is missing from the SIP header.
add-overwrite field-value—Adds a new header field with the field value that you define if the header field is missing from the SIP header. If the header field already exists, its field value is overwritten with the new field value. The software overwrites the field value in all instances of the header field.
modify-regular-expression—Changes the value of a regular expression.
Syntax: modify-regular-expression regular-expression with field-value
—Enter the regular expression that you want to modify followed by the value with which you want to replace the regular expression. In the following example, regular expression 1800 is replaced with 555:
remove-all—Removes all instances of the header field.
remove-regular-expression regular-expression—Removes all of the header fields that have field values that match this regular expression.
reject-regular-expression regular-expression—Rejects SIP messages and terminates the usage that the message is part of if the header field contains the regular expression.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Related Documentation
- Manipulation of Headers and Request URIs in SIP Messages in Session Border Control Solutions Guide Using BGF and IMSG
- Configuring Message Manipulation Rules in Session Border Control Solutions Guide Using BGF and IMSG
Published: 2012-11-27
Related Documentation
- Manipulation of Headers and Request URIs in SIP Messages in Session Border Control Solutions Guide Using BGF and IMSG
- Configuring Message Manipulation Rules in Session Border Control Solutions Guide Using BGF and IMSG