block certain incoming calling numbers

Answered Question
Nov 20th, 2008

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.

I have this problem too.
0 votes
Correct Answer by allan.thomas about 8 years 2 weeks ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
allan.thomas Thu, 11/20/2008 - 09:51

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.

olhcc Thu, 11/20/2008 - 10:08

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

Jaime Valencia Mon, 12/01/2008 - 22:05

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

neoxbusnext Tue, 12/02/2008 - 00:19

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.

Jaime Valencia Tue, 12/02/2008 - 04:52

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

Actions

This Discussion