
Example: Using Digit Manipulation Tools
The following is a sample configuration using the prefix command:
dial-peer voice 1 pots
destination-pattern 555....
prefix 555
port 1/0/0
In the sample configuration using the prefix command, the device attached to port 1/0/0 needs
all seven digits to process the call. On a POTS dial peer, only wildcard-matched digits are
forwarded by default. Use the prefix command to send the prefix numbers 555 before
forwarding the four wildcard-matched digits.
The following is a sample configuration using the forward-digits command:
dial-peer voice 1 pots
destination-pattern 555....
forward-digits 7
port 1/0/0
In the sample configuration using the forward-digits command, the device attached to port
1/0/0 needs all seven digits to process the call. On a POTS dial peer, only wildcard-matched
digits are forwarded by default. The forward-digits command allows the user to specify the
total number of digits to forward.
The following is a sample configuration using the number expansion table (num-exp)
command:
num-exp 2... 5552...
dial-peer voice 1 pots
destination-pattern 5552...
port 1/1/0
In the sample configuration using the num-exp command, the extension number 2… is
expanded to 5552… before an outbound dial peer is matched; for example, the user dials 2401,
but the outbound dial peer 1 is configured to match 5552401.
The following is a sample configuration using the digit translation (translation-rule)
command:
translation-rule 5
rule 1 2401 5552401
dial-peer voice 1 pots
translate-outgoing called-number 5
In the sample configuration using the translation-rule command, the rule is defined to
translate 2401 into 5552401. The dial peer translate-outgoing called-number 5 command
notifies the router to use the globally defined translation rule 5 to translate the number before
sending the string out the port. It is applied as an outbound translation from the POTS dial peer.
4-38 Cisco Networking Academy Program: IP Telephony v1.0 Copyright © 2005, Cisco Systems, Inc.
Kommentare zu diesen Handbüchern