ADTRAN AOS Version R10.1.0 Command Reference Manual page 3348

Adtran operating system (aos)
Table of Contents

Advertisement

Command Reference Guide
modify body
Use the modify body command to use Session Initiation Protocol (SIP) header manipulation rules (HMR)
to modify the body of a SIP message. This command is entered from the HMR Message Rule Set
Configuration mode. Use the no form of this command to remove the rule from the message rule set.
Variations of this command include:
modify body match-value <pattern> new-value <pattern>
modify body match-value <pattern> new-value <pattern> <sequence number>
modify body new-value <pattern>
modify body new-value <pattern> <sequence number>
Syntax Description
match-value <pattern>
new-value <pattern>
<sequence number>
Default Values
By default, no message body manipulation rules are configured.
Command History
Release R10.1.0
Functional Notes
If the match pattern is provided, the content of the message is only modified if the message contains the
specified match pattern. If no match pattern is specified, the message body is modified unconditionally.
When the SIP message body is modified, SIP HMR automatically adjusts the Content-Length header of
the message to match the length of the new value.
Usage Examples
The following example specifies that body of a SIP message is modified when it matches the variable
PATTERN1:
(config-rule-set-SET1)#message-rule RULE1 message-type any 5
(config-msg-rule-RULE1)#modify body new-value PATTERN1
60000CRG0-35E
Optional. Specifies the pattern to be used for matching. This can be a
regular expression or a text string, and can reference variable names.
Specifies the value to be assigned to the SIP message body. This can be a
regular expression or a text string. Text strings must be enclosed in
quotation marks.
Optional. Specifies the sequence number given to the message rule, which
determines the order in which the rules are processed. Valid sequence
number range is 1 to 99999. By default, sequence numbering occurs in
increments of 10, and all rules are processed in sequence.
Command was introduced.
Copyright © 2012 ADTRAN, Inc.
SIP HMR Command Set
3348

Advertisement

Table of Contents
loading

Related Products for ADTRAN AOS Version R10.1.0

This manual is also suitable for:

Aos r10.1.0

Table of Contents