Outbound routing

Purpose

Create a rule

In this section, you need to create rules and templates for distributing outgoing calls for providers connected to the PBX.

You can create an unlimited number of outbound routing rules.

You can create several rules for one provider.

Additional examples of configuring outgoing routing are available in the FAQ section.

Step 1: Add a new rule

To add a new outgoing routing rule, click the Add a new rule button.

Step 2: Title and Note

The name of the rule can be set arbitrarily.

In a note, you can describe the call route that you want to implement; this can help you in debugging in the future.

Step 3. Setting the number template

Set a template for outgoing calls. Read more about number templates in the next paragraph.

The example in the picture above means the following: if the dialed number starts with "345" or "375" and the rest of the number consists of 10 digits.

If the dialed number matches the rules of several routes, then the call will be made in the order of the route descriptions, one by one, until the call is answered, or until there are no more suitable routes.

Step 4: Number Conversion

Convert number - this setting is intended to remove the number prefix and replace it with the desired prefix.

Set a template for outgoing calls. Read more about number templates in the next paragraph.

In the example given, digits are not cut off at the beginning of the number and digits are not added.

Step 5. Selecting a provider

Select from the list the provider for which you configured outgoing routing and save the changes.

Examples

Examples of number templates

The number starts withThe rest of the number consists of the specified number of digitsExamples of numbers

[7-8]{1}

10

79257184255, 84952293042

7925

leave the field blank

79257184255, 7925, 7925718…

7ХХ

0

700, 701, 702…

74952293042

0

74952293042

74(95|99)

7

74952293042, 74996382584…

(7|8)0{1}

1

700, 701, 802, 803…

(25|26)

0

25, 26

[0-9]{1}

0

digit from 0 to 9, occurrence once

[1-5]{2}

0

12, 15, 14, 25 digit from 1 to 5, occurrence twice

[8-9]+

0

8899, 888, 988888 digit from 8 to 9, occurrence one or more times

Examples of changing number prefixes

Example 1. It is necessary to replace the number prefixes “+7” with “8”.

For example, the number +74952293042 should be converted to the number 84952293042.

The implementation of the rule looks like this:

Example 2. It is necessary to replace the number prefixes “8”, “7” with “+7”.

For example, the numbers 84952293042 and 74952293042 should be converted to +74952293042.

The implementation of the rule looks like this:

Example 3: You need to add the prefix "8" to the number.

For example, the numbers 4952293042 and 4996382584 should be converted to 84952293042 and 84996382584 respectively.

The implementation of the rule looks like this:

Example 4: You need to remove the area code "8495" or "7495" or "8499" or "7499" and leave the 7-digit number.

For example, the numbers 84952293042 and 74996382584 should be converted to 2293042 and 6382584 respectively.

The implementation of the rule looks like this:

Last updated