Dialed Number Rewrite

This feature allows to filter and replace patterns when dialing a number.

Click on the Dial Number Rewrite menu Option
dialed

This section will display the current dial patterns in your instance.

These dial patterns are used when dialing outbound numbers.

dial-patterns1

Click on Add Dial Pattern to add a dial pattern pattern. A small window will open where you can enter the following information.

  • Name: Name or Description of the dial pattern.
  • Matching Expression: This is the regular expression or string the system will try to detect.
  • Substitution Expression: This is the regular expression or string that will be used for replacing any coincidence found.
  • Replacement Expression: This is the text or number that each regular expression match is replaced with during the ‘search and replace’ process.
  • Priority: Priority of rule
  • Matching Rule: Matching operator for the rule: Same Characters or RegEx (Regular Expression)
  • Case Sensitive: If our rule is case sensitive or not.
  • Deactivate Rule: Status of the dial pattern: enabled or disabled.

Here is an example for setting up a Dial Pattern to add an area code to 7-digit numbers for users that aren’t accustomed to dialing with an area code.

dialed_number_rewrite

Matching Expression explanation:

  • ^  : Start of the line.
  • ( : Start of what we want to select.
  • \d : We are going to search for digits.
  • {7} : Amount of digits to search. 7 of them in our example.
  • ) : End of what we want to select.
  • $ : End of the line.

In other words, we are going to look for any number 7 digits long.

Substitution Expression explanation:

  • ^ : Start of the line.
  • () : Grouped.
  • [0-9] : Any digit between 0-9 (This is what will be replaced)
  • {7} : Amount of digits to search. 7 of them in our example.
  • $ : End of the line.

Replacement Expression explanation:

  • 1920 : Add this to the digits captured.
  • \1 = The digits captured, in this case, the full 7 digit number.
  • In other words, we are adding 1920 to the 7 digits captured, before dialing.

In most cases, your Matching Expression SHOULD be the same as your Substitution Expression. Matching Expression is what you are looking for.

When adding a Dial Pattern it is very important to check the Priority since it may conflict with the default or previous Dial Pattern entries. 

When the number is dialed, the system will search for the lowest priority (0) and if there are patterns with the same priority the system will evaluate the first from the top to the bottom and will use the first coincidence. It is worth mentioning it will not search for the best match on the rest of the priorities.

Share this Doc

Dialed Number Rewrite

Or copy link

CONTENTS