You cannot use a CCM for this you require a gateway for this . To configure incoming call blocking, define a translation rule with a reject keyword. For example
voice translation-rule 1
rule 1 reject /304156*/
Apply the rule to a translation profile for called, calling, or redirect-called numbers, such as
voice translation profile call_block_profile
translate calling 1
Include the translation profile within a dial peer definition. For example
dial-peer voice 111 pots
call-block translation-profile incoming call_block_profile
call-block disconnect-cause incoming invalid_number
In this example, the gateway blocks any incoming TDM (time-division multiplexing) call that
successfully matches inbound dial-peer 111 and has a calling number that starts with 304156. The
gateway also returns the disconnect cause "invalid number" to the source of the call. (Other
disconnect causes can be assigned i.e unassigned-number, user-busy, or call-rejected.)