Location

Phonenumbers will be completed by the location settings, if they are not in E.164 format (e.g. +493012345123). To do this, you have to setup your location and enable the option "use location".

Phone Number Format

You may enter rules for formatting the phone numbers.

The phone numbers that have been reported to ECSTA by the telephone can be modified using rules, in order to adjust them to the TAPI application in use.

The phone numbers that have been sent to ECSTA by the TAPI application (such as when making a call) can be modified using rules.

Each line in the list contains an option if direct text compare or a regular expression is used.

This modification will result through a search-and-replace process processed using regular expressions. If a search pattern is found, the result will be displayed in the Replace list. Otherwise, the unmodified phone number will be displayed. The entries will be processed sequentially. Additional lines will not be processed once a match has been found.

A differentiation is made between categories:

  • Incoming
    Phone numbers for incoming calls which are reported to the PC by the phone system are formatted with these rules.
  • Outgoing
    Numbers for outgoing calls which are reported to the PC by the phone system are formatted with these rules.
  • PC Dialling
    This section is for phone numbers that are dialed on the PC and send to the PBX system

Search for:
Enter the regular expression that will be used to match the phone number.
Hint: The caret (^) can be found on the upper left key of a keyboard with German layout.
A brief overview of the permitted expressions:

Character Description
^ The beginning of the search string (phone number). The expression "^0" matches "0" only at the beginning of the search string.
^ Placing the caret (^) symbol immediately after an opening bracket ([) changes the meaning of the regular expression. "[^" means that the characters between the brackets should not be matched. The expression "[^0-8]" means that the numbers 0 through 8 will not be considered part of the match.
$ The dollar sign ($) designates the end of the phone number. The expression, "152$", is only valid for phone numbers that end with "152".
| The (|) sign allows for both characters it stands between. The expression "8|9" allows both "8" and "9".
. The dot (.) allows any character (or any number).
* The asterix (*) indicates that the character to the left of the asterix in the expression should match 0 or more times.
+ The plus (+) is similar to asterix but there should be at least one match of the character to the left of the + sign in the expression.
? The question mark (?) matches the character to its left 0 or 1 times.
() The parenthesis affects the order of pattern evaluation and also serves as a tagged expression that can be used when replacing the matched sub-string with another expression.
[] The corner brackets ([ and ]) indicate the amount of signs that are permitted at this point.

Replace with:
Enter the expression how the output of the phone number should look like.
\1 shows the first expression standing between regular brackets () of the Search for field.
\2 reads out the second, etc..

Check:
You may check your expressions right here by entering a phone number in the "phone number" field. The resulting output will be displayed. If the expression from the search pattern is not found, the phone number will be send to the outpout without modification.

Examples:

Effect Search for Replace with
Removal of a leading 0 ^0(.*) \1
Replacing a 80 at the beginning of a number (e.g. targeted external dialing code) with 0 ^80(.*) 0\1
Removal of a private PIN which is added to the beginning of a phone number as 50xxx ^50[0-9][0-9][0-9](.*) \1
Suppress all phone numbers that are internal (not more than 3 digits). ^[0-9][0-9][0-9]$
Add an external dialing code code (leading 0) for all numbers with more then 3 digits ^([0-9][0-9][0-9].+) 0\1
Add the phone system base number (03012345) to all internal numbers (1 to 3 digits in length) ^([0-9][0-9]?[0-9]?)$ 03012345\1
Adding an area code to all numbers not beginning with 0 and containing at least 4 digits (thus not internal). ^([^0][0-9][0-9][0-9].*) 08151\1

Version 4.0