How does the phone number parsing routine works?

This section will explain how PhoneJournal does recognize dialed numbers.

Canonical Phone Number

A canonical phone number is a phone number wrote in a standardized form like:

The human format of a canonical number:
+CountryCode(AreaCode)SubscriberNumber 
+40 (21) 3150263
The digital format of the same canonical number:
0040213150263

PhoneJournal is able to split any canonical number into the his components in order to be able to detect tariffs, country, area codes or mobile destination. This is done with the help of the known prefix list included in the tariffs database.

How does PhoneJournal converts the dialed number to a canonical one

You must be aware that the pbx units almost always reports the dialed number not the canonical one and the program will append the country code and/or the area code if necessary. The default area code and country code can be configured at installation time or in Options > Configuration dialog.

Parsing rules

  • If a phone number starts with international prefix (00) it will not be modified.
  • If a phone number starts with long range prefix (0) it will add the international prefix and default country code after stripping the 0. Example: 0xxxxxxx will become 00nnxxxxxx where nn is the default country code.
  • If a phone number starts with no 0, it means it is a local call and will have to add both: default country code and default area code.
  • More hints

    Keep in mind that the number displayed on the application is the dialed number not the canonical one but all operations made on the application: like search or filtering are applied to the canonical one.

Last Updated ( Wednesday, 30 May 2007 )
 
< Prev   Next >