Dial plan syntax – CounterPath Bria 3.0 Configuration Guide – Retail Deployments User Manual

Page 11

Advertising
background image

Bria 3 Configuration Guide – Retail Deployments

7

When a match is found between the input and the pattern, the account that this pattern belongs to is selected
and the transformation for this pattern is performed.

If no match is found, the default account is selected and no transformation is performed. (The default
account is the enabled account that appears first in the list in the Account Settings window.)

For details on matching see “How the Input Is Processed” on page 9.

Transformation

The selected transformation is performed.

Place Call

Then the call is placed using the transformed input.

Dial Plan Syntax

The dial plan establishes the expected patterns of characters for a telephone number or SIP address, and allows
for modification (transformation) of input based on the match to a pattern.

The dial plan is defined for each account in proxies:proxyn:digit_map, where n is the account number.

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. Each pattern is separated by a | pipe. The pipe is optional after the
last pattern. Each pattern is implicitly numbered, starting from 1.

Match and Transformation: A pair that identifies the pattern number to compare to the input, and the
transformation or transformations to perform on the input when a match is obtained. The transformation is
optional (meaning the input that matches this pattern is not transformed).

"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.

Some elements use the back slash \ character. If you are defining a pattern via remote provisioning (that is,
in an HTTP response), you must enter two backslashes, because the Bria provisioning software interprets
one backslash as an escape key.

Remember that dial plans are applied after the input has been cleaned up (page 6)!

Advertising