Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

block certain incoming calling numbers

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

Re: block certain incoming calling numbers

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.

6 REPLIES

Re: block certain incoming calling numbers

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.

Community Member

Re: block certain incoming calling numbers

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

Community Member

Re: block certain incoming calling numbers

how can i do same result , when i use callmanager

Cisco Employee

Re: block certain incoming calling numbers

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

www.cisco.com/go/pdi
Community Member

Re: block certain incoming calling numbers

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.

Cisco Employee

Re: block certain incoming calling numbers

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

www.cisco.com/go/pdi
442
Views
5
Helpful
6
Replies
CreatePlease to create content