cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3490
Views
6
Helpful
11
Replies

Block incoming call to an extension from a number

Mohamed Biyas
Level 1
Level 1

Block a phone number from calling an extension.

2 Accepted Solutions

Accepted Solutions

you can simply create translation and apply on the dial-peer or the voice-port based on calling number

here is the set of example

voice translation-rule 1
 rule 1 reject /9193927393/      

!--- Matches the defined number string and rejects the call.

!

!--- Apply the rule to a translation profile for the calling number. 
!--- You could also reject based on called or redirect-called numbers.

!
voice translation-profile call_block
 translate calling 1      

!--- Invokes voice translation rule 1 in order to determine 
!--- which calls to reject based on the calling number.

!

!--- Include the translation profile within a dial peer definition.

!
dial-peer voice 100 pots
 call-block translation-profile incoming call_block      

!--- Invokes the voice translation profile “call_block” on 
!--- inbound POTS calls that match this peer 
!--- in order to determine which calls to reject.

 call-block disconnect-cause incoming call-reject
 incoming called-number       

!--- Matches this peer for all inbound POTS calls.

 port 1/1:23
Br, Nadeem Please rate all useful post.

View solution in original post

Biyas,

You will need to match the incoming call on called number and then use a translation rule to reject the call based on caller ID. So, you will need a dial peer for this particular DID/extension separate from your catch-all dial peer. Something like:

voice translation-rule 1
 rule 1 reject /1112223456/ -- this is the calling number

!
voice translation-profile call_block
 translate calling 1     

!
dial-peer voice 100 pots
 call-block translation-profile incoming call_block
 call-block disconnect-cause incoming call-reject
 incoming called-number 1112227890 -- this is the called DID
 port 1/1:23

Brandon

View solution in original post

11 Replies 11

Mohamed Biyas
Level 1
Level 1

Any help is really appreciated!

Depends on your scenario. Do you want to block an incoming call from the PSTN? Are you using an H.323 gateway or MGCP? If H.323, you can block using a translation rule. See the following link.

http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html#con13

Brandon

Thanks Brandon!

Incoming call is from PSTN. Yes, we are using a H.323 gateway. 

Is the translation rule for single PSTN number to stop reaching from a single extension?

Biyas

you can simply create translation and apply on the dial-peer or the voice-port based on calling number

here is the set of example

voice translation-rule 1
 rule 1 reject /9193927393/      

!--- Matches the defined number string and rejects the call.

!

!--- Apply the rule to a translation profile for the calling number. 
!--- You could also reject based on called or redirect-called numbers.

!
voice translation-profile call_block
 translate calling 1      

!--- Invokes voice translation rule 1 in order to determine 
!--- which calls to reject based on the calling number.

!

!--- Include the translation profile within a dial peer definition.

!
dial-peer voice 100 pots
 call-block translation-profile incoming call_block      

!--- Invokes the voice translation profile “call_block” on 
!--- inbound POTS calls that match this peer 
!--- in order to determine which calls to reject.

 call-block disconnect-cause incoming call-reject
 incoming called-number       

!--- Matches this peer for all inbound POTS calls.

 port 1/1:23
Br, Nadeem Please rate all useful post.

Thanks Nadeem, Here requirement is that client needs to block a particular cell# from reaching an extension. Is it possible with the above translation rule?

Biyas

the above rule will block the caller to calling to your phone system to any extensions. If you have CUCM where you can achieve this requirement . All you need to play around CSS and Partitions. Here is some reference link

https://supportforums.cisco.com/document/77241/technotes-how-block-incoming-calls-cucm-8x-based-ani-mgcp-gateway

https://communities.cisco.com/message/84995

Br, Nadeem Please rate all useful post.

Thank you guys,

How about in a MGCP gateway?

https://supportforums.cisco.com/document/77241/technotes-how-block-incoming-calls-cucm-8x-based-ani-mgcp-gateway

Br,

nadeem Ahmed

Br, Nadeem Please rate all useful post.

Thanks for the document Nadeem!

 

Biyas

Biyas,

You will need to match the incoming call on called number and then use a translation rule to reject the call based on caller ID. So, you will need a dial peer for this particular DID/extension separate from your catch-all dial peer. Something like:

voice translation-rule 1
 rule 1 reject /1112223456/ -- this is the calling number

!
voice translation-profile call_block
 translate calling 1     

!
dial-peer voice 100 pots
 call-block translation-profile incoming call_block
 call-block disconnect-cause incoming call-reject
 incoming called-number 1112227890 -- this is the called DID
 port 1/1:23

Brandon

Hi,

 

There are something for CUCM?

 

I have configured a filter and its works fine but this filter block all call for calling number X.

I need block only if the call go to specific extension.

 

Its Possible?