Copying Information Between Messages Using Variables - AudioCodes Mediant 1000 User Manual

Voip media gateways, sip protocol
Hide thumbs Also See for Mediant 1000:
Table of Contents

Advertisement

SIP User's Manual
C.6
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 example of manipulation rules implementing variables:
Example 1:
Store a value in a call variable: Stores the subject URI parameter from the To
header:
MessageManipulations 0 = 0, Invite.Request, ,
var.call.dst.1, 2, header.to.url.param.subject, 0;
Use the stored value: Allocates a Subject header for the 200 OK response for the
same call and assigns it the stored value:
MessageManipulations 0 = 0, Invite.response.200, ,
header.subject, 0, var.call.dst.1, 0;
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:
MessageManipulations 0 = 0, Invite.Request,
header.from.url.host == 'company', var.global.1, 2,
header.priority, 0;
Use the stored value: Assigns the same priority as the INVITE request to
SUBSCRIBE requests arriving with 'company' in the host part of the From
header:
MessageManipulations 0 = 0, Subscribe.request,
header.from.url.host == 'company', header.priority, 0,
var.global.1, 0;
Version 6.4
C. SIP Message Manipulation Syntax
817
March 2012

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mediant 600

Table of Contents