SIP User's Manual 800 Document #: LTRT-83310
Mediant 600 & Mediant 1000
Below are header manipulation examples:
Example 1 Rule:
Add a Proxy-Require header to the message:
MessageManipulations 1 = 1, any, , header.Proxy-
Require, 0, 'sec-agree', 0;
Result:
Proxy-Require: sec-agree
Example 2 Rule:
Modify the Proxy-Require header to itsp.com:
MessageManipulations 2 = 1, any, , header.Proxy-
Require, 2, 'itsp.com' , 0;
Result:
Proxy-Require: itsp.com
Example 3 Rule:
Set the privacy options tag in the Proxy-Require header:
MessageManipulations 0 = 0, invite, , header. Proxy-
Require.privacy, 0, 1 , 0;
Result:
Proxy-Require: itsp.com, privacy
C.2.19 Reason
An example of the header is shown below:
Reason: SIP ;cause=200 ;text="Call completed elsewhere"
The header properties are shown in the table below:
Header Level Action Add Delete Modify List Entries
Operations Supported Yes Yes Yes N/A
Keyword Sub Types Attributes
MLPP MLPP Structure (see
'MLPP' on page 813)
Read/Write
Reason Reason Structure (see
'Reason Structure' on
page 814)
Read/Write
Below are header manipulation examples:
Example 1 Rule:
Add a Reason header:
MessageManipulations 0 = 1, any, ,header.reason, 0,
'SIP;cause=200;text="Call completed elsewhere"', 0;
Result:
Reason: SIP ;cause=200 ;text="Call completed elsewhere"
Example 2 Rule:
Modify the reason cause number:
MessageManipulations 0 = 1, any,
,header.reason.reason.cause, 0, '200', 0;
Result:
Reason: Q.850 ;cause=180 ;text="Call completed
Example 3 Rule:
Modify the cause number:
MessageManipulations 0 = 1, any,
,header.reason.reason.reason, 0, '483', 0;