EasyManua.ls Logo

AudioCodes Mediant 600 - Random Type; Random Strings; Random Integers; Wildcarding for Header Removal

AudioCodes Mediant 600
844 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIP User's Manual 816 Document #: LTRT-83310
Mediant 600 & Mediant 1000
C.4 Random Type
Manipulation rules can include random strings and integers. An example of a manipulation
rule using random values is shown below:
MessageManipulations 4 = 1, Invite.Request, , Header.john, 0,
rand.string.56.A.Z, 0;
In this example, a header called "john" is added to all INVITE messages received by the
device and a random string of 56 characters containing characters A through Z is added to
the header.
For a description of using random values, see the subsequent subsections.
C.4.1 Random Strings
The device can generate random strings in header manipulation rules that may be
substituted where the type ‘String’ is required. The random string can include up to 298
characters and include a range of, for example, from a to z or 1 to 10. This string is used in
the table's 'Action Value' field.
The syntax for using random strings is:
Rand.string.<number of characters in string>.<low character>.<high
character>
Examples:
Rand.string.5.a.z: This generates a 5-character string using characters a through z.
Rand.string.8.0.z: This generates an 8-character string using characters and digits.
C.4.2 Random Integers
The device can generate a random numeric value that may be substituted where the type
‘Int’ is required. The syntax for random numeric values is:
Rand.number.<low number>.<high number>
Examples:
Rand.number.5.32: This generates an integer between 5 and 32
C.5 Wildcarding for Header Removal
The device supports the use of the "*" wildcard character to remove headers. The "*"
character may only appear at the end of a string. For example, "X-*" is a valid wildcard
request, but "X-*ID" is not.
Below are examples of using the wildcard:
header.p-* - removes all headers that have the prefix "p-"
header.via* - removes all Via headers
header.x-vendor* - removes all headers that start with "x-vendor"
header.* - removes all non-critical headers
header.to* - removes all headers that start with "to", except the To
header, which is protected
Note: The wildcard does not remove the following headers: Request-Uri, Via, From,
To, Callid, Cseq, and Contact.

Table of Contents

Other manuals for AudioCodes Mediant 600

Related product manuals