B.4 examples, Results of the comparison, Example 1 – CounterPath X-Lite 4 for Windows User Guide User Manual
Page 59: Example 2

X-Lite 4 for Windows User Guide
55
Results of the Comparison
X-Lite finds a match according to the following rules.
B.4 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"
Type of Match
Result If User Presses Enter or Call Result if User Stops typing
The input matches the pattern and the
pattern does not include the T timer
The transformation is performed. X-Lite
attempts the call.
Nothing happens even after the T timer
has expired.
The input matches the pattern and the
pattern includes the T timer
The transformation is performed. X-Lite
attempts the call.
The transformation is performed. X-Lite
attempts the call.
The input does not match the pattern
No transformation is performed. X-Lite
attempts the call.
Nothing happens even after the T timer
has expired.
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 X-Lite 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.