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 following table:
Header Level Action |
Add |
Delete |
Modify |
List Entries |
---|---|---|---|---|
Operations Supported |
No |
No |
Yes |
NA |
Keyword |
Sub Types |
Attributes |
---|---|---|
Name |
String |
Read/Write |
Param |
Param |
Read/Write |
tag |
String |
Read Only |
URL |
URL Structure (see URL) |
Read/Write |
Below are header manipulation examples:
Example 1 |
Rule: |
Change the user part of the From header if the user is not 654: MessageManipulations 8 = 1, invite, header.from.url.user != '654', header.from.url.user, 2, 'fred', 0; |
Result: |
From: <sip:fred@IPG2Host;user=phone>;tag=1c20161 |
|
Example 2 |
Rule: |
Add a new parameter to the From header called p1 and set its value to myParameter: MessageManipulations 1 = 1, Invite.request, ,header.from.param.p1, 0, 'myParameter', 0; |
Result: |
From: <sip:fred@IPG2Host;user=phone>;p1=myParameter;tag=1c5891 |
|
Example 3 |
Rule: |
Modify the URL in the From header: MessageManipulations 0 = 1, any, , header.from.url, 2, 'sip:3200@110.18.5.41;tusunami=0', 0; |
Result: |
From: <sip:3200@110.18.5.41;user=phone;tusunami=0>;tag=1c23750 |