12-24-2021 02:01 PM
I recently installed a VOIP router in Haiti, the carrier only supports sending calls with local ANI, if international is ANI passed you are billed at standard international rates coming into the island, I would like to know if there is a way I can create a translation rule to say if I see +509 XXX XXXX ani for a call pass, but for any other area code drop, send something like a 404 or something.
01-19-2022 11:45 PM
Please, check this article
https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html
You can combine tranlsation rule with call barring.
Something similar to this:
voice translation-rule 1
rule 1 reject /^[0-4]/
rule 2 reject /^[6-9]/
rule 3 reject /^5[1-9]/
rule 3 reject /^50[0-8]/
!-- explanation
!-- rule 1 reject /^[0-4]/ block any number with 0,1,2,3,4 at the start
!-- rule 2 reject /^[6-9]/ block any number with 6,7,8,9 at the start
!-- rule 3 reject /^5[1-9]/ block any number with 51,52,53 ... 59 at the start
!-- rule 3 reject /^50[0-8]/ block any number with 500,501,502 ... 508 at the start
!-- adjust the number format according to your situation
voice translation-profile BLOCKALL_EXCEPT_509_PREFIX
translate calling 1
and finally you must apply the translation rule to your dial peer, something similar to this:
dial-peer voice xx voip
call-block translation-profile incoming BLOCKALL_EXCEPT_509_PREFIX
call-block disconnect-cause incoming unassigned-number
Regards.
02-14-2022 04:20 PM
Thank you for your response, I tried this config on my Router however it doesn't seem to be blocking any CLID, can you advise where I am going wrong. The rule is applied to the Pots Port associated with the provider PRI
voice translation-rule 100
rule 1 reject /^[0-4]/
rule 2 reject /^[6-9]/
rule 3 reject /^5[1-9]/
rule 3 reject /^50[0-8]/
rule 6 reject /^87[7-9]/
!
voice translation-profile BLOCKALL_EXCEPT_509_PREFIX
translate calling 100
dial-peer voice 2 pots
description Outbound PRI
call-block translation-profile incoming BLOCKALL_EXCEPT_509_PREFIX
call-block disconnect-cause incoming unassigned-number
preference 1
max-conn 4
destination-pattern 509T
no digit-strip
port 0/1/0:23
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