Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

sip-header

Syntax

sip-header header-field-name {field-value {add field-value;add-missing field-value;add-overwrite field-value;modify-regular-expression regular-expression with field-value;reject-regular-expression regular-expression;remove-all;remove-regular-expression regular-expression;}}

Hierarchy Level

[edit services border-signaling-gateway gateway gateway-name sip message-manipulation-rules manipulation-rule rule-name actions]

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:

modify-regular-expression 1800 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

 

Published: 2012-11-27

Supported Platforms

 

Related Documentation

 

Published: 2012-11-27