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
- Log in to the Enswitch web interface.
- Go to Features » Pattern menus.
- Click the "New" button.
- 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.
- Whether to display this pattern menu in the control panel.
- Click the "Save" button.
- Click the "Add a pattern" link.
- 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.
- Click the "Save" button.
- Repeat for other patterns as desired.
- Set a number or feature code to point to this pattern menu.