Information Technology Reference
In-Depth Information
Thankfully, Cisco does not leave you “hoping” that the translation rule will work properly
after it is applied to the interface. You can use the test voice translation-rule command
from privileged mode to test the rules you create before you apply them, as shown in
Example 6-22.
Example 6-22
Testing Translation Rules
HQ_RTR# test voice translation-rule 1 6546
Matched with rule 1
Original number: 6546 Translated number: 5546
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
HQ_RTR# test voice translation-rule 1 6677
Matched with rule 1
Original number: 6677 Translated number: 5677
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Example 6-22's output indicates the translation rule tests successfully. 6546 is translated
to 5546 and 6677 is translated to 5677.
Next, you need to take the voice translation rule and assign it to a translation profile. The
translation profile designates whether the translation rule will change the calling (caller ID
or ANI) or called (dialed number or DNIS) information. Example 6-23 assigns translation
rule 1 to a translation profile called CHANGE_DID.
Example 6-23
Assigning Translation Rules to a Translation Profile
HQ_RTR(config)# voice translation-profile ?
WORD Translation profile name
HQ_RTR(config)# voice translation-profile CHANGE_DID
HQ_RTR(cfg-translation-profile)# translate ?
called Translation rule for the called-number
calling Translation rule for the calling-number
redirect-called Translation rule for the redirect-number
redirect-target Translation rule for the redirect-target
HQ_RTR(cfg-translation-profile)# translate called ?
<1-2147483647> Translation rule tag
HQ_RTR(cfg-translation-profile)# translate called 1
Example 6-23 assigns translation rule 1 as a called (dialed number) translation. Because
the scenario requires you to change the DID information, this is the proper assignment.
Assigning the translation rule as a calling translation would change the caller ID of a per-
son calling into the organization.
The last step is to assign the translation profile. The following example assumes that the
router is using POTS dial peer 100 as the inbound dial peer for calls coming from the PSTN:
HQ_RTR(config)# dial-peer voice 100 pots
HQ_RTR(config-dial-peer)# translation-profile incoming CHANGE_DID
 
Search WWH ::




Custom Search