After the international area code (+39) the check accepts 2-3 digits of prefix followed by other 6-7 digits, optionally this blocks can be separated by space or other chars.
That's quite incomplete.
The following cases should be included
i) for 2 digits (including the initial 0) geographic prefixes there can be 8 digits after the prefix (+39 0x abcdefgh), 9 if the first non prefix digit is 1 (+39 0x 1abcdefgh)
i) for 3 digits (including the initial 0) geographic prefixes there can be 8 digits after the prefix if the first non prefix digit is 1 (+39 0xy 1abcdefg)
ii) there can be geographic prefixes with 4 digits (including the initial 0); in that case there can be a maximum of 6 digits after the prefix (+39 0xyz abcdef), 7 if the first non prefix digit is 1 (+39 0xyz 1abcdef).
For reference, see the document from ITU on italian numbering plan.
Comments
Comment #1
cesareaugusto commentedIs it fixed?
Comment #2
gittosj commentedEr no - don't think so - current dev still has the same problem. Anyone able to roll a patch to fix this?
Slight deal breaker since it automatically removes the correct leading zero from numbers and makes them incorrect / unreachable so a correct number such as +39 041 XXYYXXY is changed to +39 41 XXYYXXY so that it appears to conform to normal European practice but is actually quite wrong and unreachable.
Comment #3
cweagansSo, I don't know anything about foreign phone numbers, and I'm going to have to rely a lot on users to supply lots of information about how things SHOULD work (if you don't know, I'm the new maintainer of this module).
What are some numbers that don't work currently? What do they currently do and what do you expect them to do instead? With that information, I should be able to start on a fix.
Comment #4
gittosj commentedHere's an example of a number of a very good restaurant, called Corte Sconta in Venice / Venezia./ Go there if you visit.
041 5227024 - number if you dial inside Italy
+39 041 5227024 - (note the zero is retained not dropped) number to dial outside (all of Europe GSM and some US)
011 39 041 5227024 - from US
The one I think we're looking for is +39 041 5227024 to be ITU compatible. The bug is that the leading zero is being dropped. Correct behaviour is that it should be retained.
Very good guide here: http://en.wikipedia.org/wiki/Telephone_numbers_in_Italy
Lets be honest - I love Italy deeply but the phone numbering is seriously erratic (by international norms)! That said we need drupal to adapt to Italy rather than the other way round!
Comment #5
g1smd commented> So, I don't know anything about foreign phone numbers, and I'm going to have to rely a lot on users to supply lots of information about how things SHOULD work (if you don't know, I'm the new maintainer of this module).
The official information is here:
http://www.itu.int/oth/T0202.aspx?parent=T0202
Note that some administrations can take literally years to update their information.
This unofficial list is also quite useful:
http://en.wikipedia.org/wiki/Category:Telephone_numbers_by_country