Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Panel
titleColor#F85404
titleBGColor#F0F0F0
titleIntroduction

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/


Panel
titleColor#F85404
titleBGColor#F0F0F0
titleName

Enter the name for this pattern.

Panel
titleColor#F85404
titleBGColor#F0F0F0
titlePattern

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
Panel
titleColor#F85404
titleBGColor#F0F0F0
titleVoIP Connection

Select the VoIP provider where the Pattern should be used.