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

Quick voice translation-rule help

I'm missing something here. I'm trying to create a rule that matches any number that starts with star followed by 7 digits and add a 1937 after the star.

I have the following. But it's just replacing the whole number. How do I correct this?

voice translation-rule 10001

rule 1 /^\*.......$/ /*1937/

ISR2901#test voice translation-rule 10001 *9999999

Matched with rule 3

Original number: *9999999      Translated number: *1937

Original number type: none          Translated number type: none

Original number plan: none          Translated number plan: none

1 Accepted Solution

Accepted Solutions

Chris Deren
Hall of Fame
Hall of Fame

* is a wild card, to use it as a character you need to do something like this:

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

You may need to tweak it slightly.

HTH,

Chris

View solution in original post

2 Replies 2

Chris Deren
Hall of Fame
Hall of Fame

* is a wild card, to use it as a character you need to do something like this:

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

You may need to tweak it slightly.

HTH,

Chris

Thanks! this helped