cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
413
Views
0
Helpful
3
Replies
Frequent Contributor

Voice gateway - call block the calling number on sip interface

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

Everyone's tags (1)
3 REPLIES 3

Re: Voice gateway - call block the calling number on sip interface

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.
Participant

Re: Voice gateway - call block the calling number on sip interface

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.

Re: Voice gateway - call block the calling number on sip interface

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


CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards