Phone number formatting
A phone number which is sent from the phone system to the PC has to be formatted accordingly before further processing. The server always uses Super-canonical phone numbers.
The phone number is formatted in this order:
-
Formatting
All digits apart from + * # 0 1 2 3 4 5 6 7 8 9 are removed.
- Application of the formatting rules
The rules of the Formatting rules are applied. For further processing, the modified (if necessary) phone number is used.
- Removal of the external dialing code
External dialing codes are removed if present. If an external dialing code is found the phone number is treated as an external number.
- Recognition of internal numbers
Provided that no dialing prefix was removed, it is decided by the length and rules for internal phone numbers whether it is an internal phone number.
- Removal of call-by-call dialing codes (only outgoing phone numbers)
Existing CallbyCall prefixes are removed for outgoing phone calls. The used prefixes are saved in a Configuration file providers.xml.
- Standardization of the number
The phone number is now converted in a super-canonical phone number.