Dial Plans
The dial plan includes settings that specify the behavior of the phone as a user enters a number in off-hook dialing mode.
The digit map is the setting that describes different patterns of numbers. When a number matches a pattern, the number is sent to Asterisk to place the call. The pattern may include a timer at the end. If no numbers are entered before the time expires, the number matching the pattern will be sent. If additional numbers are entered before the time elapses, the pattern no longer matches.
The syntax of a digit map is:
Digit Map Syntax
digitmaplist := digitmap ( '|' digitmap )* digitmap := digitstring | digitstring timer digitstring := atom+ atom := literal | class | wildcard literal := digit | '*' | '#' digit := '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' class := '[' range+ ']' wildcard := '.' range := digit | digit '-' digit timer := T digit*
A digit map with a timer, but no specified time value, defaults to 4 seconds.
Example:
The following example assumes the following dials will be completed:
Dial four digit extensions from 0000-8999 after the default timeout.
Dial 911 immediately
Dial 9911 immediately
Dial 411 immediately
Dial 611 immediately
Dial numbers beginning with 011 followed by at least 4 more digits after a delay of 3 seconds.
Dial numbers beginning with 1 followed by 10 digits immediately
Dial numbers beginning with 2-9 followed by 6 digits immediately
Dial a star followed by a two digits after a delay of 3 seconds.
Digit Map Example.
[0-9]xxx|911|9911|411|611|011xxxx.T3|1xxxxxxxxxx|[2-9]xxxxxx|*xx.T3
Note that the phone will attempt to immediately dial any pattern that does not have a matching rule