SIP User's Manual  510  Document #: LTRT-12804 
  Mediant 800 MSBG 
 
 
Below are header manipulation examples: 
Example 1  Rule: 
Add a Diversion header to all INVITE messages: 
MessageManipulations 0 = 1, invite, , 
header.Diversion, 0," '<tel:+101>;reason=unknown; 
counter=1;screen=no; privacy=off'", 0; 
Result: 
Diversion: <tel:+101>;reason=user-
busy;screen=no;privacy=off;counter=1 
Example 2  Rule: 
Modify the Reason parameter in the header to 1, see ''Reason (Diversion)'' 
on page 533 f
or possible values: 
MessageManipulations 1 = 1, invite, , 
header.Diversion.reason, 2, '1', 0; 
Result: 
Diversion: <tel:+101>;reason=user-
busy;screen=no;privacy=off;counter=1 
Example 3  Rule: 
The URL in the Diversion header is modified to that which is contained in 
the header URL: 
MessageManipulations 2 = 1, invite, , 
header.Diversion.URL, 2, "header.from.url", 0; 
Result: 
Diversion:<sip:555@IPG2Host;user=phone>;reason=user-
busy;screen=no;privacy=off;counter=1 
 
 
8.4.9.2.8  Event 
An example of the header is shown below: 
Event: foo; id=1234 
The header properties as shown in the table below: 
Header Level Action  Add  Delete  Modify  List Entries 
Operations Supported  Yes  Yes  Yes  N/A 
 
Keyword  Sub Types  Attributes 
EventKey  Event Structure (see 
''Event Structure'' on page 
529) 
Rea
d/Write 
Param Param Read/Write 
 
Below are header manipulation examples: 
Example 1  Rule: 
Add parameter itsp-abc=voip to the Event header: 
MessageManipulations 0 = 1, invite, , 
header.event.param.itsp-abc, 0, "'voip'" , 0; 
Result: 
Event: foo;id=1234;itsp-abc=voip 
Example 2  Rule: 
Modify the Event ID string: 
MessageManipulations 1 = 1, invite, , 
header.event.EVENTKEY.id, 2, "'5678'", 0; 
Result: 
Event: foo;id=5678; 
Example 3  Rule: 
Modify the Event package enum: 
MessageManipulations 2 = 1, invite, ,