Patterns
Patterns
Patterns allow you to control Inter-site routing, Call Limits and Fail over.
When a call has been passed to a Trunk Group the set of Patterns are searched in priority order (top of screen to bottom) against the dialed phone number.
Only patterns from the Trunk Group's current mode (Primary or Fail Over) are considered.
When a matching Pattern is found the associated trunk is then checked to ensure it hasn't reached its Call Limit. If the Call Limit has been reached the pattern is rejected and the next pattern is tried.
If the Call Limited has NOT been exceededthen the call is passed to the trunk.
The order of patterns is important. You can re-order patterns by clicking on any pattern in the list of patterns and dragging the pattern up or down the list. Drop the pattern once it is positioned in the right order.
Understanding Patterns
The pattern field contains what often looks like heiroglyphics, but which is quite easy to understand.
Firstly any spaces in a pattern or phone number are ignored, so you can use them to format the patterns to make them more readable.
Single Digit
X - a single X means that a single 'digit' is valid.
Multiple Digits
XX - two X's means that two digits is valid.
XXXX XXXX - 8 X's means that an 8 digit phone number is valid. The spaces are ignored.
Specific Digits
You can also combining in actual digits:
0X XXXX XXXX
This pattern means that any 10 digit number is accepted as long as it starts with a leading zero.
Digit List
You can also specify a range of valid digits:
0[235789] XXXX XXXX
This pattern means that any 10 digit number is valid providing that it starts with a zero and the 2nd digit is one of 2,3,5,7,8 or 9.Â
e.g. 03 8320 8100 is valid
04 8320 8100 is invalid as the second digit (a 4) is not in the list of valid digits [235789] for the second position.
Digit Ranges
0[2-5] XXXX XXXX
This means a 10 digit number, the first digit must be zero and the second digit must be one of the 2,3,4 or 5 i.e. all the digits from 2-5 inclusive.
Any No. of Digits
. (dot) - means that any number of digits are accepted. You should normally have a final Pattern that contains just a dot (.). This becomes a catch all i.e. if no other patterns match the dialed number then send the call via the trunk associated with the '.' pattern.
The '.' pattern MUST always be the last pattern for the set of Mode related patterns e.g. all Primary Mode patterns or all Fail Over Mode patterns). If the '.' pattern appears before any other patterns then it will ALWAYS be selected unless the Call Limit is exeeded.
International Prefix
+ - the plus (+) character can only be the first character in a pattern and is used to designate an international no.
The International Prefix can only be used for 'click to dial' applications as a handset can not normally dial a '+' prefix (OK it can, but 99.9999% of users don't know how)
As a rule you put the most specific patterns first and the more general patterns last.
Fields
Field | Description |
Name | A name for the pattern that will be meaningful to you. |
Description | A description of what the pattern is used for. |
Trunk | The trunk to send calls through when this pattern is matched. |
Failover Group when trunk fails | If ticked and this trunk fails then the entire Trunk Group will be pushed into Fail Over mode. |
Mode | The mode that this pattern is to be used in. Â In set to Primary then this pattern will only be considered when the Trunk Group is in Primary mode. If set to Failover then this pattern will only be considered when the Trunk Group is in Failover mode. |
Disabled | If ticked then this pattern will be ignored. |
Pattern | The Pattern that dialed no.s will be matched against. If it matches then trunk will be used to dial the number unless its Call Limit will be exceeded. |
Test Phone No. | This is a convenience field that allows you to enter a phone number that you expect to match the Pattern. Enter a phone number and then click the Test button. The results will be displayed in the Results field. |
Results | Displays the results of the test. |