
Chapter 20 VoIP Commands
When a user dials a series of digits, each sequence in the dial plan is tested as a possible match. The matching sequences form a set of candidate digit sequences. As more digits are entered by the user, the set of candidates diminishes until only one or none are valid.
Any one of a set of terminating events triggers the device to either accept the
1No candidate sequences remain: the number is rejected.
2Only one candidate sequence remains, and it has been matched completely: the number is accepted and transmitted after any transformations indicated by the dial plan, unless the sequence is rejected by the dial plan.
3A timeout occurs: the digit sequence is accepted and transmitted as dialed if incomplete, or transformed as per the dial plan if complete.
White space is ignored in dial plans, and may be used for readability. The following table contains rules for creating dial plans:
Table 59 Dial Rule Syntax
SYNTAX | DESCRIPTION |
( ) | The collection of sequences is enclosed in parentheses. |
|
|
Used to separate multiple dial plan rules. | |
|
|
x | The letter is used as a wildcard, matching any one numeric digit ('0' - '9'). |
|
|
[ ] | A subset of keys within brackets. (e.g. [389] means '3' or '8' or '9'.) |
| - Numeric ranges are allowed within the brackets. (e.g. |
| - Ranges can be combined with other keys. (e.g. |
| or '*'.) |
|
|
. | Any element can be repeated zero or more times by appending '.' to the element. For example, |
| "01." matches "0","01", "011", "0111", …… etc.) Note that the command can be used only at the |
| end of a dial plan rule and all digits |
|
|
<dialed- | A subsequence of keys (possible empty) can be automatically replaced with a different |
subsequence: | subsequence using an angle bracket notation. (e.g. "<8:1650>xxxxxxx" would match "85551212" |
transmitted- | and transmit to "16505551212".) Note that the command can be used only at the start of a dial plan |
subsequence> | rule. |
|
|
! | A sequence can be rejected by placing '!' at the end of the sequence. For example, "1900xxxxxxx!" |
| automatically rejects all 900 area code numbers from being dialed.) |
|
|
@ | A termination character. When the termination character is at the end of the dial sequence, the dial |
| string will be sent immediately. For example, "911@" will send "911" immediately, in other words no |
| delay for any timeout value occurs. |
| Note: The digits following @ will be ignored. |
|
|
=gwX= | This syntax means "if you match this dial plan listed, dial out this gateway". gw0 is special and |
| means "dial out the default VoIP port". |
| The setting of gw0 means VoIP gateway, gw1 means PSTN gateway, gw2 means ISDN gateway, |
| and gw3 is reserved for future use. The default setting is VoIP gateway. |
| If there is a setting gw2 for a dial sequence, the ZyXEL Device will check if ISDN line exists when |
| matching this sequence. If it does not exist, then the ZyXEL Device will dial out via PSTN line. If |
| both ISDN/PSTN line do not exist, the dial number is blocked. |
| 149 |
DSL & IAD CLI Reference Guide | |
|
|