The following is an example of how to setup call blocking based off of incoming Caller's ANI.
In this example, my voice enviornment consist of an 8.6 CUCM Pub with 3 Subscribers. I have three cisco 2911 h.323 voice gateways with 1 PRI each. I put together this simple 3 step process based off of a Cisco Configuration guide. I tested it on my cell phone and a coupe of others and it worked great. Here are the three steps:
Block Incoming Calls based off of ANI.
The following configuration must be applied to each voice gateway. It is done in basically 3 steps:
1. Create a Translation Rule.
Within the translation rule you will use the reject command followed by the pattern you wish to reject. In this case we use the entire phone number.