Pattern menus allow highly flexible routing based on the called number, callerid, and optionally digits entered by the caller. Matching on each can be done on exact strings, substrings, or MySQL style regular expressions. This allows call flows built on account numbers, passwords, postal or zip codes, or similar.

To add a new pattern menu

  1. Log in to the Enswitch web interface.
  2. Go to Features » Pattern menus.
  3. Click the "New" button.
  4. Enter the following:
    • A name for the pattern menu.
    • Optionally a description.
    • The owner. This person may edit the pattern menu even if they are not an administrator.
    • Whether to ask the caller to enter digits, and if so how many.
    • If asking the caller to enter digits, how long a timeout to allow between digits.
  5. Click the "Save" button.
  6. Click the "Add a pattern" link.
  7. Enter the following:
    • A description for the pattern.
    • The priority of the pattern. If a higher priority pattern and a lower priority pattern both match, the higher priority pattern is used.
    • Whether to match the digits and calling/called numbers exactly, by substring, or by MySQL style regular expression.
    • The digits, calling number, and called number patterns.
    • The destination to route calls to if all three patterns match.
  8. Click the "Save" button.
  9. Repeat for other patterns as desired.
  10. Set a number or feature code to point to this pattern menu.