cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1116
Views
5
Helpful
3
Replies

blocking of nusiance calls using translation rules

yeow28
Level 1
Level 1

how can i block specific incoming calls due to them being prank/nuisance calls ?

i was told that it can be done using translation rules

 

eg, if i need to block 67823456 and 92909878

how should i configure the translation rules 

 

i currently have the following translation rules in my voice gateway 

do i add rule 5 in translation-rule 4 ??

 

voice translation-rule 1
!
voice translation-rule 2
rule 1 // /9/
!
voice translation-rule 3
rule 1 /^9/ //
!
voice translation-rule 4
rule 1 /^81\(.*\)/ /+65665381\1/
rule 2 /^665381\(.*\)/ /+65665381\1/
rule 3 /^665382\(.*\)/ /+65665382\1/
rule 4 /^620619\(.*\)/ /+65620619\1/

 

1 Accepted Solution

Accepted Solutions

In my opinion if you want to configure something then you might as well block rather than redirect to voicemail.

You can block on the gateway by creating a specific form of translation rule in the form ..

voice translation-rule 20
 rule 1 reject /01234567890/
voice translation-profile BLOCK-CALLING
 translate calling 20

And apply to your inbound PSTN dial peer

dial-peer voice 2 voip
 call-block translation-profile incoming BLOCK-CALLING
 call-block disconnect-cause incoming unassigned-number

You can test your wildcards and regular expressions with the "test voice translation-rule" command

View solution in original post

3 Replies 3

George Sotiropoulos
Cisco Employee
Cisco Employee

You may read the following thread:

https://community.cisco.com/t5/ip-telephony-and-phones/block-internal-calls-on-cme/td-p/2328387

G

Please Rate Posts (by clicking on Star) and/or Mark Solutions as Accepted, when applies

this links are for internal calls and it seems like the links are broken.

i am more interested in blocking incoming external calls.

is it advisable to forward these calls to voice mail instead of dropping them 

In my opinion if you want to configure something then you might as well block rather than redirect to voicemail.

You can block on the gateway by creating a specific form of translation rule in the form ..

voice translation-rule 20
 rule 1 reject /01234567890/
voice translation-profile BLOCK-CALLING
 translate calling 20

And apply to your inbound PSTN dial peer

dial-peer voice 2 voip
 call-block translation-profile incoming BLOCK-CALLING
 call-block disconnect-cause incoming unassigned-number

You can test your wildcards and regular expressions with the "test voice translation-rule" command