Formatting rules

You can change and individually format phone numbers with special rules. Regular expressions are used for this.

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.
    These phone numbers come directly from the phone system as dialable digits. They consist exclusively of digits and also * and #. The phone number can, however, contain an external dialing code and be an international, national, local or internal number.
    Observe the sequence of Phone number formatting.
  • Outgoing
    Numbers for outgoing calls which are reported to the PC by the phone system are formatted with these rules.
    These phone numbers come directly from the phone system as dialable digits. They consist exclusively of digits and also * and #. The phone number can, however, contain an external dialing code and be an international, national, local or internal number.
    Observe the sequence of Phone number formatting.
  • PC dialing
    Phone numbers for outgoing calls which are dialed from the PC are formatted with these rules.
    These phone numbers are formatted as Supercanonical phone numbers (e.g. +49309999999).
    Note the order of Dialing rules.
  • PC dialing final
    Phone numbers for outgoing calls which are dialed from the PC are formatted with these rules.
    These rules are applied directly before the phone number is sent to the phone system. The phone number is already formatted in dialable form.
    Note the order of Dialing rules.

Syntax:
Modification is done by search/replace, which works with regular expressions. If the search for expression is found the result is read out as replace with; otherwise the phone number is signalled unchanged. The entries are worked through sequentially. If a hit is found, the remaining lines are no longer processed.
See Regular expressions.

Check:
You can check your entry directly here. Enter a phone number in the phone number field which you wish to test with the search/replace expression. The modified number is displayed in the output field. If there is an error in the regular expression this is displayed here. If the search for expression is not found the phone numbers are read out directly without changes.

Examples for incoming and outgoing:

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
Suppression of all numbers which are signalled internally (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
Add your own area code to all numbers which do not start with 0 and are at least 4 digits long (and thus not internal numbers). ^([^0][0-9][0-9][0-9].*) 08151\1

Examples for PC dialing:

Effect Search for Replace with
Dial the phone number +49891234567 via a dedicated line with coded parameter 80 ^\+49891234(.*) 80\1
Changing the (external) phone number 11833 to 11855 ^11833$ 11855
Changing the (internal) phone number 115 to 215 ^115$ 215

Version 4.0