CUCM 7.0

Answered Question
Feb 8th, 2010
User Badges:

How can block a number on a particular extension?

Correct Answer by CHRIS CHARLEBOIS about 7 years 3 months ago

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

Correct Answer by Jaime Valencia about 7 years 3 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Jaime Valencia Mon, 02/08/2010 - 12:03
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    2011

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

Eduardo AYALA Mon, 02/08/2010 - 12:09
User Badges:

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?

Correct Answer
Jaime Valencia Mon, 02/08/2010 - 12:12
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    2011

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

Correct Answer
CHRIS CHARLEBOIS Mon, 02/08/2010 - 12:15
User Badges:
  • Silver, 250 points or more

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

Actions

This Discussion