cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
952
Views
10
Helpful
4
Replies

What does this voice translation-rule mean?

Byoungik Ahn
Level 1
Level 1
voice translation-rule 2
 rule 1 /^\+25/ /0412345/
 
Does this mean that all numbers before number 5 should be changed to 0412345?
2 Accepted Solutions

Accepted Solutions

Georgios Fotiadis
VIP Alumni
VIP Alumni

It means for any number starting with +25, that will be replaced with 0412345. For example:

+25 123... will be translated to 0412345 123...

 

You can always verify your translation rules in CLI:

test voice translation-rule 1 <number>

Georgios
Please rate if you find this helpful.

View solution in original post

No, they are not. But the first one also has \+2.

The \+ means character + itself. Then you also have digit 2.

Rule /^5/ /0412345/ mean all numbers starting with '5'; that 5 (since it is matched) will be replaced with 0412345.

This will clear things out for you: Voice Translation Rules

Georgios
Please rate if you find this helpful.

View solution in original post

4 Replies 4

Georgios Fotiadis
VIP Alumni
VIP Alumni

It means for any number starting with +25, that will be replaced with 0412345. For example:

+25 123... will be translated to 0412345 123...

 

You can always verify your translation rules in CLI:

test voice translation-rule 1 <number>

Georgios
Please rate if you find this helpful.

rule 1 /^\+25/ /0412345/ and rule 1 /^5/ /0412345/ is not same?

No, they are not. But the first one also has \+2.

The \+ means character + itself. Then you also have digit 2.

Rule /^5/ /0412345/ mean all numbers starting with '5'; that 5 (since it is matched) will be replaced with 0412345.

This will clear things out for you: Voice Translation Rules

Georgios
Please rate if you find this helpful.

Thank you for your kind reply...