Using Regular Expressions to Match Incoming SIP Messages to
Policies
You can use regular expressions to match the information in
the contact and request URI fields of incoming SIP messages. You configure
the regular expressions in the from condition of new call usage policies
and new transaction policies. Table 17 describes the regular
expressions supported for policies.
If you use parentheses or spaces in your regular expression,
you must enclose the expression in double quotation marks.
Table 17: Regular Expressions
Supported for Policies
Operator
Matches
.
Any single character including a space
*
0 or more instances of a character or pattern
+
1 or more instances of a character or pattern
?
0 or 1 instances of a character or pattern
( )
Group of expressions.
|
One of the two terms on either side of the pipe
[start-end]
Range of characters
[^start-end]
One instance of any character that is not in the range
[A-Za-z0-9_]
Any alphanumeric character
Examples of Regular Expressions Used for VoIP Calls
Table 18 provides examples of regular expressions used in the request URI
or contact fields of policies.
Table 18: Examples
of Regular Expressions Used for VoIP Calls