cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
299
Views
5
Helpful
3
Replies

Hopefully a simple translation-rule question...

dgoodridge
Level 1
Level 1

Hi,

I am trying to translate all 6 digit extensions within my building that begin with 3101 . I need to translate these to 012600 but without retaining any of the original characters. What string is required within the rule that replaces not appends?

For example if I use:

Translation-rule 1000

rule 0 3101.. 012600

the result is 01260001 not 012600 help!

3 Replies 3

travis-dennis_2
Level 7
Level 7

I think num-exp may accomplish what you want.

(config)#num-exp 3101... 012600

Have the number of dots after 3101 equal to the number of digits that would follow.

Hope this helps.

Please remember to rate all replies

Thanks, num-exp will certainly work as a global reference however I can't think of a way that this would efficiently integrate with the translation process.

I am pretty sure that it is possible with just these translation-rule specific wildcards;

' regular expression must be of the form ^(\^)?(\+)?([0-9,ABCD.*%?#]+)$ '

However I'm not sure which one or with what placement, and thats really what I am trying to find out.

voice translation-rule 1

rule 1 /^3101\(..\)/ /\012600/

voice translation-profile test

translate called 1

Try this.