cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4963
Views
0
Helpful
6
Replies

Voice gateway - call block the calling number on sip interface

wilsonsant
Level 6
Level 6

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

6 Replies 6

Jonathan Schulenberg
Hall of Fame
Hall of Fame
The config looks alright and matches the documentation: https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html#con13

Verify that dial-peer 1001 is matched for the incoming call leg and that the calling number matches the pattern you have defined in translation-rule 90.

Is the "called" number in e164 format with + ?

If so then it would have to look like this............. rule 1 reject /\+XXXXXXXXX/

Please remember to rate useful posts, click on the stars below.

marina.kaminski
Level 1
Level 1

I believe you need to apply it to the POTS dial-peer 

 

https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html#con13

Call Blocking Specific Calling Numbers

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


alwayslearning
Level 1
Level 1

Did you figure this out? I am also trying to block a specific calling number and having trouble with it.

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.

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.