Versions Compared

Key

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

  • Strip the 0049
  • Add an 0 

    Allows to adapt the incoming number in the SIP INVITE to match the configured number.

    Example:

    Phone numbers are configured in the format:

    1. 0287191123450
    2. 0287191123451

    Image Removed

    Incoming SIP INVITE contains the number: 0049287191123450

    0049287191123450 ≠ 0287191123450 → Incoming call is not working.

    You need to change that the incoming number is changed:

    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/


    Example:

    Phone numbers are configured in the format:

    1. 0287191123450
    2. 0287191123451

    Image Added

    Incoming SIP INVITE contains the number: 0049287191123450

    0049287191123450 ≠ 0287191123450 → Incoming call is not working.

    You need to change that the incoming number is changed:

    1. Strip the 0049
    2. Add an 0 
    Panel
    titleColor#F85404
    titleBGColor#F0F0F0
    titleName

    Enter the name for this pattern.

    Panel
    titleColor#F85404
    titleBGColor#F0F0F0
    titlePattern

    Pattern: "0049!" The number starting with "0049" followed by zero or more digits

    Cut: "4" Removes the first 4 digits "0049"

    Prepend: "0" Add a "0" in front of the number

    Panel
    titleColor#F85404
    titleBGColor#F0F0F0
    titleVoIP Connection

    Select the VoIP provider where the Pattern should be used.