cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1325
Views
0
Helpful
2
Replies

Translation-rule

Peter Kim
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Deepak Mehta
VIP Alumni
VIP Alumni

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.

http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html

Regards

Deepak

View solution in original post

2 Replies 2

Deepak Mehta
VIP Alumni
VIP Alumni

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.

http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html

Regards

Deepak

Thanks for your reply Deepak.