Version 6.6
441
MP-11x & MP-124
User's Manual
42. SIP Message Manipulation Syntax
Note that there must be no spaces in the syntax.
The following is a manipulation example using the length condition for the user part in a
Request-URI header:
Parameter
Rule Index 1
Condition
header.request-uri.url.user len>'6'
Action Subject
header.diversion
Action Type
Add
Action Value
<sip:[email protected]>;reason = time-of-day
42.8 Copying Information between Messages using
Variables
You can use variables in SIP message manipulation rules to copy specific information from
one message to another. Information from one message is copied to a variable and then
information from that variable is copied to any subsequent message. The device can store
information in local or global variables. Local variables are stored on a per call basis and
change when a new call is made. Up to two local variables can be used per call. Global
variables do not change as new calls are made. Up to 10 global variables can be used.
The syntax for using variables is as follows:
Var.call.<src || dst><local index>
where
local index
is an integer between 1 and 2 inclusive
Var.global.<global index>
where
global index
is an integer between 1 and 10 inclusive
To store data in a variable, add the name of the variable in the Action Subject field and set
the Action Type to Modify. To retrieve data from a variable, add it in the Action Value field
and it can be used in any manipulation where a ManStringElement is valid as an Action
Subject.
Below are examples of manipulation rules using variables:
Example 1:
•
Store a value in a call variable: Stores the subject URI parameter from the To
header:
Message Type
Condition
Action Subject
Action
Type
Action Value
invite.request
var.call.dst.1
Modify
header.to.url.param.subject
•
Use the stored value: Allocates a Subject header for the 200 OK response for the
same call and assigns it the stored value:
Message Type
Condition
Action Subject
Action
Type
Action Value
invite.response.200
header.subject
Add
var.call.dst.1
Example 2:
•
Store a value in a global variable: Stores the Priority header of the INVITE with
‘company’ in the host part of the From header:
Содержание MediaPack MP-112
Страница 2: ......
Страница 14: ...User s Manual 14 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 21: ...Part I Getting Started with Initial Connectivity ...
Страница 22: ......
Страница 30: ...User s Manual 30 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 31: ...Part II Management Tools ...
Страница 32: ......
Страница 34: ...User s Manual 34 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 78: ...User s Manual 78 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 84: ...User s Manual 84 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 86: ...User s Manual 86 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 91: ...Part III General System Settings ...
Страница 92: ......
Страница 102: ...User s Manual 102 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 103: ...Part IV General VoIP Configuration ...
Страница 104: ......
Страница 162: ...User s Manual 162 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 172: ...User s Manual 172 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 199: ...Part V Gateway Application ...
Страница 200: ......
Страница 202: ...User s Manual 202 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 240: ...User s Manual 240 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 286: ...User s Manual 286 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 287: ...Part VI Stand Alone Survivability Application ...
Страница 288: ......
Страница 296: ...User s Manual 296 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 319: ...Part VII Maintenance ...
Страница 320: ......
Страница 326: ...User s Manual 326 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 347: ...Part VIII Status Performance Monitoring and Reporting ...
Страница 348: ......
Страница 377: ...Part IX Diagnostics ...
Страница 378: ......
Страница 390: ...User s Manual 390 Document LTRT 65417 MP 11x MP 124 ...
Страница 392: ...User s Manual 392 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 403: ...Part X Appendix ...
Страница 404: ......
Страница 618: ...User s Manual 618 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 622: ...User s Manual Ver 6 6 www audiocodes com ...