beautypg.com

A.3 how the input is processed, Comparing input to the dial plan patterns – CounterPath Bria for Linux Administrator Guide User Manual

Page 34

background image

CounterPath Corporation

30

Timers

There are two timers, the T timer and the long timer.

These timers are used in input comparison, as described in “How the Input Is Processed” on page 30.

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

A.3 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. The process is slightly
different depending on how the call is placed:

If the input was dragged or selected, then the entire input is compared to each dial plan. If a complete match
is found, then that account is selected and the associated transformation is performed. If no match is found,
the default account is selected and no transformation is performed.

If you are typing the input, the digits are compared one by one as they are entered. The comparison will
result in one of the types of matches described in the table below.

It is possible for the same input to get matched to different dial plans depending on whether the input is entered
on the fly or dragged. It is important to keep this in mind when designing dial plan patterns.

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.