Settings - Translation
-
OSS/BSS Answers
Access Control Admin Audit B3Network Master Account Channel App Contract App Customer App Discount App Edge Server File Management Finance App Invoice App Number Management Payment Portal Settings Price List Product App Release V2 SMS Gateway Supplier App Support Center Support Hub Business Hub Sales Hub
- App Model - Organization Management
- App Model - Communication Apps Answers
- License Model - Organization Management
-
License Model - CPaaS Solution Answers
Phone System - Admin Guide Phone System - End-user Guide Mobile App Desktop App Web Phone Auto Attendant - Admin Guide Developer Hub - Admin Guide Microsoft Teams Operator Connect - Admin Guide Microsoft Teams Direct Routing - Admin Guide Contact Center - Supervisor Guide Contact Center - Agent Guide Omni-Channel SIP Trunk CPaaS - SIP Trunk Power SIP Trunk CPaaS Fax Contact Dashboard Campaign File Explorer
- Telcoflow
- Integrations Answers
- Updated Regulations
- Ideas Portal
Table of Contents
Introduction
The translation rule replaces a sub string of the input number if the number matches the match pattern.
The regex engine is used to check for a match based on the match pattern.In other words, this translation rule is to convert the prefix of number as your requirement.
Translation rule is applicable to both types of trunks: Inbound and Outbound.
- Number of translation rules can be created: unlimited.
- Number of translation rules can be applied to one trunk: maximum 5 rules.
Parameters
- Name: name of translation rule
- Pattern: the pattern of number which will be applied to translation rule
- Replacement: the replacement for the number if pattern is matched
Pattern and Replacement must follow Perl Compatible Regular Expressions (PCRE) syntax.
Syntax Description
The below table shows most formalisms provide the following operations to construct regular expressions.
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2021/05/21/39b11227-dc4e-4523-8a13-a144bc1da145/5cd9a8e7-3f76-43c1-b577-8e78d1249726.png)
Create new Translation Rule
1. Go to Setting > Translation > Click New profile
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2021/05/21/3bf22b27-6db9-48d7-8bcf-7803ab8b7ddb/5dddb426-c1c6-4c1f-ab73-95759d40a64f.png)
2. Give new rule a name > Input Pattern & Replacement > Create
3. Finish
Example
![](https://d2x3xhvgiqkx42.cloudfront.net/c94ab348-5fb1-4c1d-89b1-fa79e3e916d0/81ec6e6f-2b1b-45dc-9193-b23c4a10d966/2021/05/21/7534b916-beea-48ea-a3d2-7c28f303b9ac/752a1a4c-565d-4ca7-84b7-9a31a1664ad8.png)
Test the Translation Rule
You can use this link for regex testing.