01-02-2019 04:40 AM
Hi Guys,
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
Thanks,
Regards,
Wilson
01-02-2019 05:40 AM
01-02-2019 07:50 AM
Is the "called" number in e164 format with + ?
If so then it would have to look like this............. rule 1 reject /\+XXXXXXXXX/
01-10-2019 02:35 AM
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
05-05-2023 10:47 AM
Did you figure this out? I am also trying to block a specific calling number and having trouble with it.
05-07-2023 11:13 PM
I would recommend to open a new post about your problem. This thread is already some years old and I don't think you won't get any reply by the original poster.
05-08-2023 05:37 AM
I did see that its an older post. I was just hoping to get a response since I was having the same issue. I did figure it out. I was having trouble because the calls were using a dial peer I did not expect. Now that I have the translation profile applied to the appropriate dial peer it's working.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide