I need to block the specific number in the inbound. I apply the configuration below, but, didn´t worked. Any have idea about this:
voice translation-rule 90
rule 1 reject /XXXXXXXXXX/
voice translation-profile call_block
translate calling 90
dial-peer voice 1001 voip
call-block translation-profile incoming call_block
call-block disconnect-cause incoming call-reject
incoming called-number XXXXXXXXXX
Is the "called" number in e164 format with + ?
If so then it would have to look like this............. rule 1 reject /\+XXXXXXXXX/
I believe you need to apply it to the POTS dial-peer
Configure a voice translation rule to block the desired calling number you want to block. This example uses 9193927393.
voice translation-rule 1 rule 1 reject /9193927393/ !--- Matches the defined number string and rejects the call. ! !--- Apply the rule to a translation profile for the calling number. !--- You could also reject based on called or redirect-called numbers. ! voice translation-profile call_block translate calling 1 !--- Invokes voice translation rule 1 in order to determine !--- which calls to reject based on the calling number. ! !--- Include the translation profile within a dial peer definition. ! dial-peer voice 100 pots call-block translation-profile incoming call_block !--- Invokes the voice translation profile “call_block” on !--- inbound POTS calls that match this peer !--- in order to determine which calls to reject. call-block disconnect-cause incoming call-reject incoming called-number !--- Matches this peer for all inbound POTS calls. port 1/1:23