Administrator’s Guide for W60P/W53P/W41P DECT Phones
134
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 dial plan:
Regular
expression
Description
.
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.
x
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 “91
5
1234”, “91
6
1234”, “91
7
1234”.
()
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 "9001
235
45
99
". “$1” means 3
digits in the first parenthesis, that is, “235”. “$2” means 2 digits in the second parenthesis, that is, “99”.
Replace Rule File Customization
The replace rule file helps create multiple replace rules. At most 100 replace rules can be added to the IP phone.
You can ask the distributor or Yealink FAE for the replace rule file template. You can also obtain the replace rule file
template online:
http://support.yealink.com/documentFront/forwardToDocumentFrontDisplayPage
.
Topics
Customizing the Replace Rule File
Replace Rule File Attributes
The following table lists the attributes you can use to add replace rules to the replace rule file:
Attributes
Description
Prefix
Specify the number to be replaced.
Replace
Specify the alternate string instead of what the user enters.
Summary of Contents for W60P Telesystem
Page 1: ......
Page 18: ...Table of Contents 11 Appendix 255 RFC and Internet Draft Support 255...
Page 19: ...Administrator s Guide for W60P W53P W41P DECT Phones 12...
Page 47: ...40 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 73: ...66 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 123: ...116 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 125: ...118 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 139: ...132 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 171: ...164 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 193: ...186 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 227: ...220 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 253: ...246 Administrator s Guide for W60P W53P W41P DECT Phones...
Page 261: ...254 Administrator s Guide for W60P W53P W41P DECT Phones...