Configuring PSTN Punch Plans
You can use the afterward accomplish to configure PSTN punch plans.
Step 1. Configure chiffre abetment for PSTN calls.
Step 2. Configure chiffre abetment for intersite calls.
Step 3. Configure punch associate matching.
PSTN Punch Plan Example
In the archetype illustrated in Amount 6-7, you are adapted to advance and apparatus a dial
plan for your company.
The punch plan charge accommodated arrangement requirements as specified. The agreement scenario
that is represented in this amount will be acclimated throughout this procedure.
Dial Plan Requirements
Dial plan requirements are as follows:
■ San Jose site:
Cisco Unified Communications Manager Express on Router1
DID ambit 4085552XXX
DN ambit 2XXX
Figure 6-7 PSTN Punch Plan Scenario
■ Austin site:
Cisco Unified Communications Manager Express on Router3
DID ambit 5125553XXX
DN ambit 3XXX
■ Any intersite calls baffled application the PSTN will crave chiffre abetment to change
the dialed alien addendum to a PSTN routable cardinal (for example, 2001 to
14085552001).
Digit Abetment for Entering Calls
Examples 6-1 and 6-2 accommodate the configurations for Router1 and Router3, which perform
digit abetment for entering calls.
Example 6-1 Chiffre Abetment for Entering Calls on Router1
332 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)
PSTN
IP WAN
DID: 4085552XXX
Router1
CME
Phone1-1
2001
Phone1-2
2002
Phone2-1
3001
Phone2-
3002
San Jose
Austin
5125551002
Users should be able
to ability the added site
via an extension.
Router3
CME
V
DID: 5125553XXX
Router1(config)#voice translation-rule 1
Router1(cfg-translation-rule)#rule 1 /^4085552/ /2/
Router1(cfg-translation-rule)#exit
Router1(config)#voice translation-profile pstn-in
Router1(cfg-translation-profile)#translate alleged 1
Router1(cfg-translation-profile)#exit
Router1(config)#voice-port 0/0/0:23
Router1(config-voiceport)#translation-profile admission pstn-in
Example 6-2 Chiffre Abetment for Entering Calls on Router3
Chapter 6: Identifying Punch Plan Characteristics 333
Router3(config)#voice translation-rule 1
Router3(cfg-translation-rule)#rule 1 /^5125553/ /3/
Router3(cfg-translation-rule)#exit
Router3(config)#voice translation-profile pstn-in
Router3(cfg-translation-profile)#translate alleged 1
Router3(cfg-translation-profile)#exit
Router3(config)#voice-port 0/0/0:23
Router3(config-voiceport)#translation-profile admission pstn-in
The afterward describes the agreement activated to Router1 (which is agnate to that of
Router3):
Step 1. Articulation adaptation aphorism 1 is acclimated to adapt the entering alleged cardinal to the
actual agenda number:
Router1(config)#voice translation-rule 1
Router1(cfg-translation-rule)#rule 1 /^4085552/ /2/
Step 2. The articulation adaptation contour pstn-in is acclimated to adapt the admission called
and calling number:
Router1(config)#voice translation-profile pstn-in
Router1(cfg-translation-profile)#translate alleged 1
Step 3. The articulation adaptation contour pstn-in is apprenticed to the articulation anchorage and will be
used for any admission call:
Router1(config)#voice-port 0/0/0:23
Router1(config-voiceport)#translation-profile admission pstn-in
Digit Abetment for Outbound Calls
Examples 6-3 and 6-4 appearance the chiffre abetment configurations deployed on Router1
and Router3 for outbound calls.
Example 6-3 Chiffre Abetment for Outbound Calls on Router1
Router1(config)#voice translation-rule 2
Router1(cfg-translation-rule)#rule 1 /^2/ /4085552/
Router1(cfg-translation-rule)#exit
Router1(config)#voice translation-profile pstn-out
Router1(cfg-translation-profile)#translate calling 2
Router1(cfg-translation-profile)#exit
Router1(config)#voice-port 0/0/0:23
Router1(config-voiceport)#translation-profile approachable pstn-out
Example 6-4 Chiffre Abetment for Outbound Calls on Router3
334 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)
Router3(config)#voice translation-rule 2
Router3(cfg-translation-rule)#rule 1 /^3/ /5125553/
Router3(cfg-translation-rule)#exit
Router3(config)#voice translation-profile pstn-out
Router3(cfg-translation-profile)#translate calling 2
Router3(cfg-translation-profile)#exit
Router3(config)#voice-port 0/0/0:23
Router3(config-voiceport)#translation-profile approachable pstn-out
The afterward describes the agreement activated to Router1 (which is absolute agnate to
that of Router3):
Step 1. Articulation adaptation aphorism 2 matches the four-digit 2XXX acknowledgment and
expands it to DID cardinal 4085552XXX:
Router1(config)#voice translation-rule 2
Router1(cfg-translation-rule)#rule 1 /^2/ /4085552/
Step 2. The articulation adaptation contour pstn-out uses this aphorism to construe the calling
number:
Router1(config)#voice translation-profile pstn-out
Router1(cfg-translation-profile)#translate calling 2
Step 3. The pstn-out contour is apprenticed to articulation anchorage 0/0/0:23 as the approachable voice
translation profile:
Router1(config)#voice-port 0/0/0:23
Router1(config-voiceport)#translation-profile outgoing
pstn-out
Digit Abetment for Intersite Calls
The agreement deployed on Router1 to acquiesce addendum short-dialing to Austin is as
follows:
Router1(config)#num-exp 3... 915125553...
The agreement deployed on Router3 to acquiesce addendum short-dialing to San Jose is as
follows:
Router3(config)#num-exp 2... 914085552...
Outbound Punch Associate Matching
After the chiffre abetment for entering calls has been defined, the outbound punch peers
need to be created. Both routers crave a distinct punch associate that will be acclimated to avenue calls
to the PSTN.
The easiest agreement is a distinct punch associate with the destination arrangement 9T. The dialpeer
configuration for both routers is identical. Archetype 6-5 shows the agreement for
Router1.
Example 6-5 Outbound Dial-Peer Analogous on Router1
Chapter 6: Identifying Punch Plan Characteristics 335
Router1(config)#dial-peer articulation 910 pots
Router1(config-dial-peer)#destination-pattern 9[2-9]..[2-9]......
Router1(config-dial-peer)#direct-inward-dial
Router1(config-dial-peer)#port 0/0/0:23
These punch aeon will additionally be acclimated for entering alarm legs. Therefore, the direct-inward-dial
command is configured to accredit alarm acquisition application the accustomed called-number
information.
Note This archetype shows alone the commands acclimated for authentic alarm acquisition and digit
manipulation. Added settings—for example, H.323 timers—might be adapted as well,
depending on the deployment scenario.
Inbound Punch Associate Matching
Next, the punch aeon are acquainted for dial-peer matching. Although alarm acquisition ability work
without any added configuration, consistently configure adapted entering dial-peer
matching application admission called-number or answer-address to ensure that a alarm is actually
routed as desired.
On Router1, punch associate 9 should be the entering punch associate for PSTN calls. The best common
approach is to bout the admission alleged number. In this case it is not the DID
range 14085552XXX but the absolute addendum 2XXX. This is because of the voicetranslation
profile configured on the articulation port, which emphasizes that it is important to
know the adjustment of chiffre abetment and dial-peer matching.
Examples 6-6 and 6-7 appearance the entering dial-peer analogous configurations deployed on
Router1 and Router3 for entering calls, application the admission called-number command.
Example 6-6 Entering Punch Associate Analogous on Router1
Router1(config)#dial-peer articulation 910 pots
Router1(config-dial-peer)#destination-pattern 9[2-9]..[2-9]......
Router1(config-dial-peer)#direct-inward-dial
Router1(config-dial-peer)#incoming called-number 2...
Router1(config-dial-peer)#port 0/0/0:23
Example 6-7 Entering Punch Associate Analogous on Router3
336 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)
Router3(config)#dial-peer articulation 910 pots
Router3(config-dial-peer)#destination-pattern 9[2-9]..[2-9]......
Router3(config-dial-peer)#direct-inward-dial
Router3(config-dial-peer)#incoming called-number 3...
Router3(config-dial-peer)#port 0/0/0:23
Note Amiss entering dial-peer analogous agreement is one of the better issues with
Cisco IOS gateways. The absence punch associate 0 will generally affectation an accessible misconfiguration,
but this ability generally advance to abrupt results, such as amiss codec alternative and wrong
digit manipulation.
Complete Configurations
As a reference, Examples 6-8 and 6-9 appearance the complete configurations for both routers
in this scenario.
Example 6-8 Complete Agreement for Router1
Router1#show run
... OUTPUT OMITTED ...
voice translation-rule 1
rule 1 /^4085552/ /2/
voice translation-rule 2
rule 1 /^2/ /4085552/
voice translation-profile pstn-out
translate calling 2
voice translation-profile pstn-in
translate alleged 1
voice-port 0/0/0:23
translation-profile admission pstn-in
translation-profile approachable pstn-out
dial-peer articulation 910 pots
destination-pattern 9[2-9]..[2-9]......
incoming called-number 2...
direct-inward-dial
port 0/0/0:23
num-exp 3... 915125553...
... OUTPUT OMITTED ...
Example 6-9 Complete Agreement for Router3
Chapter 6: Identifying Punch Plan Characteristics 337
Router3#show run
... OUTPUT OMITTED ...
voice translation-rule 1
rule 1 /^3125553/ /3/
voice translation-rule 2
rule 1 /^3/ /3125553/
voice translation-profile pstn-out
translate calling 2
voice translation-profile pstn-in
translate alleged 1
voice-port 0/0/0:23
translation-profile admission pstn-in
translation-profile approachable pstn-out
dial-peer articulation 910 pots
destination-pattern 9[2-9]..[2-9]......
incoming called-number 3...
direct-inward-dial
port 0/0/0:23
num-exp 2... 914085552...
... OUTPUT OMITTED ...
Inbound PSTN Alarm Breeze Example
Figure 6-8 illustrates an archetype of an entering PSTN alarm flow.
PSTN
RouterA
DID: 4085552XXX
2001 5125553002
0/0/1 V
Figure 6-8 Entering PSTN Alarm Breeze Example
The afterward accomplish are complex in configuring this example:
Step 1. A user dials 14085552001 and RouterA receives an admission call. Example
6-10 shows the agreement on RouterA, and Table 6-2 shows the resulting
DNIS and ANI numbers.
■ Approachable DNIS: 2001
■ Approachable ANI: 915125553002
Example 6-10 Entering PSTN Alarm Breeze Step 1
338 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)
RouterA(config)#voice translation-rule 1
RouterA(cfg-translation-rule)#rule 1 /^4085552/ /2/
RouterA(cfg-translation-rule)#exit
RouterA(config)#voice translation-profile pstn-in
RouterA(cfg-translation-profile)#translate alleged 1
RouterA(cfg-translation-profile)#exit
RouterA(config)#voice-port 0/0/0:23
RouterA(config-voiceport)#translation-profile admission pstn-in
Table 6-2 Entering PSTN Alarm Breeze Step 1—DNIS and ANI Matrix
Incoming Outgoing
DNIS 4085552001 2001
ANI 5125553002 915125553002
Step 2. The entering punch associate is akin to punch associate 9 because of the incoming
called-number 2... command, as apparent in Archetype 6-11. Table 6-3 shows the
resulting DNIS and ANI numbers.
Example 6-11 Entering PSTN Alarm Breeze Step 2
RouterA(config)#dial-peer articulation 910 pots
RouterA(config-dial-peer)#destination-pattern 9[2-9].. [2-9]......
RouterA(config-dial-peer)#incoming called-number 2...
RouterA(config-dial-peer)#direct-inward-dial
RouterA(config-dial-peer)#port 0/0/0:23
Table 6-3 Entering PSTN Alarm Breeze Step 2—DNIS and ANI Matrix
Incoming Outgoing
DNIS 2001 2001
ANI 915125553002 915125553002
Step 3. The outbound punch associate is akin to punch associate 2001 because of the
destination-pattern 2001 command, as apparent in Archetype 6-12. Table 6-4
shows the consistent DNIS and ANI numbers.
Example 6-12 Entering PSTN Alarm Breeze Step 3
Chapter 6: Identifying Punch Plan Characteristics 339
RouterA(config)#dial-peer articulation 2001 pots
RouterA(config-dial-peer)#destination-pattern 2001
RouterA(config-dial-peer)#port 0/0/1
Table 6-4 Entering PSTN Alarm Breeze Step 3—DNIS and ANI Matrix
Incoming Outgoing
DNIS 2001 2001
ANI 915125553002 915125553002
Outbound PSTN Alarm Breeze Example
Figure 6-9 illustrates an archetype of an outbound PSTN alarm flow.
PSTN
RouterA
DID: 4085552XXX
2001 5125553002
V
Figure 6-9 Outbound PSTN Alarm Breeze Example
The afterward accomplish are complex in configuring this example:
Step 1. The entering punch associate 2001 is akin because of the destination-pattern
2001 command. Archetype 6-13 shows the agreement on RouterA, and
Table 6-5 shows the consistent DNIS and ANI numbers.
Example 6-13 Outbound PSTN Alarm Breeze Step 1
RouterA(config)#dial-peer articulation 2001 pots
RouterA(config-dial-peer)#destination-pattern 2001
RouterA(config-dial-peer)#huntstop
RouterA(config-dial-peer)#port 0/0/1
Table 6-5 Outbound PSTN Alarm Breeze Step 1—DNIS and ANI Matrix
Incoming Outgoing
DNIS 915125553002 915125553002
ANI 2001 2001
Step 2. The outbound punch associate is akin to punch associate 9 because of the destinationpattern
9T command. The 9 is bare from the DNIS by way of the default
POTS dial-peer analogous behavior, as apparent in Archetype 6-14. Table 6-6
shows the consistent DNIS and ANI numbers.
Example 6-14 Outbound PSTN Alarm Breeze Step 2
340 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)
RouterA(config)#dial-peer articulation 910 pots
RouterA(config-dial-peer)#destination-pattern 9[2-9].. [2-9]......
RouterA(config-dial-peer)#incoming called-number 2...
RouterA(config-dial-peer)#direct-inward-dial
RouterA(config-dial-peer)#port 0/0/0:23
Table 6-6 Outbound PSTN Alarm Breeze Step 2—DNIS and ANI Matrix
Incoming Outgoing
DNIS 915125553002 15125553002
ANI 2001 2001
Step 3. The approachable articulation adaptation contour on the articulation anchorage modifies the ANI to
4085552001, and the alarm is baffled to the PSTN, as apparent in Archetype 6-15.
Table 6-7 shows the consistent DNIS and ANI numbers.
Example 6-15 Outbound PSTN Alarm Breeze Step 3
RouterA(config)#voice translation-rule 2
RouterA(cfg-translation-rule)#rule 1 /^2/ /4085552/
RouterA(cfg-translation-rule)#exit
RouterA(config)#voice translation-profile pstn-out
RouterA(cfg-translation-profile)#translate calling 2
RouterA(cfg-translation-profile)#exit
RouterA(config)#voice-port 0/0/0:23
RouterA(config-voiceport)#translation-profile approachable pstn-out
Table 6-7 Outbound PSTN Alarm Breeze Step 3—DNIS and ANI Matrix
Incoming Outgoing
DNIS 15125553002 15125553002
ANI 2001 4085552001