Regular Expressions And Direct Inward Dialing (Did) - Snom ONE IP Technical Manual

Table of Contents

Advertisement

Deploying the snom ONE IP Telephone System
124
Samples of regular expressions are shown in Table 4-2.
Table 4-2.
Examples of Regular Expressions
![0-9]{7}([0-9]*)!\1!t!100
Example 1
This example is common in Europe. It is used to strip the main
number of the system so that the remaining numbers can be used
to identify the extension. If the extension is not found, the call
will be sent to the auto attendant. This example assumes that the
number starts with 7 digits (e.g., 0228123) and that the auto at-
tendant is located on extension 100.
!([0-9]{4}$)!\1!t!100
Example 2
This example always uses the last 4 digits of the number, regard-
less of how long the number is. This example assumes that the
number of digits is always the same.
100
Example 3
This example is common in U.S. offices, where it is typical to
send all calls to an auto attendant. This example assumes that the
auto attendant is located on account 100.
!1([0-9]*)!\1!u!100
Example 4
This example can be used to strip the first digit from a DID
number (default destination would be 100).

Regular Expressions and Direct Inward Dialing (DID)

Direct Inward Dialing (DID) allows users on your system to have their own (or even
multiple) local numbers assigned to them. With DIDs, anyone outside the company
can call the user's unique phone number and reach the user on the same phone as those
who dial the user's extension number internally. Before you can use DID numbers, you
will need to purchase them from a DID service provider, then link the DID numbers
to the extension accounts. The easiest way of doing this is by entering the DID number
into the Account Number(s) setting of the extension that will be using the DID.

Advertisement

Table of Contents
loading

Table of Contents