cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
706
Views
0
Helpful
5
Replies

CUCM 7.0

Eduardo AYALA
Level 1
Level 1

How can block a number on a particular extension?

2 Accepted Solutions

Accepted Solutions

If you mean PSTN -> IP Phone, this has been asked PLENTY of times before, PLEASE SEARCH for answers before posting.

Reject Calls
http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml#reject

Call Blocking Configuration Examples
http://www.cisco.com/en/US/customer/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml#con11

You need H323, no way to do this with MGCP.

HTH

java

If this helps, please rate

www.cisco.com/go/pdihelpdesk

HTH

java

if this helps, please rate

View solution in original post

I assume you mean you want to block calls for a particular number (or set of numbers) to a particular extension on your CUCM 7.0 network.  This can be done, but it cannot be done within CUCM.  CUCM does not offer any ability to filter calls based on Calling Number.  However, you can filter these calls on your voice gateway as they come into your voice network, assuming you are using an H.323 gateway.  This is a very good reason to use H.323 as the protocol for PSTN gateways, as MGCP does not allow you to do this.

Here's the procedure:

Step 1:  Create a translation rule.

From global config mode on the voice gateway, create a voice translation rule with the following syntax.

voice translation-rule 100          ------> You can use any number you want, instead of 100.

rule 1 reject /XXXXXXXXXX/     -------> Replace XXXXXXXXXX with the calling number you want to block.  Don't change the 1 on this line.

rule 2 reject /XXXXXXXXXX/     -------> You can also specify other numbers if there is more than 1 number to reject.

end

Step 2:  Create a translation-profile

From global config mode on the voice gateway, create a voice translation profile with the following syntax

voice translation-profile BLOCK-CALLS     ------->You can use whatever name you like

translate calling 100          ----------> This has to match the number you used in the voice transaltion-rule command.

end

Step 3:Apply the translation profile

Create a dial-peer unique to the called number you want to protect and apply the translation profile.

dial-peer voice 3000 voip

translation-profile outgoing BLOCK-CALLS      ----> This has to match the tranlation profile

destination-pattern XXXX                                ----> whatever the extension is

session target ipv4:

Then copy any other dial-peer commands you might use here.

It is important to note that even though the call is coming in from the PSTN to the CUCM, in this dial-peer the calls is considered an outgoing call because from the router's point of view, the call came in from the PSTN and is going out to the CallManager.

If you want to apply this block to all extensions, you could just apply the translation pattern as incoming on the voice-port of the PSTN interface.

Hope this helps,

Chris

View solution in original post

5 Replies 5

Jaime Valencia
Cisco Employee
Cisco Employee

You need to provide a good description if you want help

Do you want to block a phone from calling X phone??

Or X phone from calling someone???

HTH

java

If this helps, please rate

www.cisco.com/go/pdihelpdesk

HTH

java

if this helps, please rate

Thanks for the response.

If I have a user that is getting a call from someone who is harrasing her

she knows the number. Can I block it?

Does that make sense?

If you mean PSTN -> IP Phone, this has been asked PLENTY of times before, PLEASE SEARCH for answers before posting.

Reject Calls
http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml#reject

Call Blocking Configuration Examples
http://www.cisco.com/en/US/customer/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml#con11

You need H323, no way to do this with MGCP.

HTH

java

If this helps, please rate

www.cisco.com/go/pdihelpdesk

HTH

java

if this helps, please rate

I assume you mean you want to block calls for a particular number (or set of numbers) to a particular extension on your CUCM 7.0 network.  This can be done, but it cannot be done within CUCM.  CUCM does not offer any ability to filter calls based on Calling Number.  However, you can filter these calls on your voice gateway as they come into your voice network, assuming you are using an H.323 gateway.  This is a very good reason to use H.323 as the protocol for PSTN gateways, as MGCP does not allow you to do this.

Here's the procedure:

Step 1:  Create a translation rule.

From global config mode on the voice gateway, create a voice translation rule with the following syntax.

voice translation-rule 100          ------> You can use any number you want, instead of 100.

rule 1 reject /XXXXXXXXXX/     -------> Replace XXXXXXXXXX with the calling number you want to block.  Don't change the 1 on this line.

rule 2 reject /XXXXXXXXXX/     -------> You can also specify other numbers if there is more than 1 number to reject.

end

Step 2:  Create a translation-profile

From global config mode on the voice gateway, create a voice translation profile with the following syntax

voice translation-profile BLOCK-CALLS     ------->You can use whatever name you like

translate calling 100          ----------> This has to match the number you used in the voice transaltion-rule command.

end

Step 3:Apply the translation profile

Create a dial-peer unique to the called number you want to protect and apply the translation profile.

dial-peer voice 3000 voip

translation-profile outgoing BLOCK-CALLS      ----> This has to match the tranlation profile

destination-pattern XXXX                                ----> whatever the extension is

session target ipv4:

Then copy any other dial-peer commands you might use here.

It is important to note that even though the call is coming in from the PSTN to the CUCM, in this dial-peer the calls is considered an outgoing call because from the router's point of view, the call came in from the PSTN and is going out to the CallManager.

If you want to apply this block to all extensions, you could just apply the translation pattern as incoming on the voice-port of the PSTN interface.

Hope this helps,

Chris

Thanks Sir.

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: