Version 6.4 795 March 2012
SIP User's Manual C. SIP Message Manipulation Syntax
Below are header manipulation examples:
Example 1 Rule:
Add a new History-Info header to the message:
MessageManipulations 0 = 1, any, , header.History-
Info, 0, '<sip:UserA@audc.mydomain.com;index=3>', 0
Result:
History-Info:sip:UserA@ims.example.com;index=1
History-Info:sip:UserA@audc.example.com;index=2
History-Info: <sip:UserA@audc.mydomain.com;index=3>
Example 2 Rule:
Delete an unwanted History-Info header from the message:
MessageManipulations 0 = 1, any, , header.History-
Result:
History-Info: <sip:UserA@ims.example.com;index=1>
Example 3 Rule:
Delete all History-Info from the message:
MessageManipulations 0 = 1, any, , header.History-
Result:
All history-info headers are removed.
C.2.11 Min-Se and Min-Expires
An example of the header is shown below:
Min-SE: 3600
Min-Expires: 60
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
Param Param Read/Write
Time Integer Read/Write
Below are header manipulation examples:
Example 1 Rule:
Add a Min-Se header to the message using a value of 50:
MessageManipulations 1 = 1, any, , header.min-se, 0,
Result:
Min-SE: 50
Example 2 Rule:
Modify a Min-Expires header with the min-expires value and add an
additional 0:
MessageManipulations 0 = 1, Invite, , header.Min-
Expires.param, 2, header.Min-Expires.time + '0', 0;
Result:
Min-Expires: 340;3400
Example 3 Rule:
Modify a Min-Expires header changing the time to 700:
MessageManipulations 0 = 1, Invite, , header.Min-
Expires.time, 2, '700', 0;
Result:
Min-Expires: 700