Call Features
275
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 old dial plan:
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:
β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β.