cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays
442
Views
15
Helpful
6
Replies

Blocking one Incoming Number in CISCO CME

Hi

I would like to block incoming call from 1-2 number, i tried creating a rule to reject but not working...extracts of my rules are give below, am I missing something here?

 

voice translation-rule 2
rule 1 some old rules.....
rule 2 some old rules.....
rule 3 some old rules.....
rule 4 some old rules.....

**this is the rule i added***
rule 5 reject /050********my blocking number goes here/

 

voice translation-profile INCOMING
translate called 2
!
voice translation-profile OUTGOING
translate calling 1

 

dial-peer voice 777 pots
description **INCOMING DIAL-PEER**
translation-profile incoming INCOMING
incoming called-number .
direct-inward-dial
port 0/1/0:15

 

 

6 REPLIES 6
Roger Kallberg
VIP Advisor

Your configuration is not correct. Have a look at the block call part in this excellent document, In Depth Explanation of Cisco IOS and IOS-XE Call Routing - Cisco

IMO It's by far the best and most comprehensive document about how dial-peer matching and number modifications can be made that is currently available.

Please rate all useful posts

Thanks Roger. 

 

So I can apply those all-block translation-profile incoming CALLBLOCK within my existing dial-peer, right?



 

Yes you can do it on your existing dial-peer. Based from the referenced document and your shared information you'll do something like this.

voice translation-rule 164
 rule 1 reject /8675309/ !Number that you want to block
!
voice translation-profile CALLBLOCK
 translate calling 164
!
dial-peer voice 777 pots
 description **INCOMING DIAL-PEER**
translation-profile incoming INCOMING
 call-block translation-profile incoming CALLBLOCK
call-block disconnect-cause incoming invalid-number
incoming called-number .
direct-inward-dial
port 0/1/0:15

To test/verify this you'll use this command.

test voice translation-rule 164 8675309

Should give you this result.
8675309 blocked on rule 1

 

Please rate all useful posts

Thanks Roger I will try this...

Nithin Eluvathingal
VIP Advocate

I hope you are trying to block call based on the calling number in that case your profile should be as below.

 

voice translation-profile INCOMING
translate calling 2

 

 

=>>>If this answered your question, please click "ACCEPT AS SOLUTION"<<<=
=>>>If you find this response useful, please mark it as "HELPFUL"<<<=

Thanks Nithin for your help

Content for Community-Ad

Spotlight Awards 2021