2-18
Cisco SIP IP Phone Administrator Guide
Chapter 2 Getting Started with Your Cisco SIP IP Phone
Creating Dial Plans
•
<DIALTEMPLATE> indicates the start of a template and </DIALTEMPLATE> indicates the end of
a template
•
Rules are matched from start to finish with the longest matching rule taken as the one to use.
Matches against a period are not counted for the length to be the longest.
Step 1
Using an ASCII editor, open a new file.
Step 2
Type <DIALTEMPLATE> to indicate the start of the dial-plan template.
Step 3
For each of the numbering schemes that you wish to define, add the following string to the template, each
starting each on a separate line:
TEMPLATE MATCH=”pattern” Timeout=”sec” User=”type” Rewrite=”altstrng” Route=”route”
Where:
•
MATCH= “pattern” is the dial pattern to match. When entering the value of pattern, use a period (.)
to match any character or use an asterisk (*) to match one or more characters. To have the phone
generate a secondary dial tone when the part of the template matches, use a comma (,).
•
Timeout= “sec” is the number of seconds before a timeout occurs and the number is dialed as entered
by the user. To have the number dial immediately, specify 0.
•
User= “type” is the either IP or Phone. Enter User=phone or User=IP to have the tag automatically
added to the dialed number. This entry is not case sensitive.
•
Rewrite= “xxx” is the alternate string to be dialed instead of what the user enters.
The rewrite rules are matched from start to finish with the longest matching rule taken as the one to
use. Matches against a period are not counted for the length to be the longest. A complete rule is not
matched unless it has more nonwildcard matches than an incomplete rule. You can put comments
into the file with <!-- to start the comment and --> to terminate it.
The rules allow for substitution of up to five replacement strings as well as picking off replaced
digits one at a time. For example, with a match string of
“ab..cd..ef*” and an input string of “ab12cd34ef5678”
The following replacement strings work, as follows.
REWRITE Output Notes
%s ab12cd34ef5678
%0 ab12cd34ef5678
%1 12
%2 34
%3 56
%4 that is, nothing
%5 that is, nothing
XYZ.... XYZ1234
X.Y.Z... X1Y2Z345
919%1%2%3 919123456
AB...X%1X.. AB123X12X45 (Note how “12” appears twice.)
X%1X%1X%1 X12X12X12 (You can reuse the string.)
X%s%% Xab12cd34ef5678% %% (This produces a %.)