![Cisco 7940G Скачать руководство пользователя страница 61](http://html.mh-extra.com/html/cisco/7940g/7940g_administration-manual_65391061.webp)
3-25
Cisco Unified IP Phone 7960G and 7940G Administration Guide for Release 8.0 (SIP)
OL-7890-01
Chapter 3 Initializing Cisco Unified IP Phones
How to Create Dial Plans
Rewrite=“
xxx”
Alternate string to be dialed instead of the number that the user
dials. The following apply:
•
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 as part of the length.
•
A complete rule is matched only if it has more nonwildcard
matches than an incomplete rule.
•
Comments are allowed with the following syntax:
<!-- comment -->
•
Rules allow for substitution of up to five replacement strings as
well as picking off of replaced digits one at a time.
For example, a match string of
ab..cd..ef*
and an input string of
ab12cd34ef5678
result in the following.
Rewrite
Output
Notes
%s
ab12cd34ef5678
—
%0
ab12cd34ef5678
—
%1
12
—
%2
34
—
%3
5678
—
%4
Null output.
%5
Null output.
XYZ....
XYZ1234
—
X.Y.Z...
X1Y2Z345
—
919%1%2%3
91912345678
—
AB...X%1X..
AB123X12X45
12 appears twice.
X%1X%1X%1
X12X12X12
You can reuse the string.
X%s%%
Xab12cd34ef5678%
%% produces a %.
919
919
No need to use the input.
............
12345678
Nothing goes in for the extra
dots.
Argument
Description