![]() |
The following example demonstrates how to administer the To TelURI settings in the AE Services Management Console to support a dial plan that uses variable-length extensions. The set of rules in this example assumes the following:
All numbers less than or equal to 4 digits are extensions. This assumption allows the table to have one rule, rather than 6, for all extension starts. In some cases, it might be necessary to be more specific.
International numbers start with 00, and inter-region numbers start with 0. Any digits other than 0 or 00 are assumed to be local digits. AE Services prepends 4969, which represents country or city codes. Keep in mind that you must carefully analyze your dial plan before you attempt to apply a catch-all rule such as this.
You can use one of the following two methods of analyzing or matching dial plan strings, as explained in the topic Pattern matching using Pattern and RegEx (regular expressions) above.
Minimum Length | Maximum Length | Pattern Match | Delete Length | Replacement | |
---|---|---|---|---|---|
A | 1 | 4 | * | 0 | 4969710 |
B | * | * | 00 | 2 | |
C | * | * | 0 | 1 | 49 |
D | * | * | * | 0 | 4969 |
A | AE Services receives 1234, a 4-digit number from the switch. Because the number is within the minimum and maximum length requirements, and the wild card (*) permits a match of any 1- to 4-digit number, AE Services deletes no digits and prepends 4969710 to the number. AE Services sends 49697101234 to Microsoft Office Communicator. |
B | AE Services receives 0017328524321, a 13-digit number, from the switch. Because the number is not within the range specified by the 1- to 4-digit rule (A) it satisfies this rule, which permits a number of any length where first two digits (00) are a pattern match. AE Services deletes the first 2 digits, prepends nothing to the number, and sends 17328524321 to Microsoft Office Communicator. |
C | AE Services receives 0306441234, a 10-digit number, from the switch. Because the number is not within the range specified by the 1- to 4-digit rule (A) it satisfies this rule, which permits a number of any length where first digit (0) is a pattern match. AE Services deletes the first digit, prepends 49 to the number, and sends 49306441234 to Microsoft Office Communicator. |
D | AE Services receives 45427, a 5-digit number, from the switch. Because the number is not within the range specified by the 1- to 4-digit rule (A) it satisfies this "catch-all" rule that permits a number of any length and any pattern of digits. AE Services deletes no digits, prepends 4969 to the number, and sends 496945427 to Microsoft Office Communicator. |