C dial plan, Example, Pattern – CounterPath X-Lite 4.6 for Windows User Guide User Manual
Page 58: C.1 dial plan syntax
C Dial Plan
When a call attempt is made, the call input (what you type, select or drag onto the call entry field) can be
modified to ensure that the call gets placed successfully. This ability to modify the input relies on the existence
of a “dial plan” for the account.
C.1 Dial Plan Syntax
The dial plan has the following syntax:
Items in [ ] are optional.
Pattern: the pattern that will be matched. One or more patterns. Each pattern is separated by a | pipe. The
pipe is optional after the last pattern. Each pattern is implicitly numbered, starting from 1.
Match; Transformation: A pair that identifies the pattern number to compare with the input, and the
transformation to perform on the input when a match is obtained. The transformation is optional (meaning
that if there is no transformation for a pattern, then the input that matches this pattern is not transformed).
One or more pairs.
“match=” is a literal. “n” identifies the pattern. “transformation=” is replaced by a keyword, see below.
“value” is replaced by a value.
Spaces are allowed only in the <value> items.
is the first pattern.
is the second pattern.
is the first match-transformation pair.
is the second match-transformation pair.
The content for a pattern follows the digit map rules of RFC 2705, supplemented by the rules for regular
expressions. Where there is an overlap between the digit map and regular expression rules, the digit map rules
apply. For this reason, there are some special cases, included in the table below.
Remember that dial plans are applied after the input has been cleaned up!