How to block outgoing ANI:
---Configure a voice translation rule to null the ani:
voice translation-rule 8
rule 1 /^.*/ //
---Invokes voice translation rule
voice translation-profile blockani
translate calling 8
---Invokes the voice translation profile on outgoing dialpeer:
dial-peer voice 84007 pots
translation-profile outgoing blockani
destination-pattern 74007
port 0/1/0:23
forward-digits 4
Reject call with no caller id:
---Configure a voice translation rule to block the call for no caller id:
voice translation-rule 7
rule 1 reject /^$/
---Apply the rule to a translation profile for the calling number.
--- You could also reject based on called or redirect-called numbers.
---Invokes voice translation rule 7 in order to determine which calls to reject based on the calling number.
voice translation-profile block
translate calling 7
---Invokes the voice translation profile “call_block” on inbound POTS calls that match this peer in order to determine which calls to reject.
dial-peer voice 702 pots
call-block translation-profile incoming block
incoming called-number .T
no digit-strip
direct-inward-dial