User guide
Help Contents > Managing Dial Plans > Dial Plan Syntax
Dial Plan Syntax
This page describes the syntax that you can use when adding dial plans.
Syntax for Conditions (Called number matches)
When you configure the condition for a dial plan rule, you may want to specify a pattern for the called number rather
than specifying any of: called number, no called number or the exact called number.
The table below describes the syntax you can you to express a pattern for the Called number matches field in the
condition of a rule:
Syntax Description Example
Numbers 0 to
9
To match a specific number,
enter that number.
Example: to match calls to "001234", type 001234. The
condition will match that and only that number.
D To match any digit, use the
wildcard character D
Example: to match any number that starts with "623" followed
by exactly two more digits, type 623DD. This condition will
match "62300", "62323", "62355", "62399", etc. but not "623"
or "623233".
? To match once or zero times,
use ?
Example: "6?" means match one 6 or no 6s, and is useful when
used with the wildcard "D" where you do not know how long a
number will be. The expression: "67800D?" will match "67800"
and "678004" but not "67800666".
+ To match once or more, use + Example: "5+" means "match at least one 5, but possibly
more".
* To match zero or more times,
use *. This is useful when used
with the wildcard: "D*" means
"match any digit, any number of
times".
Example: to match any number that starts with "01", has any
amount of digits in the middle, and ends with "5", type 01 D*
5.
() Parentheses indicate substitution
groups. To include any of the
incoming called digits in the
outgoing called number, enclose
them in parentheses. Note that
if you wish to include the
complete number, you do not
need to enclose the whole
expression in parentheses.
Example: to match any number starting with "678", then
followed by a number of other digits, and you wish the final
digits to form part of the called number, type the expression:
678 (D*). This will match "6780000", "678123", "6789999"
etc. but not "775000".
Syntax for Actions (Call this number)
When you configure the action for a dial plan rule, you may want to specify a pattern for the number to call, rather than
specifying any of: call original called number, reject the call, or the exact number to call.
The table below describes the syntax you can use to express a pattern for the Call this number field in the action of a
rule:
Related Topics
● Making Calls With the ISDN gateway
● Using the ISDN gateway for Voice-Only Calls
● Understanding the Dial Plan
● Example Dial Plan Rules
● Adding and Updating Dial Plan Rules
● Displaying and Testing the Dial Plan
Codian ISDN GW 3200 Series User Guide Version 1.0(1.18)
Copyright (c) Codian Limited, 2006 Page 24 of 50