Transformation keywords order of transformations – CounterPath X-Lite 4.6 for Windows User Guide User Manual

Page 59

Advertising
background image

X-Lite for Windows User Guide

55

The following table describes the most common elements. All regular expression elements are supported.

Transformation Keywords

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

Element

Origin

Description

|

Regular
expression rules

Pipe character, used to separate patterns.

0 1 2 3 4 5 6 7 8 9 Literals

Literal digits, used as is.

# * a to z

Literals

Literal characters, used as is. Special cases:

• The literal x character is represented by \x.

• The literal t character is represented by \t.

x

Digit map rules

Wildcard for any single digit, 0 to 9.

\a

Regular
expression rules

Wildcard for any single alphanumeric character.

[digit-digit]

Regular
expression rules

A digit within the specified range.

[character-
character]

Regular
expression rules

A character within the specified range.

[digit1, digit2,
digit3]

Regular
expression rules

One of the characters in the collection.

.

Digit map rules

Repeat the last element 0 or more times. For example, xxxx. means repeat the last x 0 or
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”.

T

Digit map rules

A timeout period will take place before automatic dialing starts.

The T timer forces X-Lite 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, X-Lite makes the match as soon as you type three digits.

• Any dial plan that has two patterns that are similar in elements but different in length.

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.

Keyword

Description

prestrip

Strip the first n characters from the input before placing the call.

poststrip

Remove n number of characters from the end of the input before placing the call.

pre

Add the specified account prefix to the input before placing the call.

post

Attach the specified postfix to the input before placing the call.

replace

Replaces the input with the specified string before placing the call.

Advertising