You are here: Configuring Account and Tenant Profiles > About Tenant Dial Plans > Creating Custom Dial Plans

Creating Custom Dial Plans

Creating a custom dial plan requires a sound knowledge of regular expressions. This sections gives a brief overview of creating a custom plan. You may seek professional services guidance for creating a custom plan from scratch.

To create a custom dial plan:

  1. Click Home > Dial Plans tab.

  2. Click or Dial Plan link to add a new dial plan.

    Figure 16: Home page, Dial Plans

  3. In the Dial Plan edit window, enter the following information:

    Table 7: Home page, Dial Plans

    Home Page, dial Plans Description

    Name

     

    Enter a name for the new dial plan.

    Default

    Check the option to mark this as the default dial plan.

    Calling Number Pattern

     

    Define a calling number pattern to apply the dial plan using regular expressions. A regular expression provides a concise and flexible means for matching strings of text, or patterns of characters. Most commonly used regular expressions are :

    ^ - Matches the starting position of the string.

    . - Matches any single character.

    * - Matches the preceding element 0 or more times.

    $ - Matches the ending position of the string.

    [ ] - Matches a single character contained within the brackets. For example, [2-9] specifies any digit from 2 through 9.

    ()- A marked sub expression within which you define a string to match.

    For example, the pattern ^([2-9][0-9][0-9][0-9][0-9][0-9][0-9])$ defines a 7 digit sequence where the first digit is not 0 or 1.

    Note: Defining a dial plan requires sound knowledge of regular expressions.

    Treatment

     

    Define the treatment for the number that matches the specified calling number pattern.

    For example, The pattern ^([2-9][0-9][0-9][0-9][0-9][0-9][0-9])$ and treatment 1650$1 prepends a 7 digit input with '1650'. $1 represents pattern within the (). If you input 5551212, the treatment converts the number to 16505551212.

  4. Click (+) symbol to add a new rule. Click (x) to delete a rule.

    Figure 17: Dial Plan tab, Defining dial plan rules

    Examples of dial plan rules shown above can be interpreted as follows:

    1. The pattern ^([2-9][0-9][0-9][0-9][0-9][0-9][0-9])$ and treatment 1650$1 converts a 7 digit input to 10 digits. For example, if you input 5551212, the number gets prefixed with the area code and converts to 16505551212.
    2. The pattern ^(55[0-9][0-9])$ and treatment 1650292$1 converts all 4 digit extension number starting with 55 to 165029255XX where X is mandatory single digit.
  5. Enter a sequence of digits and click Test to validate the calling number pattern and treatment you defined. The first matched rule shows the test result Applied.
  6. Click Save.

See Also

 


Send us your Feedback