Call routing is an extensive module responsible for routing outbound calls. It defines the patterns according to which outgoing connections are set up. Call routing rules allow you to configure, among other things, in which:
- calls to fixed numbers go out through a different link than calls to mobile numbers,
- in the event of a failure of the primary link/operator, the call will be made using the backup link/operator,
- only designated employees are allowed to make international calls,
- the company's management presents itself to the outside world by secretarial number.
You will add a new rule by selecting Administration → Telecommunication → Call routing, and then clicking the button .
Let's discuss each field:
Pattern matching order - the order in which matches (patterns) are checked for the selected number. If we have two or more patterns with the same matching order number, then Priority is taken into account,
Source number - number from which the call is made (phone or SIP account), you can create routing rules, for example, for individual SIP accounts,
Pattern - are strings of digits and characters. Based on a certain pattern, outgoing calls are made. To make it easier to establish rules, several designations have been introduced. Below are examples:
- .* - this symbol means that calls will be made to all numbers,
- 12.* - calls will be made to all numbers beginning with 12,
- 12[0-9]{7} - calls will be made to a number beginning with 12, square brackets indicate the range of digits to be entered (in this case it is possible to enter digits from 0-9), curly brackets indicate the number of digits to be entered (in this case 7 digits must be entered),
- 900008.* - this type of designation appears most often in campaigns, where the 9 indicates that it is a campaign, and the next 5 digits are the identifier.
In routing, several patterns can be added, which should be separated by the "|" character.
Trunk - telecommunications link from which calls are made,
Number of digits to be cut - this field specifies the number of digits by which the number is truncated before connection counting from the beginning of the number,