Administrator’s Guide for SIP-T2 Series/T19(P) E2/T4 Series/T5 Series IP Phones
266
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:
(old dial plan mechanism) and
Dial Plan using Digit Map String Rules
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, and so on 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:
You can configure these dial plan features via web user interface or using configuration file. You
can select to add a replace rule/dial now rule one by one or using the replace rule/dial now
template file to add multiple replace rules at a time.
You need to know the following basic regular expression syntax when creating old dial plan:
.
The dot “.” can be used as a placeholder or multiple placeholders for
any string. Example:
“12.” would match “12
3
”, “12
34
”, “12
345
”, “12
abc
”, and so on.
x
The “x” can be used as a placeholder for any character. Example:
“12x” would match “12
1
”, “12
2
”, “12
3
”, “12
a
”, 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 “91
5
1234”, “91
6
1234”, “91
7
1234”.
()
The parenthesis "( )" can be used to group together patterns, for
Содержание SIP-T19 E2 T4 Series
Страница 1: ...63 ...
Страница 532: ...Administrator s Guide for SIP T2 Series T19 P E2 T4 Series T5 Series IP Phones 510 ...
Страница 734: ...Administrator s Guide for SIP T2 Series T19 P E2 T4 Series T5 Series IP Phones 712 ...
Страница 814: ...Administrator s Guide for SIP T2 Series T19 P E2 T4 Series T5 Series IP Phones 792 ...
Страница 850: ...Administrator s Guide for SIP T2 Series T19 P E2 T4 Series T5 Series IP Phones 828 ...
Страница 887: ...Troubleshooting 865 The phone begins rebooting Any reboot of the phone may take a few minutes ...