Closed (duplicate)
Project:
Phone
Version:
6.x-2.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 21:12 UTC
Updated:
20 Aug 2012 at 06:50 UTC
Hi,
I may be doing something wrong but have tried several times and cannot get anywhere. I have a content type set-up with a phone field. This is set to British. This works fine for most cases, such as:
+44 (0)1123 111 111
However if I want to enter a shorter number, such as:
+44 (0)1123 111 11
I get an error - "is not a valid British phone number". So the question is, how do I enter a five digit number?
Nick
Comments
Comment #1
gpk commentedDuplicate of #570190: Valid UK numbers being rejected - change the rules?.
Comment #2
gpk commentedComment #3
g1smd commented> +44 (0)1123 111 111
> However if I want to enter a shorter number, such as:
> +44 (0)1123 111 11
> I get an error - "is not a valid British phone number".
Both of those are not valid numbers. There is no 0112 area code in use.
All of the valid (011x) three-digit area codes have NSN length of 10 digits.
In fact, most GB numbers have NSN length of 10 digits.
There are only 41 geographic area codes (as well as some 0800 and all 0500 numbers) that have NSN length of 9 digits.
This list shows the details:
http://aa-asterisk.org.uk/index.php/01_numbers
Comment #4
g1smd commentedI have rewritten the GB module to cover all UK numbers, submitted the patch #1728312: CCK Phone GB - Complete rewrite of code. and it awaits test.