CounterPath Corporation
Suite 300, One Bentall Centre
505 Burrard Street, Box 95
Vancouver, BC V7X 1M3
Tel: 604.320.3344
sales@counterpath.com www.counterpath.com
CounterPath and the logo are trademarks of CounterPath Corporation.
This document contains information proprietary to CounterPath Corporation, and shall not be used for
engineering, design, procurement, or manufacture, in whole or in part, without the consent of CounterPath
Corporation. The content of this publication is int ended to demonstrate typical uses and capabilit ies of the
CounterPath Bria 3 softphone application from CounterPath Corporation. Users of this material must determine
for themselves whether the information contained herein applies to a particular IP-based networking
system.CounterPath makes no warranty rega rding t he cont ent of this do cument, i ncluding—b ut not limited to —
implied warranties of fitness for any particular purpose. In no case will CounterPath or persons involved in the
production of this documented material be liab le for any inciden tal, indire ct or otherwise co nsequential damage
or loss that may result after the use of this publication.
Windows, Windows Vista, Active Directory, Excel and Outlook are registered trademarks of Microsoft
Corporation in the United States and other countries.
This manual corresponds to Bria version 3.2 and higher.
Revision 2
ii
Page 3
1Purpose of Dial Plans
A dial plan is used for any combination of these reasons:
•To modify (transform) the input, if transformation is required to ensure that the call gets established. For
example, to add the “9” required to obtain an outside line from a PBX.
•To select the account to use to place a call, if users can have more than one account. For example, if you
want calls that match one pattern to go through one account and calls that match another pattern to go
through another account.
•T o prevent unresolvabl e calls being placed. For example, to prevent using network bandwidth on a call that
will certainly fail. You define patterns that you know will work, and only place a call if it matches one of
these patterns.
When users use Bria in Auto Select mode (see the illustration below), the dial plan can be used to select the
account to use for the call. Once the account is selected, the dial plan can also be used to transform the phone
number, for example, to add “9” to the start of the number
Even if users select the account to use when making calls or even if the user has only one SIP account, dial
plans can still be used to transform the phone number.
The Default Dial Plan
The default dial plan is:
#n\a\a.T;match=1;prestrip=2;
where #n is the account prefix (#1 for the first account in the list (proxy0), #2 for the second account (proxy1),
and so on).
If the input is the account prefix and the number (for example, #16045551212), then the Account for this dial
plan is selected. The account prefixed is stripped from the number before the call is placed.
If all accounts use this dial plan, then the behavior is as follows: if the input inc ludes the account, then that
account is used. In other words, you can force selection of a specific account by inclu ding the acco unt prefix. If
the input does not include #n, then the prefered account is used.
1
Page 4
CounterPath Corporation
2Dial 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 th e in pu t to the patterns in the dial plan for
the already selected account (not to all accounts). If a match is found, the transformation assoc iated
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.
•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.
Remember that dial plans are applied after the input has been cleaned up!
•match=1;prestrip=2; is the first match-transformation pair.
•match=2;pre=8; is the second match-transformation pair.
2
Page 5
Bria 3 Dial Plan Guide
Pattern
Valid Content
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.
The following table describes the most common elements. All regular expression elements are supported.
ElementOriginDescription
|Regular
expression rules
0 1 2 3 4 5 6 7 8 9 LiteralsLiteral digits, used as is.
# * a to zLiteralsLiteral characters, used as is. Special cases:
xDigit map rulesWildcard for any single digit, 0 to 9.
\aRegular
expression rules
[digit-digit]Regular
expression rules
[character-
character]
[digit1, digit2,
digit3]
.Digit map rulesRepeat the last element 0 or more times. For example, xxxx. means repeat the last x 0 or
TDigit map rulesA timeout period of approximately 4 seconds will take place before automatic dialing
Regular
expression rules
Regular
expression rules
Pipe character, used to separate patterns.
• The literal x character is represented by \x.
• The literal t character is represented by \t.
Wildcard for any single alphanumer ic character.
A digit within the specified range.
A character within the specified range.
One of the characters in the collection.
more times, which means this pattern matches three or more digits (not four or more
digits)! Use of this element results in a pattern with “minimum requirements”.
starts.
The T timer forces Bria to wait after a match is made. This timer should always be
included in these situations:
• Any pattern that uses the . (dot). For example, if the pattern is xxxx. then adding a
timer lets you type three or more digits. If there is no timer, then as soon as you type
three digits, Bria makes the match as soon as you type three digits.
• Any dial plan that has two patterns that are similar in elements but dif fer ent in len gth.
For example, if one pattern is xxx and the other pattern is xxxxxxx, then adding the
timer lets you continue typing past three digits, in order to get a match on the second
pattern.
In this situation, the T timer should be included in the shorter pattern.
Transformation Keywords
KeywordDescription
prestripStrip the first n characters from the input before placing the call.
poststripRemove n number of characters from the end of the input before placing the call.
preAdd the specified account prefix to the input before placing the call.
postAttach the specified postfix to the input before placing the call.
3
Page 6
CounterPath Corporation
KeywordDescription
replaceReplaces the input with the specified string before placing the call.
Order of Transformations
These transformations are always performed in the following order (the order in which the transformations are
entered in the dial plan is not significant):
prestrip > poststrip > pre > post > replace
4How the Input Is Processed
Comparing Input to the Dial Plan Patterns
The input is compared to each dial plan in turn, starting with the first li sted account. Keep in mind that t he inpu t
being compared is different depending on whether the input is dragged/selected or typed:
•If the input is dragged or selected, then the entire input is compared to each dial plan.
•If you are typing the input, then the digits are compared one by one as they are entered. Each time a new
digit is entered, the comparison starts over at the first account.
Results of the Comparison
Bria finds a match according to the following rules.
Type of MatchResult If User Presses Enter or CallResult if User Stops typing
The input matches the pattern and
the pattern does not include the T
timer
The input matches the pattern and
the pattern includes the T timer
The input does not match the
pattern
The “prefered account” is identified in the Account List. It can be set through provisioning
(feature:accounts:defaultForCall setting) and can be changed by the user.
Not applicable because the rule for “if user
stops typing” (next column) will take effect
before the user has a chance to press Enter or
Call.
This pattern’s account is immediately selected
. The transformation is performed. Bria
attempts the call.
The “prefered account” is selected. No
transformation is performed. Bria attempts the
call.
This pattern’s account is immediately
selected. The transformation is performed.
Bria attempts the call.
T starts counting down after each key press.
When T expires (approximately 4 seconds),
this pattern’s account is selected. Then the
transformation is performed and Bria atte mpts
the call.
Nothing happens even after the T timer has
expired.
4
Page 7
Bria 3 Dial Plan Guide
5Examples
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.
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.
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).
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.
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).
For the second pattern, prefix 9 to access an outside line.
For the third pattern, prefix 9 and 1 to access an outside line and enter the long-distance code.
For the fourth pattern, remove the + and prefix 9011 to access an outsid e line and enter the
international code.
5
Page 8
CounterPath Corporation
6
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.