cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1257
Views
0
Helpful
3
Replies

Voice Translation rule understanding

paulavts1
Level 1
Level 1

Hi All,

Can someone direct me to a good source which describes voice translation rules, or help me understand the following rules:

voice translation-rule 1

rule 1 /90/ /0/

!

voice translation-rule 2

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

!

voice translation-rule 3

rule 1 /^26\(....\)/ /\1/

!

voice translation-rule 4

rule 1 /.*/ /8208/

!

voice translation-rule 5

rule 1 /^26\(....\)/ /\1/

!

voice translation-rule 6

rule 1 /^\(.*\)/ /7\1/

!

voice translation-rule 9

rule 1 /^999$/ /999/

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

Thank you in advance .

Paul

2 Accepted Solutions

Accepted Solutions

Joseph Martini
Cisco Employee
Cisco Employee

Here's a good guide:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

As for the rules, the first part is what to match, the second is what to translate to. 

rule 1: match 90 anywhere change it to 0.

rule 2: begins with 5 then one or more digits remove the 5 (\2 means set two which is denoted which is the second () "\(.*\)" the () have to be escaped with \)

rule 3: begins with 26 then 4 digits, keep only the 4 digits after 26.

The rest are pretty much the same, except rule1 of translation-rule 9, the first party does nothing, starts with 999 and then no more digits ($ means the end of string) translate it to 999.  Rule 2 just removes the 9 from a number begining with 9.

View solution in original post

Marwan ALshawi
VIP Alumni
VIP Alumni

Hi Paul

You need to read the bellow document to understand the logic first

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

And the above translations do then bellow in brief:

1- if a number comes with 90 the will replace it with 0

2-if the number start with 5 the 5 will be striped and the rest will remain

3-if the number start with 26 the 26 will be removed and the rest will remain

4-any number to be replaced with 8208

5- same as 3above

6- prefix 7 to the original number

9- first one if the number is 999 leave as 999 if it is any other number start with 9 remove the 9 and keep th rest

I wish i was accurate in all of them :)

HTH

If helpful rate

View solution in original post

3 Replies 3

Joseph Martini
Cisco Employee
Cisco Employee

Here's a good guide:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

As for the rules, the first part is what to match, the second is what to translate to. 

rule 1: match 90 anywhere change it to 0.

rule 2: begins with 5 then one or more digits remove the 5 (\2 means set two which is denoted which is the second () "\(.*\)" the () have to be escaped with \)

rule 3: begins with 26 then 4 digits, keep only the 4 digits after 26.

The rest are pretty much the same, except rule1 of translation-rule 9, the first party does nothing, starts with 999 and then no more digits ($ means the end of string) translate it to 999.  Rule 2 just removes the 9 from a number begining with 9.

Marwan ALshawi
VIP Alumni
VIP Alumni

Hi Paul

You need to read the bellow document to understand the logic first

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

And the above translations do then bellow in brief:

1- if a number comes with 90 the will replace it with 0

2-if the number start with 5 the 5 will be striped and the rest will remain

3-if the number start with 26 the 26 will be removed and the rest will remain

4-any number to be replaced with 8208

5- same as 3above

6- prefix 7 to the original number

9- first one if the number is 999 leave as 999 if it is any other number start with 9 remove the 9 and keep th rest

I wish i was accurate in all of them :)

HTH

If helpful rate

Marwan ALshawi
VIP Alumni
VIP Alumni

I wish we answered your question !, if yes please rate it as resolved

Regards,