Introduction

Allows to adapt the outgoing called number. Software 2.01 or higher is needed !!!


Special Characters Used in Pattern Matching

Within the pattern, we use various letters and characters to represent sets or ranges of numbers. Here are the most common letters:

  • X The letter X or x represents a single digit from 0 to 9.
  • Z The letter Z or z represents any digit from 1 to 9.
  • N The letter N or n matches any digit from 2-9

Ranges used in Pattern Matching

A numeric range can be used to match against a dialed number. This is also called a Character Set

  • [1237-9] This pattern matches any digit in the brackets. In this example, the pattern will match: 1,2,3,7,8,9

Wildcards used in Pattern Matching

The following special characters are considered wildcards

  • The '.' character matches one or more digits
  • The '!' character matches zero or more digits immediately


More information can be found here: https://docs.asterisk.org/Configuration/Dialplan/Pattern-Matching/


Name

Enter the name for this pattern.

Pattern

Example: See picture for settings

  1. Dial 12345 → (No matching pattern) Ext called number 12345

  2. Dial 123456 → = "XXXXXX" → Remove no digit → Add 02871 → Ext called number 02871123456
  3. Dial 1234567 → (No matching pattern) Ext called number 1234567
  4. Dial 0287112345 → number starts with "02871" → remove first digit → Add "0049"  Ext called number 0049287112345
VoIP Connection

Select the VoIP provider where the Pattern should be used.


  • No labels