Configuring Site-Code Dialing and Toll-Bypass

Configuring Site-Code Dialing and Toll-Bypass

To authenticate the agreement of site-code dialing and toll-bypass, the following

example walks through a agreement that meets these requirements:

■ All calls from Austin to San Jose should be baffled application the WAN articulation if possible. If

the WAN articulation fails, the PSTN articulation should be used.

■ Armpit codes charge be acclimated for intersite dialing.

Follow these accomplish to configure site-code dialing and toll-bypass:

Step 1. Configure articulation adaptation rules and articulation adaptation profiles for inbound

and outbound VoIP intersite routing.

Step 2. Define the punch aeon for VoIP intersite acquisition that avenue the alarm application the

WAN link.

Step 3. Configure articulation adaptation rules and articulation adaptation profiles for inbound

and outbound PSTN intersite routing.

Step 4. Define the punch aeon for PSTN intersite acquisition that avenue the alarm application the

PSTN articulation in case the WAN articulation is not available.

The afterward agreement scenario, as illustrated in Figure 7-26, will be acclimated throughout

this example:

■ San Jose:

■ DID ambit 408 555-2XXX

■ Directory cardinal ambit 2XXX

■ Armpit cipher 801

■ Austin:

■ DID ambit 312 555-2XXX

■ Directory cardinal ambit 2XXX

■ Armpit cipher 802

Chapter 7: Configuring Advanced Punch Plans 411

IP WAN

10.10.0.1 10.10.0.2

PSTN

R1

Phone1-1

2001

Phone1-2

2002

Phone2-1

2001

Phone2-2

2002

Austin

Site Code: 802

Ext: 2XXX

San Jose

Site Code: 801

Ext: 2XXX

R3

If WAN fails, the

PSTN aisle should

be used.

Users should be

able to ability other

sites via armpit codes.

V

DID: 408555XXXX DID: 512555XXXX

Figure 7-26 Site-Code Dialing and Toll-Bypass Topology Example

Step 1: Actualize Adaptation Rules and Profiles

To actualize adaptation rules and profiles for intersite acquisition and aisle alternative via the

WAN, you can use the afterward procedure.

For anniversary site:

Step 1. Actualize a aphorism that prefixes the armpit cipher to the calling number.

Step 2. Actualize a aphorism that strips off the armpit cipher from the alleged number.

Step 3. Actualize a articulation adaptation contour to prefix the armpit cipher to the outbound

calling-party number.

Step 4. Actualize a articulation adaptation contour to band off the armpit cipher from the inbound

called-party number.

Examples 7-24 and 7-25 accommodate the consistent configurations on the San Jose router (that

is, R1) and the Austin router (that is, R3).

Example 7-24 Step 1—R1

412 Authorized Self-Study Guide Cisco Articulation over IP (CVOICE)

R1(config)#voice translation-rule 1

R1(cfg-translation-rule)#rule 1 /^2/ /8012/

R1(cfg-translation-rule)#exit

R1(config)#voice translation-rule 2

R1(cfg-translation-rule)#rule 1 /^8012/ /2/

R1(cfg-translation-rule)#exit

R1(config)#voice translation-profile intersite-out

R1(cfg-translation-profile)#translate calling 1

R1(cfg-translation-profile)#exit

R1(config)#voice translation-profile intersite-in

R1(cfg-translation-profile)#translate alleged 2

Example 7-25 Step 1—R3

R3(config)#voice translation-rule 1

R3(cfg-translation-rule)#rule 1 /^2/ /8022/

R3(cfg-translation-rule)#exit

R3(config)#voice translation-rule 2

R3(cfg-translation-rule)#rule 1 /^8022/ /2/

R3(cfg-translation-rule)#exit

R3(config)#voice translation-profile intersite-out

R3(cfg-translation-profile)#translate calling 1

R3(cfg-translation-profile)#exit

R3(config)#voice translation-profile intersite-in

R3(cfg-translation-profile)#translate alleged 2

Step 2: Define VoIP Punch Peers

After you configure the articulation adaptation profiles for VoIP routing, you charge to define

the VoIP punch aeon for intersite acquisition via the WAN. Examples 7-26 and 7-27 provide

the configurations for this example.

Example 7-26 Step 2—R1

Chapter 7: Configuring Advanced Punch Plans 413

R1(config)#dial-peer articulation 8021 voip

R1(config-dial-peer)#destination-pattern 8022...

R1(config-dial-peer)#session-target ipv4:10.10.0.2

R1(config-dial-peer)#translation-profile admission intersite-in

R1(config-dial-peer)#translation-profile approachable intersite-out

Example 7-27 Step 2—R3

R3(config)#dial-peer articulation 8011 voip

R3(config-dial-peer)#destination-pattern 8012...

R3(config-dial-peer)#session-target ipv4:10.10.0.1

R3(config-dial-peer)#translation-profile admission intersite-in

R3(config-dial-peer)#translation-profile approachable intersite-out

Note The aforementioned punch associate is acclimated for both entering and outbound alarm routing.

Step 3: Add Abutment for PSTN Fallback

To abutment PSTN fallback acquisition in case the WAN articulation fails, you charge to configure an

additional articulation adaptation aphorism and profile:

■ This articulation adaptation aphorism replaces the 801 armpit cipher with the PSTN dialable number,

1408555:

R3(config)#voice translation-rule 3

R3(cfg-translation-rule)#rule 1 /^8012/ /14085552/

■ To adapt the alleged cardinal for outbound calls to a PSTN routable format, use the

following articulation adaptation contour configuration:

R3(config)#voice translation-profile 801PSTN

R3(cfg-translation- profile)#translate alleged 3

Examples 7-28 and 7-29 appearance the consistent configurations for the San Jose and Austin

routers in this example.

Example 7-28 Step 3—R1

414 Authorized Self-Study Guide Cisco Articulation over IP (CVOICE)

R1(config)#voice translation-rule 3

R1(cfg-translation-rule)#rule 1 /^8022/ /15125552/

R1(cfg-translation-rule)#exit

R1(config)#voice translation-profile 802PSTN

R1(cfg-translation-profile)#translate alleged 3

Example 7-29 Step 3—R3

R3(config)#voice translation-rule 3

R3(cfg-translation-rule)#rule 1 /^8012/ /14085552/

R3(cfg-translation-rule)#exit

R3(config)#voice translation-profile 801PSTN

R3(cfg-translation-profile)#translate alleged 3

Step 4: Actualize a Punch Associate for PSTN Fallback

Finally, the PSTN fallback punch associate will be created. Examples 7-30 and 7-31 appearance these

configurations for this example.

Example 7-30 Step 4—R1

R1(config)#dial-peer articulation 8022 pots

R1(config-dial-peer)#destination-pattern 8022...

R1(config-dial-peer)#port 0/0/0:23

R1(config-dial-peer)#preference 1

R1(config-dial-peer)#translation-profile approachable 802PSTN

Example 7-31 Step 4—R3

R3(config)#dial-peer articulation 8012 pots

R3(config-dial-peer)#destination-pattern 8012...

R3(config-dial-peer)#port 0/0/0:23

R3(config-dial-peer)#preference 1

R3(config-dial-peer)#translation-profile approachable 801PSTN

Note The PSTN punch associate has a alternative of 1; so it is the aftermost punch associate that will be used

when acquisition a alarm to San Jose. The alleged cardinal will be translated into the PSTN

routable architecture of 1408555XXXX afterwards the punch associate has been matched.