Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Truncate called number using translation rule

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

Re: Truncate called number using translation rule

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

Hall of Fame Super Gold

Re: Truncate called number using translation rule

rule 1 /^./ //

Remember: what is unmatched, stays unchanged.

464
Views
0
Helpful
2
Replies