cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
852
Views
5
Helpful
6
Replies

block certain incoming calling numbers

olhcc
Level 1
Level 1

I have read the other posts about blocking incoming calling numbers. In our case, it is due to a restraining order filed by one of our employees.

I have configured the following on our 2811 running 12.4 SPSERVICES IOS:

!

voice translation-rule 1

rule 1 /^./ //

!

voice translation-rule 2

rule 1 reject /5045554567/

rule 2 reject /5045555678/

!

!

voice translation-profile 11

translate called 1

!

voice translation-profile call_block

translate calling 2

!

!

!

voice-port 0/0/0:23

translation-profile incoming call_block

!

voice-port 0/0/1:23

translation-profile incoming call_block

!

!

dial-peer voice 20 voip

call-block translation-profile incoming call_block

call-block disconnect-cause incoming call-reject

destination-pattern [1-9]..$

session target ipv4:x.x.x.x

incoming called-number .

dtmf-relay h245-alphanumeric

codec g711ulaw

!

dial-peer voice 30 voip

call-block translation-profile incoming call_block

call-block disconnect-cause incoming call-reject

destination-pattern [1-9]..$

session target ipv4:x.x.x.x

incoming called-number .

dtmf-relay h245-alphanumeric

codec g711ulaw

!

I have obviously changed the numbers that are blocked. To test, I added my cell phone number as rule 2, but I am still able to call. Can anybody tell me what is missing out of my config? Thanks in advance.

1 Accepted Solution

Accepted Solutions

allan.thomas
Level 8
Level 8

You should apply the translation-profile to the incoming call-leg, this will usually be the pots dial-peer which is used to match the incoming-called-number:-

dial-peer voice xy pots

call-block translation-profile incoming call_block

incoming-called-number .

direct-inward-dial

The VoIP dial-peer in your case will be the outgoing call-leg.

Hope this helps.

Allan.

Pls rate helpful posts.

View solution in original post

6 Replies 6

allan.thomas
Level 8
Level 8

You should apply the translation-profile to the incoming call-leg, this will usually be the pots dial-peer which is used to match the incoming-called-number:-

dial-peer voice xy pots

call-block translation-profile incoming call_block

incoming-called-number .

direct-inward-dial

The VoIP dial-peer in your case will be the outgoing call-leg.

Hope this helps.

Allan.

Pls rate helpful posts.

Thanks allan, I indeed had everything assigned to the wrong dial-peer.

neoxbusnext
Level 1
Level 1

how can i do same result , when i use callmanager

you cannot do this with just CUCM, it's mandatory to do it on H323 GWs. in case you ask, if you have MGCP no go, H323 is the only way

if you have CUCM with H323 follow the same instructions, plenty on NetPro if you look using the search option

HTH

java

if this helps, please rate

HTH

java

if this helps, please rate

Dear java

I would like to know that how can I filter calls by Calling number when that call forward from Gatekeeper (not have H323 or IPIPGW)

Call flow : 1. PhoneA(4599) press 83190016627228393

2. CallmanagerA strip 8 with Called number , add prefix 51 into Calling number then send 3190016627228393 to Gatekeeper

3. Gatekeeper forward all digit to CallmanagerB

4. CallmanagerB Strip 31 form Called number and send to PSTN with MGCP gateway .

5. CDR detail show: 514599 dial to 0016627228393

In this system have many callmangers and use Gatekeeper, but I want to allow some Callmanagers can call to PSTN with international call.

For all callmanagers call between clusters that use same Partition and same CSS to allow call from Gatekeeper.

as i already mentioned, cucm cannot do this. you need to do this on H323

it would be easier to block calls using CSS if you want the whole callmanager not be able to make intl calls

HTH

java

if this helps, please rate

HTH

java

if this helps, please rate
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: