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
for 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
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, ,
Содержание Mediant 800 MSBG
Страница 2: ......
Страница 366: ...SIP User s Manual 366 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 372: ...SIP User s Manual 372 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 390: ...SIP User s Manual 390 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 404: ...SIP User s Manual 404 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 616: ...SIP User s Manual 616 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 636: ...SIP User s Manual 636 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 652: ...SIP User s Manual 652 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 886: ...SIP User s Manual 886 Document LTRT 12804 Mediant 800 MSBG Reader s Notes ...
Страница 890: ...User s Manual Ver 6 2 www audiocodes com ...