SIP User's Manual 806 Document #: LTRT-83310
Mediant 600 & Mediant 1000
C.2.27 Server or User-Agent
An example of the header is shown below:
User-Agent: Sip Message Generator V1.0.0.5
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
N/A N/A N/A
Below are header manipulation examples:
Example 1 Rule:
Remove the User-Agent header:
MessageManipulations 2 = 1, Invite, ,header.user-
Result:
The header is removed.
Example 2 Rule:
Change the user agent name in the header:
MessageManipulations 3 = 1, Invite, ,header.user-
agent, 2, 'itsp analogue gateway', 0;
Result:
User-Agent: itsp analog gateway
C.2.28 Service-Route
An example of the header is shown below:
Service-Route: <sip:P2.HOME.EXAMPLE.COM;lr>,
<sip:HSP.HOME.EXAMPLE.COM;lr>
The header properties are shown in the table below:
Header Level Action Add Delete Modify List Entries
Operations Supported Yes Yes Yes 7
Keyword Sub Types Attributes
ServiceRoute String Read/Write
Below are header manipulation examples:
Example 1 Rule:
Add two Service-Route headers:
MessageManipulations 1 = 1, Invite, ,header.service-
route, 0, '<P2.HOME.EXAMPLE.COM;lr>', 0;
MessageManipulations 2 = 1, Invite, ,header.service-
route, 0, '<sip:HSP.HOME.EXAMPLE.COM;lr>', 0;
Result:
Service-Route:<P2.HOME.EXAMPLE.COM;lr>
Service-Route: <sip:HSP.HOME.EXAMPLE.COM;lr>
Example 2 Rule:
Modify the Service-Route header in list entry 1:
MessageManipulations 3 = 1, Invite, ,header.service-
route.1.serviceroute, 2, '<sip:itsp.com;lr>', 0;