C.2 examples, Example 1, Example 2 – CounterPath Bria 3.5.2 for Windows User Guide - Retail Deployments User Manual

Page 94: Example 3

Advertising
background image

90

C.2 Examples

Example 1

\a\a.T|xxxxxxx.T;match=2;pre="9"

This simple example shows how to differentiate between a PSTN number and a softphone address, and how to
add a “9” dialing prefix only to the PSTN number.

Example 2

3xxT|1xxxxxxxxxx|[2-9]xxxxxxxxx|+x.T;match=2;pre="9";

match=3;pre="91";match=4;prestrip=1;pre="9011"

Example 3

#1xxxxxxxT|#19xxxxxxx|xxxxxxxT|9xxxxxxx|;match=1;prestrip=2;pre=9;match=2;

prestrip=2;match=3;pre=9;

This example assumes that the dial plan belongs to the first account.

The dial plan is slightly trivial, because it does not cover all the situations that a dial plan should be designed for
(local calls, long-distance calls, international calls, and so on for the locale).

However, the example does illustrate two ideas:

3xxT

The first pattern is any three-digit number beginning with 3. No transformation. The
assumption is that this is an internal extension. The timer forces Bria to wait after detecting a
three-digit number beginning with 3, in case you are actually dialing a local call starting with
3.

1xxxxxxxxxx

The second pattern is any eleven-digit number beginning with 1. Prefix with 9 and dial as is.
The assumption is that this is a long-distance PSTN call within North America (within North
America, all long-distance calls start with 1).

[2-9]xxxxxxxxx

The third pattern is any ten-digit number beginning with a number other than 1. The
assumption is that this is a local PSTN call within a ten-digit dialing zone.

+x.T;

The fourth pattern is a number of any length that begins with +, to indicate an international
PSTN call from North America. Delete the +, prefix with 9011 (011 is the number to access
an international line from North America).

match=2;pre="9";

For the second pattern, prefix 9 to access an outside line.

match=3;pre="91";

For the third pattern, prefix 9 and 1 to access an outside line and enter the long-distance code.

match=4;prestrip=1;pre="9011"

For the fourth pattern, remove the + and prefix 9011 to access an outside line and enter the
international code.

#1xxxxxxxT

The pattern is an account prefix followed by seven digits. The timer forces Bria to wait to
allow a match to the second pattern. The #1 is stripped off and 9 is prepended to access an
outside line.

#19xxxxxxx

The pattern is an account prefix followed by a 9 and seven digits. The #1 is stripped off.

xxxxxxxT

The pattern is seven digits. The timer forces Bria to wait to allow matching to the fourth
pattern. 9 is prepended to access an outside line.

9xxxxxxx

The pattern is a 9 and seven digits. The input is not transformed.

Advertising