Chapter 4: Trunks
123
This expression allows the trunk to find the correct extension when lots of DIDs are
used on the system. As a safety net, you can also direct the trunk to send the call to a
default extension in the event the replacement pattern does not produce an existing
extension. The string shown in Figure 4-14 includes a default extension number (777),
so if the trunk is unable to find an extension using the replacement field, extension 777
will be called.
Delimiter
!
Delimiter
!
Delimiter
!
Delimiter
!
Delimiter
!
PATTERN
REPLACEMENT
\1
Numbers
accepted
Number of
digits
Expression
used
([0-9]{3}$)
Expression 1
Default
to
777
t
R.
URI
Figure 4-14.
Regular Expressions String—Default Extension
Regular Expression Syntax
The syntax used in expressions is explained in Table 4-1:
Table 4-1.
Syntax Used in Expressions
Syntax
Function
!
Delimiter (separates each part)
[ ]
Lists the digits that are accepted
{ }
Defines the number of digits
( )
Stores the numbers that match
\2
Indicates which expression to call
*
Wild card (any length and character)
$
Tells the system to read from end of string
Summary of Contents for ONE IP
Page 4: ......
Page 19: ...Part I Getting Started...
Page 20: ...Part I Getting Started...
Page 47: ...Part II Administering the System...
Page 48: ...Part II Administering the System...
Page 195: ...Deploying the snom ONE IP Telephone System 526...
Page 223: ......