Version 6.4 809 March 2012
SIP User's Manual C. SIP Message Manipulation Syntax
C.2.32 To
An example of the header is shown below:
To: <sip:101@10.132.10.128;user=phone>
The header properties are shown in the table below:
Header Level Action Add Delete Modify List Entries
Operations Supported No No No NA
Keyword Sub Types Attributes
Name String Read/Write
Param Param Read/Write
tag String Read Only
URL URL Structure (refer to
'URL' on page 815)
Read/Write
Below are header manipulation examples:
Example 1 Rule:
Set the user phone Boolean to be false in the To header's URL:
MessageManipulations 4 = 1, invite.request, ,
header.to.url.UserPhone, 2, '0', 0;
Result:
To: <sip:101@10.132.10.128>
Example 2 Rule:
Change the URL in the To header:
MessageManipulations 4 = 1, invite.request, ,
header.to.url.UserPhone, 2, '0', 0;
Result:
To: <sip:101@10.20.30.60:65100>
Example 3 Rule:
Set the display name to 'Bob':
MessageManipulations 5 = 1, invite.request, ,
header.to.name, 2, 'Bob', 0;
Result:
To: "Bob Dylan" sip:101@10.20.30.60:65100
Example 4 Rule:
Add a proprietary parameter to all To headers:
MessageManipulations 6 = 1, invite.request, ,
header.to.param.artist, 0, 'singer', 0;
Result:
To: "Bob Dylan"
<sip:101@10.20.30.60:65100>;artist=singer