Configuring Advanced Features
219
3. Tap to accept the change.
Dial Plan
Dial plan is a string of characters that governs the way for IP phones to process the inputs
received from the IP phone’s keypads. You can use regular expression to define dial plan.
Regular expression, often called a pattern, is an expression that specifies a set of strings. A
regular expression provides a concise and flexible means to “match” (specify and recognize)
strings of text, such as particular characters, words, or patterns of characters.
Yealink IP phones support two methods to help creating a dial plan: Dial Plan using XML
Template Files (old dial plan mechanism) and Dial Plan using Digit Map String Rules (new dial
plan mechanism). Old dial plan method supports replace rule, dial now, area code and block out
features, and each dial plan feature need its own matching rule. By contrast, new dial plan
supports one or more matching rules in one digit map string. It is helpful for completing
multiple dial plan features: replace, dial now, block out, etc by one matching string.
If you enable new dial plan mechanism, old dial plan will be ignored.
Dial Plan using XML Template Files
Yealink IP phones support the following dial plan features:
Replace Rule
Dial-now
Area Code
Block Out
You need to know the following basic regular expression syntax when creating dial plan:
The dot “.” can be used as a placeholder or multiple placeholders for any
string. Example:
“12.” would match “123”, “1234”, “12345”, “12abc”, etc.
The “x” can be used as a placeholder for any character. Example:
“12x” would match “121”, “122”, “123”, “12a”, etc.
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: