Basic Regular Expression Syntax For Four Patterns - Yealink SIP-T2 Series Administrator's Manual

Hide thumbs Also See for SIP-T2 Series:
Table of Contents

Advertisement

Administrator's Guide for SIP-T2 Series/T4 Series/T5 Series/CP920 IP Phones
Block out: prevents users from dialing out specific numbers. When entered numbers match the predefined block
l
out rule, the phone screen prompts "Forbidden Number". Yealink IP phones support up to 10 block out rules.
You can configure these four patterns via web user interface or auto provisioning. For replace rule and dial now, you
can select to add the rule one by one or using the template file to add multiple rules at a time.
Note
If you enable a new dial plan mechanism, old dial plan will be ignored. For more information on the new dial plan, refer to
Dial Plan Defined by Digit Map (New Dial Plan Mechanism)
Topics

Basic Regular Expression Syntax for Four Patterns

Replace Rule File Customization
Dial Now File Customization
Replace Rule Configuration
Dial Now Configuration
Area Code Configuration
Block Out Configuration
Example: Adding Replace Rules Using a Replace Rule File
Basic Regular Expression Syntax for Four Patterns
You need to know the following basic regular expression syntax when creating an old dial plan:
Regular
expression
The dot "." can be used as a placeholder or multiple placeholders for any string. Example:
.
"12." would match "123", "1234", "12345", "12abc", and so on.
The "x" can be used as a placeholder for any character. Example:
x
"12x" would match "121", "122", "123", "12a", and so on.
The dash "-" can be used to match a range of characters within the brackets. Example:
-
"[5-7]" would match the number "5", "6" or "7".
The comma "," can be used as a separator within the bracket. Example:
,
"[2,5,8]" would match the number "2", "5" or "8".
The square bracket "[]" can be used as a placeholder for a single character which matches any of a set of
characters. Example:
[]
"91[5-7]1234"would match "9151234", "9161234", "9171234".
The parenthesis "( )" can be used to group together patterns, for instance, to logically combine two or
more patterns. Example:
()
"([1-9])([2-7])3" would match "923", "153", "673", and so on.
The "$" followed by the sequence number of a parenthesis means the characters placed in the parenthesis.
The sequence number stands for the corresponding parenthesis. Example:
$
A replace rule configuration, Prefix: "001(xxx)45(xx)", Replace: "9001$145$2". When you dial out
"0012354599" on your phone, the IP phone will replace the number with "90012354599". "$1" means 3
digits in the first parenthesis, that is, "235". "$2" means 2 digits in the second parenthesis, that is, "99".
258
.
Description

Advertisement

Table of Contents
loading

Table of Contents