cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
196
Views
0
Helpful
1
Replies

Voice translation-rule work not as need.

peraocompany
Level 1
Level 1

  Hello i need some help for create voice translation-rule, for converting:

1234567 -> 81111234567 (....... -> 8111.......)

and

71111234567 ->81111234567 (7..........-> 8..........)

I write rules^

voice translation-rule 1

rule 1 /^\(7\)\(..........$\)/ /8\2/

rule 2 /^\([1-9]......$\)/ /8111\1/ /

I do test

test voice translation-rule 1 7361111

Matched with rule 2

Original number: 7361111        Translated number: 81117361111

Original number type: none      Translated number type: none

Original number plan: none      Translated number plan: none

IPT-perao#test voice translation-rule 1 71117361111

Matched with rule 2

Original number: 71117361111    Translated number: 81117361111

Original number type: none      Translated number type: none

Original number plan: none      Translated number plan: none

Loks good but if i try dial number on Phone (71117361111) phone math shortest rule (rule 2 /^\([1-9]......$\)/ /8111\1/ /)

and dial 71117361

If i delete rule 2 phone match rule1 correct.

1 Reply 1

paolo bevilacqua
Hall of Fame
Hall of Fame

If you are calling from a CME phone that is normal, rule matching happens digit by digit (overlap hence the first matching rules is used. This behavoir connot be changed.

So you will need to write the rule based on the actual digits dialed, not on number length, that cannot be know in advance.