Truncate called number using translation rule

Unanswered Question
Nov 23rd, 2009
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Brandon Buffin Mon, 11/23/2009 - 08:21
User Badges:
  • Purple, 4500 points or more

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 Mon, 11/23/2009 - 15:08
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

rule 1 /^./ //


Remember: what is unmatched, stays unchanged.

Actions

This Discussion