Translation rules CSV file
This reference topic describes the structure and content requirements for a Translation Rules CSV (Comma Separated Values) file. This file can be used to import existing translation rule information when configuring translation profiles for voice policies.
The file must be comma delimited, and each record in the file must include each field that the following table describes, in the order shown.
| Field |
Description |
|---|---|
| Match |
String that you want the translation rule to affect. The string must be in regular expression format beginning and ending with a slash (/). For example, /^9/. |
| Action |
Action that the system performs for calls that match the string in the Match field. Valid values are:
|
| Replace |
If the Action field contains replace, this field contains the string to which to translate the matched string. Enter the number in regular expression format beginning and ending with a slash (/). For example, //, which indicates a replacement of no string. As an example, if you specify a match string of /^9/ and a replace string of //, the system removes the leading 9 from calls with a number that begins with 9. In this case, the system translates 914085551212 to 14085551212. |
Example translation rules CSV file
This section provides an example of a Translation Rules CSV file, illustrating the format and content described above.
Match,Action,Replace
/34/,replace,/34/
/23/,reject,
/56/,replace,/100/
/16083652563/,replace,/6083652563/