Chapter 10: Digit Manipulation

Cisco Press

1 2 3 4 Page 4
Page 4 of 4
!Configure the router to block calls from the fax spam number
!Create the rule to reject 410-111-2222
Boise(config)#voice translation-rule 410
Boise(cfg-translation-rule)#rule 1 reject /4101112222/
!
!Create a translation profile, and associate that rule with it
Boise(config)#voice translation-profile BlockFax
Boise(cfg-translation-profile)#translate calling 410
!
!Apply the translation profile to the dial peer, incoming. Specify a disconnect cause
Boise(config)#dial-peer voice 99 pots
Boise(config-dial-peer)#incoming called-number .
Boise(config-dial-peer)#call-block translation-profile incoming BlockFax
Boise(config-dial-peer)#call-block disconnect-cause incoming call-reject
Boise(config-dial-peer)#direct-inward-dial
!
!Configure the router to route help desk calls based on the ANI
!First create a rule that will be used to translate the DNIS on calls from Miami 
Boise(config)#voice translation-rule 100
Boise(cfg-translation-rule)#rule 1 /\(.*\)/ /30148/
!
!Create a rule that will translate the DNIS on calls from Lima
Boise(cfg-translation-rule)#voice translation-rule 200
Boise(cfg-translation-rule)#rule 1 /\(.*\)/ /30149/ 
!
!Create translation profiles to translate the called numbers
Boise(config)#voice translation-profile Miami
Boise(cfg-translation-profile)#translate called 100
!
Boise(cfg-translation-profile)#voice translation-profile Lima
Boise(cfg-translation-profile)#translate called 200
!
!Apply the translation profiles to dial peers that will match the incoming ANI
Boise(config)#dial-peer voice 100 voip
Boise(config-dial-peer)#answer-address 221..
Boise(config-dial-peer)#translation-profile outgoing Miami
!
Boise(config-dial-peer)#dial-peer voice 200 voip
Boise(config-dial-peer)#answer-address 662[0-5].
Boise(config-dial-peer)#translation-profile outgoing Lima
!
!Create dial peers for the help desk numbers, pointing to the PBX
Boise(config)#dial-peer voice 30148 pots
Boise(config-dial-peer)#destination-pattern 30148
Boise(config-dial-peer)#port 0/0/0
!
Boise(config-dial-peer)#dial-peer voice 30149 pots
Boise(config-dial-peer)#destination-pattern 30149
Boise(config-dial-peer)#port 0/0/1
!
!Configure CLID to send only the main office number in calls to the PSTN
Boise(config-dial-peer)#dial-peer voice 9 pots
Boise(config-dial-peer)#clid network-number 2085550100 second-number strip
Boise(config-dial-peer)#destination-pattern 9T
Boise(config-dial-peer)#port 1/0:23
!
!On the same dial peer, allow exactly ten digits to be sent as called number 
Boise(config-dial-peer)#forward-digits 10

Review Questions

  1. Define digit manipulation.

  2. Of the digit manipulation techniques digit stripping, digit forwarding, digit prefixing, number expansion, and CLID, which are executed after the outbound dial peer is matched but before the numbers are transmitted?

  3. By default, POTS dial peers strip any outbound digits that explicitly match their destination pattern. What are two simple ways to prevent the router from stripping all the digits?

  4. When is a number expansion executed, and how can you test its action?

  5. Given the following voice translation rule, how would a dialed string of 913012345678 be translated?

    /^\(91\)301\(.......\)/ /1\2/
    
  6. Given the following voice translation rule, how would a dialed string of 913012345678 be translated?

    /^\(91\)301\(.......\)/ /\1700\2/
    

Copyright © 2007 Pearson Education. All rights reserved.

Related:

Copyright © 2007 IDG Communications, Inc.

1 2 3 4 Page 4
Page 4 of 4
The 10 most powerful companies in enterprise networking 2022