Results of the comparison, B.3 examples, Example 1 – CounterPath X-Lite 3.0 User Guide User Manual
Page 60: Example 2

CounterPath X-Lite 3.0
58
Results of the Comparison
B.3 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 SIP address, plus how to add a
“9” dialing prefix to PSTN numbers only.
Example 2
3xxT|1xxxxxxxxxx|[2-9]xxxxxxxxx|+x.T;match=2;pre="9";match=3;pre="91";
match=4;prestrip=1;pre="9011"
Table 14: Comparing User Input With Dialing Plan Patterns
Type of Match
Conditions
Result
Partial match
Digits and characters typed so far match a pattern
but there are not yet enough of them to verify a
pending or complete match.
If the user clicks
or presses Enter, X-Lite performs no
transformation.
If the user stops typing for the long timer length (twenty
seconds), X-Lite performs no transformation on the
characters typed so far.
Pending match
The pattern contains no “.” but does contain the
T timer. There is a perfect match.
The pattern contains a “.” and the T timer. The
match meets minimum requirements.
If the user clicks
or presses Enter, X-Lite performs the
associated transformation.
If the T timer expires, X-Lite performs the associated
transformation.
Complete match
The pattern contains no “.” and no T timer. There
is a perfect match.
The pattern contains a “.” but does not contain
the T timer. The match meets minimum
requirements.
X-Lite performs the associated transformation.
No match
The characters typed do not match the patterns
for any dialing plan.
If the user stops typing, nothing happens even after the T
timer and long timer have both expired.
If the user clicks
or presses Enter, X-Lite performs no
transformation.
3xxT
The first pattern represents any three-digit number beginning with a “3.” There is
no corresponding transformation (the assumption is that this is an internal extension
within an enterprise network). The timer forces X-Lite to wait after detecting a
three-digit number beginning with “3,” in case the user is actually placing a local
call that also starts with a “3.”
1xxxxxxxxxx
The second pattern represents any eleven-digit number beginning with a “1” (the
assumption is that this is a long-distance PSTN call within North America that also
needs access to an outside line from within an enterprise network).
[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 long-distance PSTN call for which the user needs to
access an outside line).
+x.T;
The fourth pattern is a number of any length that begins with “+” to indicate an
international PSTN call initiated from North America.