02-26-2004 07:34 AM - edited 03-13-2019 04:00 AM
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!
02-26-2004 11:29 AM
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
02-27-2004 01:30 AM
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.
02-27-2004 08:13 AM
voice translation-rule 1
rule 1 /^3101\(..\)/ /\012600/
voice translation-profile test
translate called 1
Try this.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide