okohll/agileBase — pull request #33 by g1smd (2012-08-23 21:21:24+00:00)
Title: Remove support for 011 as a dial prefix on international numbers.

Temporarily remove support for 011 as a dial prefix on international numbers because of a clash with GB 011x area codes when GB phone number is entered in national format but with incorrect spacing.

This could be solved if the international routines knew the valid number lengths for each country. They could then deduce it's a UK number or not, for most numbers, but it would not be foolproof. Alternatively the UK pattern matching could be opened up to allow for multiple spaces and other punctuation so that less numbers were matches as international. There's then also a danger of false matches against other numbers entered that are not telephone numbers.

Since the vast majority of numbers entered into the database will be GB phone numbers, it's probably not worth persuing to support 011 for international numbers.

agileBase now supports 011 44, 00 44, +44 and 0 for GB numbers and 00 CCC and +CCC for international numbers.

Without context, ambiguities are inevitable when support for 011 as an international dial prefix is included.

011 682 2 4455 is a 5 digit local number in Rarotonga in the Cook Islands as dialled from the US or Canada (should normalise to +682 24455).

0116 822 4455 is a 7 digit local number in Leicester in the UK (should normalise to +44 116 822 4455).