07-09-2024 06:04 AM
Good morning,
we are attempting to block certain numbers from our CUBE.
Here are examples of the numbers we are getting multiple time throughout the course of the day.
+971523201496
+971521294061
+971523198746
The constant digits are the first 5, (+97152)
I have limited experience with voice translation rules so I am wondering if anyone could tell me if the following would block the above incoming numbers
voice translation-rule 3
rule 1 reject /^97152/
voice translation-profile BLOCK
translate calling 3
dial-peer voice 2001 voip
call-block translation-profile incoming BLOCK
call-block disconnect-cause incoming call-reject
Thank you
07-09-2024 06:17 AM
This is well described in this post. https://community.cisco.com/t5/collaboration-knowledge-base/block-incoming-calls-based-off-of-ani-incoming-or-originating/ta-p/3129236
I would consider changing your match part to this to match the plus as well.
voice translation-rule 3
rule 1 reject /^\+97152.*/
07-09-2024 06:21 AM
07-09-2024 06:30 AM
The Rule you created will not block those calls since the string starts with the + and your /^97152/ means "starts with 97152" which the string does not. You also have to include the + but will need to provide the escape character of \ before the + as it is both a wildcard and a digits. So...:
rule 1 reject /^\+97152/
Maren
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