Mon 18 Aug 2008
Using Voice Translation Rules to Block Numbers
Posted by James under CCIE , Cisco , Cisco VOIP , GNS3 , Linux -Most of us have used voice translations rules for digit manipulation to modify both ANI and DNIS. Did you know that you can also block calls based on ANI?
To block a call based on calling number (ANI):
1. Create a voice translation rule and add the numbers you want to block.
BR1(config)#voice translation-rule 1
BR1(cfg-translation-rule)#rule 1 reject /3234441234/
BR1(cfg-translation-rule)#rule 2 reject /3234442345/
BR1(cfg-translation-rule)#rule 3 reject /5155556*/
2. Create a voice translation profile.
BR1(config)#voice translation-profile reject_ANI
BR1(cfg-translation-profile)#translate calling 1
3. Apply the translation profile to your inbound dial-peer.
dial-peer voice 1 pots
Incoming called-number .
direct-inward-dial
port 0/2/0:23
call-block translation-profile incoming reject_ANI
Voice translation rules are a very powerful tool and can seem intimidating at first, but once you understand them and become comfortable with using them, they are an invaluable tool for any Cisco Voice Engineer.

(7 votes, average: 4.14 out of 5)







September 5th, 2008 at 12:39 pm
Informative post James, I’m currently working on this topic on my way to finish the GWGK SG. Have some struggle though, but can still manage. I been doing some research on this topic and bumped to your post. Thanks and hope to hear from you more on your quest to CCIE voice.
Carl
carlproject.com
September 13th, 2008 at 10:29 am
But how to reject ALL calling numbers except e.g. 555444?
September 21st, 2008 at 5:47 pm
Janek,
How about this?
voice translation-rule 20
rule 1 /555444\(….\)/ /\0/
rule 2 reject //
voice translation-profile reject_ANI
translate calling 20
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
call-block translation-profile incoming reject_ANI
November 12th, 2008 at 5:37 am
Hi,
I’have need your help ! How do I connect the router between them and switch? and where to find the IOS that are delivered with the GNS3? and how to load the download at Cisco IOS in GNS3?
Many thanks for your help,
Ben