11-03-2015 01:32 PM - edited 03-17-2019 04:47 AM
Block a phone number from calling an extension.
Solved! Go to Solution.
11-03-2015 02:00 PM
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
11-03-2015 04:31 PM
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
11-03-2015 01:34 PM
Any help is really appreciated!
11-03-2015 01:42 PM
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.
Brandon
11-03-2015 01:46 PM
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
11-03-2015 02:00 PM
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
11-03-2015 02:06 PM
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
11-03-2015 03:46 PM
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
11-04-2015 09:25 AM
Thank you guys,
How about in a MGCP gateway?
11-04-2015 09:39 AM
https://supportforums.cisco.com/document/77241/technotes-how-block-incoming-calls-cucm-8x-based-ani-mgcp-gateway
Br,
nadeem Ahmed
11-04-2015 11:59 AM
Thanks for the document Nadeem!
Biyas
11-03-2015 04:31 PM
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
02-11-2020 08:20 AM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide