This should keep you busy enough...
Dial Plan Syntax for the AC-211 ATA
====================================
A dial plan is a case insensitive character string or a list of strings. Any telephone keypad
character is allowed:
| “0” | “1” | “2” | “3” | “4” | “5” | “6” | “7” | “9” | “#” | “*” |
Table 3-2 lists the Dial Plan characters.
Table 3-2: The Dial Plan Characters
Character(s) Description
x - One of the allowed telephone keypad characters.
T or t - Short for Timer. Implies a four-second delay, and can only be used at the end of a string.
x. - Implies any number of characters (none or more).
># - Defines the character # as a terminating character. When dialing # the dialed number preceding the character # is immediately sent. The terminating character can only be entered after at least one user-dialed digit. Optionally the Dial Plan >* can be used to define the character * as the terminating character.
[character1-character2] - Defines any character in the range between character1 and character2.
P or p - Short for Prefix. Defines a prefix rule.
R or r - Short for Replace. Defines a replace rule.
| - Used to separate between multiple possible Dial Plans.
3.6.3 Dial Plan Examples
This section describes the following dial plan examples:
Simple Dial Plan, Basic Dial Plan, Complex Dial Plan, Prefix Rule Dial Plan and Replace
Rule Dial Plan.
3.6.3.1 Simple Dial Plan Example
The simple dial plan example allows dialing of seven-digit numbers (e.g. 2233445) or an
operator on 0. The dial plan is:
0T|xxxxxxx
meaning that a match is produced if you dial zero followed by a four-second delay, or if you
dial any seven-digit number.
3.6.3.2 Basic Dial Plan Example
The basic dial plan allows dialing of any number of digits. The dial plan is:
x.T
This ensures a match against one or more digits. A match is produced when a delay of about 4
seconds follows any number of dialed digits.
3.6.3.3 Complex Dial Plan Example
Table 3-3 lists the complex dial plan characters.
Table 3-3: The Complex Dial Plan Characters
Character(s) Description
># The # character defined as a terminating character.
0T Local operator on 0.
00T Long distance operator on 00.
[3-5]xxx Four-digit local extension numbers starting with 3, 4, or 5.
8xxxxxxx Seven-digit local numbers prefixed with 8.
91xxxxxxxxxx Ten-digit long distance numbers prefixed with 91.
9011x.T International numbers starting with 9011 with zero or more digits.
The complete syntax scheme of this dial plan is
(>#|[2-9]xxxxxxxxx|1[2-9]xxxxxxxxx|x.T).
(>#|0T|00T|[3-5]xxx|8xxxxxxx|91xxxxxxxxxx|9011x.T)
3.6.3.4 Prefix Rule Dial Plan
Dial Plan Prefix is used to add a user defined prefix to the head of the dialed number.
Syntax: p(STRING1)STRING2
If a dialed number matches string1, string2 is added to the head of the dialed number.
Example: p(2x.t)00
Adds digits 00 to any dialed number beginning with the digit 2.
3.6.3.5 Replace Rule Dial Plan
Dial Plan Replace can be used to prevent a dialed sequence from being sent or a dialed
sequence can be replaced by another sequence.
Syntax: r(STRING,STRING2)STRING3.
If a dialed number matches string1+string2, string1 is replaced by string3.
Example 1: r(0,x.t)33
Replaces leading 0 with 33 in a dialed number of any string beginning with zero.
Example 2: r([1-3]0,xxx)
Removes the digits 10, 20 or 30 from dialed numbers of format 10xxx, 20xxx or 30xxx.
Example 3: r(1)345678
Shortcut. Dialing 1 will be replaced with the number 345678.
Here is an example 7-digit dial plan:
=====================================
This is using an area code of 717 and would dial immediately after you enter 7 digits if they start with a '2' through a '9'.
(>#|p([2-9]xxxxxx)1717|1xxxxxxxxxx|00x.T|*x.T)
Hope this helps.
Cheers, Brendan