Adding formatting may add roughly an extra character for every digit. So if you want to be future proof (and many software systems run unexpectingly for a few decades) you would need to consider 24 digits for a subscriber number and 64 digits for a dialling number as the limit. They have a seperate TON/NPI byte for the prefix (type of number / number plan indicator) which E.164 recommends to be written with a "+" but many number plans define it with up to 4 numbers to be dialled. If you turn to the technical limitation then it gets even more as the subscriber number has a technical limit in the 10 bcd-encoded bytes in the 3GPP standards (like GSM) and ISDN standards (like DSS1). RFC 4715 has set aside 20 bcd-encoded bytes for "subaddressing". As it may contain another subscriber number it must be obviously longer than its base value. ![]() You may think of an answering machine and a number code that sets the call diversion parameters. The dialling number is a different thing as there are network elements that can interpret exta values in a phone number. With international direct distance calling (DDD) defined by a country code of 1 to 3 digits they added that up to 15 digits. ITU has assembled an overview of the world's numbering plans publishing recommendation E.164 where the national number was found to have a maximum of 12 digits. The question itself shows a relation to a national view by mentioning "area code" which a lot of nations don't have. Since PBX extension numbers are part of a different dialing plan (PBXs are separate from phone companies' exchanges), extension numbers need to be distinguishable from phone numbers, either with a separator character or by storing them in a different column.Īs for "phone numbers" you should really consider the difference between a "subscriber number" and a "dialling number" and the possible formatting options of them.Ī subscriber number is generally defined in the national numbering plans. If the database stores data for a personal address book (in which case storing the international call prefix makes sense), the longest international prefixes you'd have to deal with ( according to Wikipedia) are currently 5 digits, in Finland.Īs for suffixes, some PBXs support up to 11 digit extensions (again, according to Wikipedia). Assuming you don't store things like the '+', '()', '-', spaces and what-have-yous (and why would you, they are presentational concerns which would vary based on local customs and the network distributions anyways), the ITU-T recommendation E.164 for the international telephone network (which most national networks are connected via) specifies that the entire number (including country code, but not including prefixes such as the international calling prefix necessary for dialling out, which varies from country to country, nor including suffixes, such as PBX extension numbers) be at most 15 characters.Ĭall prefixes depend on the caller, not the callee, and thus shouldn't (in many circumstances) be stored with a phone number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |