| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | About the International Phone Number format===========================================These rules have been formulated off of the E.123 (for display) andE.164 (for input) specifications published by the ITU. In order toprevent ambiguity, we have chosen to restrict some of the stipulationsthese specifications give.In summary, country calling codes are assigned by the ITU TelecommunicationStandardization Sector in E.164. We take an international phone number tohave the form +XX YYYYYYY where XX is the country code, and YYYYYYY to bethe subscriber's number, possibly with intervening spaces. The maximumlength for these phone numbers is 15.Reference materials can be found here:- http://www.itu.int/rec/T-REC-E.123/en- http://www.itu.int/rec/T-REC-E.164/enModifications to E.123----------------------7.1: The international prefix symbol "+" MUST prefix internationalphone numbers. All numbers missing this symbol will be assumed to be inthe default country code.When reformatting numbers to a standard format, the following conventionswill be taken:7.2: Parentheses will be normalized to spaces.We do not support the multiple phone numbers as described by (7.4); userscan always specify that multiple values are allowed if this is desired.The functionality specified by 7.5, 7.6 and 8 IS NOT implemented.9.2 specifies that spacing SHALL OCCUR between the country code, the trunkcode and the subscriber number. As trunk codes are omitted by convention,this means the only guaranteed separation will be between the country codeand subscriber number. Our implementation MAY treat hyphens, spaces andparentheses as advisory indicators as to where spaces should be placed.However, +1 7329060489 will stay as it was specified, while +1 (732) 906-0489will be normalized to +1 732 906 0489. As a future feature, rules maybe implemented for country codes specifying these conventions, however,I have deemed such functionality out of scope for now.The Drupal task specifies that we should validate country codes, however,due to the highly volatile nature of these codes, the author does notbelieve that it is a good idea to maintain a list of valid country codes.Thus, we only validate that the country code is three or less digits.Modifications to E.164----------------------Our processing for NDD's will be similarly constrained. As per7.3.2, we will treat 0 as a valid trunk code for all countries.Other digits may be specified if the fall in the form of (X), where X isa single digit that is 7 or 8.Postscript----------Modifications to our implementation will occur as necessary by user bugreports.
 |