2 dial plan activity, 3 dial plan syntax, 2dial plan activity – CounterPath Bria 4 Dial Plan Guide User Manual

Page 4: 3dial plan syntax, Example

Advertising
background image

CounterPath Corporation

2

2

Dial Plan Activity

When you make a call, Bria takes the phone number (the input) and performs the following:

Cleanup. This step is not part of the dial plan: it is always performed even when there is no dial plan.

Input is cleaned up by removing spaces, dashes, open brackets, and close brackets. Cleanup allows Bria to
support calls placed using contacts from a contact list, including Microsoft® Outlook®.

Matching.

When Bria is used in Auto Select mode, Bria compares the input to the patterns in the dial plan for each
enabled account. Each account has one dial plan, and each dial plan has one or more patterns.

When Bria is not used in Auto Select mode, Bria compares the input to the patterns in the dial plan for
the already selected account (not to all accounts). If a match is found, the transformation associated
with the pattern is peformed.

Transformation. If a match is found between the input and a pattern, that pattern’s transformation (if any) is
peformed.

Place Call. Then the call is placed using the transformed input.

3

Dial Plan Syntax

The dial plan has the following syntax:

pattern[|pattern];match=1;<transformation>=<value>;[match=2;

<transformation>=<value>;]

Where:

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.

Example

\a\a.T|xxxxxxxxxx;match=1;prestrip=2;match=2;pre=8;

where:

\a\a.T

is the first pattern.

xxxxxxxxxx;

is the second pattern.

match=1;prestrip=2;

is the first match-transformation pair.

match=2;pre=8;

is the second match-transformation pair.

Remember that dial plans are applied after the input has been cleaned up!

Advertising