Bria 3 Dial Plan Guide
CounterPath Corporation 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 © November 2013 CounterPath Corporation. All rights reserved. CounterPath and the logo are trademarks of CounterPath Corporation.
1 Purpose 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.
CounterPath Corporation 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.
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.
CounterPath Corporation Keyword replace Description Replaces 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 4 How 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 listed account.
Bria 3 Dial Plan Guide 5 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" 3xxT The first pattern is any three-digit number beginning with 3. No transformation. The assumption is that this is an internal extension.
CounterPath Corporation 6