Version 6.4 803 March 2012
SIP User's Manual C. SIP Message Manipulation Syntax
Below are header manipulation examples:
Example 1 Rule:
Add a Remote-Party-Id header to the message:
MessageManipulations 0 = 1, invite, ,header.REMOTE-
PARTY-ID, 0,
'<sip:999@10.132.10.108>;party=calling', 0;
Result:
Remote-Party-ID:
<sip:999@10.132.10.108>;party=calling;npi=0;ton=0
Example 2 Rule:
Create a Remote-Party-Id header using the url in the From header using
the + operator to concatenate strings:
MessageManipulations 0 = 1, Invite, ,header.REMOTE-
PARTY-ID, 0, '<'+header.from.url +'>' +
Result:
Remote-Party-ID:
<sip:555@10.132.10.128;user=phone>;party=calling;npi
Example 3 Rule:
Modify the number plan to 1 (ISDN):
MessageManipulations 1 = 1, invite, , header.Remote-
Party-ID.numberplan, 2, '1', 0;
Result:
Remote-Party-ID:
<sip:555@10.132.10.128;user=phone>;party=calling;npi
Example 4 Rule:
Modify the Remote-Party-Id header to set the privacy parameter to 1
(Full):
MessageManipulations 1 = 1, invite, , header.Remote-
Party-ID.privacy, 2, '1', 0;
Result:
Remote-Party-ID:
<sip:555@10.132.10.128;user=phone>;party=calling;pri
C.2.23 Request-Uri
An example of the header is shown below:
sip:alice:secretword@atlanta.com;transport=tcp
SIP/2.0 486 Busy Here
The header properties are shown in the table below:
Header Level Action Add Delete Modify List Entries
Operations Supported No No Yes NA
Method String Read/Write
MethodType Enum Read/Write
URI String Read/Write
URL URL Structure (see 'URL'
on page 815)
Read/Write