Version 6.4 793 March 2012
SIP User's Manual C. SIP Message Manipulation Syntax
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
C.2.8 Event
An example of the header is shown below:
Event: foo; id=1234
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
EventKey Event Structure (see
'Event Structure' on page
813)
Read/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, ,
header.event.EVENTKEY.EVENTPACKAGE, 2, '2', 0;
Result:
Event: refer;id=5678
C.2.9 From
An example of the header is shown below:
From: <sip:555@10.132.10.128;user=phone>;tag=YQLQHCAAYBWKKRVIMWEQ
The header properties are shown in the table below: