Dialing rules

You can make outgoing calls in Softphone.Pro by dialing manually, copying number to the clipboard or by using click-to-call. These functions can pass the numbers to the app in a lot of different formats. PBX on the other hand usually requires a particular number format to recognize the number and make an outgoing call.

You can configure and use dialing rules to format the number before an outgoing call.

Configuration

1. Open your SIP account settings: Settings - SIP Account - Your SIP account:

Open SIP account settings

2. Enter dialing rule (we'll use the rule which removes leading + sign from the number as an example):

Set dialing rule

The rules use Regular Expressions (RegExp) syntax. Below you can find examples of rules that can perform modifications for common scenarios.

You can perform multiple modifications of the same number. Separate different rules by ; sign.

3. Click Save.

4. Enter the number in the softphone window with a + sign:

Dialing number with + sign

5. After you click Dial the softphone will remove leading + sign and the call will be made to a modified number:

Called number with + sign removed

Examples

In this section you may find common scenarios in which dialing rules will be helpful.

Remove leading + sign

Some PBXs won't make an outgoing call if the number starts with + sign. Use the following expression to remove leading + sign from the number:

  • Dialing rule: /^\+//
  • Original number: +12345678901
  • Modified number: 12345678901

Replace 1 with +1

If your PBX requires you to dial numbers with +1 prefix, and numbers in your CRM, for example, start with 1, use the following expression to replace leading 1 with +1:

  • Dialing rule: /^1/+1/
  • Original number: 12345678901
  • Modified number: +12345678901

Replace + with 00 to make international calls

Your PBX might require you to replace + sign with 00 to make international calls. In that case use the following expression:

  • Dialing rule: /^\+/00/
  • Original number: +12345678901
  • Modified number: 0012345678901

Add 9 prefix to make outgoing calls from office PBX

Your PBX might require you to add a prefix to the numbers that should be dialed with the access to an outside line. See the example of adding 9 prefix to all 11 digits numbers:

  • Dialing rule: /(?=^...........$)/9/
  • Original number: 12345678901
  • Modified number: 912345678901