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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Blocking incoming calls using ANI

Is there a way to block incoming calls in CCM 4.1 using ANI as the trigger?


Re: Blocking incoming calls using ANI


You can not block calls by ANI directly in CallManager.

You could use Cisco IP/IVR or IPCC Express to do it, or if you are using H.323 Cisco gaetways, take a look to this post:

Hope this helps,

Juan Luis

New Member

Re: Blocking incoming calls using ANI

Hi Juan,

So you mentioned that we can block the incoming calls using ANI on IPCC.  do you have any instruction on how to do it?




Re: Blocking incoming calls using ANI


For simplicity sake use the dial-peers if this is an H323 gateway with the call-block statement as previously noted..

If you really feel like you want to do it in IPCC, it depends on whether you are using UCCX or UCCE.

For UCCX you would use the "Get Call Contact Info" step to grab the ANI.  Create an if statement and send the true leg to a terminate step - or if you want to mess with them send it to a queue that no one ever logs into so they sit in limbo ; ^))

On UCCE you would do a similar match using the "CLID" call routing node and then send it to an "End" node (I think - it's been awhile).

If you aren't familiar with scripting for these products you might want to read the configuration guides and other documentation.  UCCX isn't bad to pick up, UCCE is a bit more complicated.



New Member

Re: Blocking incoming calls using ANI

Hi Art,

Thank you for your reply,

Do you have the sample scripts for "Get Call Contact Info" and the "if" statement?

For "Get Call Contact Info", I have created:

- New Variable: (with the phone number that i want to block, example:) xxx-yyy-zzzz with the name "BLOCK"

- "Get Call Contact Info" script and set the variable to "BLOCK"

For the "if" statement:

I have difficulty creating the "If then" statement and set the condition to it will match the "BLOCK" variable/phone number:

However i have done these

- I have created the if it is TRUE, it will Goto "End Call"

- I have created the if it is FALSE, it will Goto "Menu"

Can you help?



Re: Blocking incoming calls using ANI

If using a h323 gateway you may use call-block command to create call blocking rules.