Tuesday, March 24, 2015

VGW- All about Translations


Translation Rules
  • Voice translation rule is to be created first
  • Second step to create a translation profile and associate the voice translation rule to the profile
  • Apply the translation profile to a dial peer or voice port


In global config, enter voice translation-rule x where x is the tag identifier

You can have 15 rules under a voice translation rule prior to IOS 15.1.4M.  After 15.1.4M, you can have up to 100 rules under a voice translation rule.


The translation rule takes the number slice and substitutes it into the translated number slice grouping e.g.rule 1 /1234/ /4321/ translates 1234 into 4321.  There are different voice translation rule operators, also known as regular expression.


  • ^ - matches the expression at start of the line e..g 
  • $ - matches expression at end of the line
  • / - marks start and end of the matching and replacing set
  • \ - Escape - removes meaning of the next character
  • -  - hyphen is used to indicate a range e.g. 1-9  1 and all the digits through 9.  
  • [1456] - only matches one of the single characters in the brackets mentioned in the list e..g 1 or 4 or 5 or 6
  • [^1456] - cannot match any of the single digits in the list .e.g cannot match 1 or 4 or 5 or 6
  • .   - matches any single character.  
  • * - repeats the previous regular expression ZERO or more times e.g.   /^818\(.*\)/     /515\1/  
    • If 8183334880 is dialed, it will take the dialed number and replace 3334880 instead of the 1 group number slice because "." matches any number and the * will match "." an infinite number of times so it could even be dialed number 81811111111111 and it would be translated to 51511111111111.  Basically allows for anything, including null e.g. if no match, it will still translate 
  • + - repeats the previous expression ONCE or more times e.g. basically same as * operator with exception of null. 
  • ? - Repeats the previous regular express zero or one occurrence of the previous expression ( Use control + v key and then press ? key to enter this in) e.g. /^818\(.?\)/ /515\1/ when 8183334880 is dialed, it will translate it to 51533
  • ( ) - groups digits into sets 
  • & - Brings all matched digits into the replacement string


Translation Profiles
**Place holder**