04-22-2016 01:16 PM - edited 03-17-2019 06:40 AM
I'm trying to understand this translation-profile that I have setup on my Voice Gateway router. I didn't set up this rule. It was setup by a person who worked before me. It looks like the intention is to block toll fraud. Can someone explain this to me? I'm little confused. Thanks.
!
voice translation-rule 1
rule 1 reject /^$/
rule 2 reject /^9....+/
rule 3 reject // type international
!
voice translation-rule 2
rule 1 reject /.*/
!
!
voice translation-profile Block-All
translate called 2
!
voice translation-profile Block-Toll-Fraud
translate called 1
dial-peer voice 10 pots
call-block translation-profile incoming Block-Toll-Fraud
incoming called-number ^....$
direct-inward-dial
port 0/0/0:23
dial-peer voice 30 pots
call-block translation-profile incoming Block-All
incoming called-number .
direct-inward-dial
port 0/0/0:23
Solved! Go to Solution.
04-22-2016 06:11 PM
Hi Pete
You can try hands on and see what the number is being translated to.
------>test voice translation-rule 1 { type the number}.
What i understand is below-
Voice translation rule 1
rule 1 reject /^$/ >>>>>>>>>Rejecting any call with no/null digits
rule 2 reject /^9....+/>>>>>>>>>>>> rejecting any number beginging with call 9
rule 3 reject // type international >>>>>>>rejecting any number which is being sent as type international by service provider
voice translation-rule 2
rule 1 reject /.*/ >>>>>>>>>>>>rejecting all incoming numbers
!
you can go through this to learn about expression and examples. you can also use expression editor and play with it.
Regards
Deepak
04-22-2016 06:11 PM
Hi Pete
You can try hands on and see what the number is being translated to.
------>test voice translation-rule 1 { type the number}.
What i understand is below-
Voice translation rule 1
rule 1 reject /^$/ >>>>>>>>>Rejecting any call with no/null digits
rule 2 reject /^9....+/>>>>>>>>>>>> rejecting any number beginging with call 9
rule 3 reject // type international >>>>>>>rejecting any number which is being sent as type international by service provider
voice translation-rule 2
rule 1 reject /.*/ >>>>>>>>>>>>rejecting all incoming numbers
!
you can go through this to learn about expression and examples. you can also use expression editor and play with it.
Regards
Deepak
04-25-2016 11:15 AM
Thanks for your reply Deepak.
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