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

Truncate called number using translation rule

tpaprotny
Level 1
Level 1

I have a Cisco 2851 router and I need to chop off the first digit in the incoming

called number string (e,g 272109 translate to 72109).

I have tried using rule 1 /^.*\(..\)/ /\1/ but I cannot get this to work, keeps saying it is an incomplete command.

Can anyone help please

2 Replies 2

Brandon Buffin
VIP Alumni
VIP Alumni

Are the numbers always the same length? If so, you can use the following rule to keep the last 5 digits.

voice translation-rule 1

rule 1 /^.*\(.....\)/ /\1/

Hope this helps.

Brandon

paolo bevilacqua
Hall of Fame
Hall of Fame

rule 1 /^./ //

Remember: what is unmatched, stays unchanged.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: