data/PhoneNumberMetaData.xml in phonelib-0.2.6 vs data/PhoneNumberMetaData.xml in phonelib-0.2.7

- old
+ new

@@ -936,10 +936,15 @@ 911 </leadingDigits> <format>$1</format> <intlFormat>NA</intlFormat> </numberFormat> + <numberFormat pattern="(\d{2})" nationalPrefixFormattingRule="$NP$FG"> + <leadingDigits>0</leadingDigits> + <format>$1</format> + <intlFormat>NA</intlFormat> + </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern> [1-368]\d{9}| 9\d{10} @@ -1459,15 +1464,14 @@ )\d{5}| 4(?: [0-2]\d| 3[0-57-9]| 4[47-9]| - 5[0-25-9]| + 5[0-35-9]| 6[6-9]| - 7[0457-9]| - 8[17-9]| - 9[07-9] + [79][07-9]| + 8[17-9] )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>412345678</exampleNumber> </mobile> @@ -2037,11 +2041,11 @@ 2(?: 2\d{2}| 3| 4\d ) - ) + )| )\d{3}| 4(?: 0(?: 2(?: [09]\d| @@ -2297,11 +2301,11 @@ <format>$1 $2 $3 $4</format> </numberFormat> <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})"> <leadingDigits> [156]| - 7[018]| + 7[0178]| 8(?: 0[1-9]| [1-79] ) </leadingDigits> @@ -2320,21 +2324,25 @@ <generalDesc> <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern> <possibleNumberPattern>\d{8,9}</possibleNumberPattern> </generalDesc> <fixedLine> - <!-- According to the published Excel document the third digit must be 1-9. --> + <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third + digit begins with 1-9 --> <nationalNumberPattern> (?: 1[0-69]| + [23][2-8]| [49][23]| 5\d| 6[013-57-9]| - 71| - 8[0-79] - )[1-9]\d{5}| - [23][2-8]\d{6} + 71 + )\d{6}| + 8(?: + 0[1-9]| + [1-79]\d + )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>12345678</exampleNumber> </fixedLine> <mobile> @@ -2355,13 +2363,13 @@ <exampleNumber>80012345</exampleNumber> </tollFree> <premiumRate> <nationalNumberPattern> (?: - 70[2-7]| - 90\d - )\d{5} + 90| + 7[07] + )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>90123456</exampleNumber> </premiumRate> <uan> @@ -2388,37 +2396,38 @@ <generalDesc> <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> + <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been + deleted since we haven't found any numbers with this prefix and it is not mentioned in + the Onatel document. + IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the + fixed-line table, so we have not changed our patterns based on these. --> <nationalNumberPattern> (?: 20(?: 49| 5[23]| 9[016-9] )| 40(?: - 4[569]| + 4[56]| 5[4-6]| 7[0179] )| - 50(?: - [34]\d| - 50 - ) + 50[34]\d )\d{4} </nationalNumberPattern> <exampleNumber>20491234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> 6(?: [0-24-6]\d| - 70| - 8[0-8]| - 3[0-3] + 8[0-5]| + 3[0-3]| )\d{5}| 7\d{7} </nationalNumberPattern> <exampleNumber>70123456</exampleNumber> </mobile> @@ -2945,11 +2954,11 @@ </generalDesc> <fixedLine> <nationalNumberPattern> (?: 318[023]| - 416[023]| + 416[0239]| 7(?: 1[578]| 50 )\d )\d{3} @@ -2957,18 +2966,17 @@ <exampleNumber>7151234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> (?: - 318[14-68]| - 416[15-9]| + 318[1456]| + 416[15-8]| 7(?: 0[01]| - 7[07]| [89]\d )\d - )\d{3} + )\d{3}| </nationalNumberPattern> <exampleNumber>3181234</exampleNumber> </mobile> </territory> @@ -3076,11 +3084,11 @@ <mobile> <nationalNumberPattern> 1(?: 1(?: 5[347]| - [6-9]\d + [6-9]\d| )| [2-9][6-9]\d )\d{6}| (?: 2[12478]| @@ -3352,98 +3360,14 @@ <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10" internationalPrefix="810" nationalPrefixForParsing="8?0?" nationalPrefix="8" mobileNumberPortableRegion="true"> <availableFormats> <numberFormat nationalPrefixFormattingRule="$NP 0$FG" - pattern="(\d{2})(\d{3})(\d{2})(\d{2})"> - <leadingDigits> - 17[0-3589]| - 2[4-9]| - [34] - </leadingDigits> - <leadingDigits> - 17(?: - [02358]| - 1[0-2]| - 9[0189] - )| - 2[4-9]| - [34] - </leadingDigits> - <format>$1 $2-$3-$4</format> + pattern="([1-4]\d)(\d{3})(\d{4})"> + <leadingDigits>[1-4]</leadingDigits> + <format>$1 $2 $3</format> </numberFormat> - <numberFormat nationalPrefixFormattingRule="$NP 0$FG" - pattern="(\d{3})(\d{2})(\d{2})(\d{2})"> - <leadingDigits> - 1(?: - 5[24]| - 6[235]| - 7[467] - )| - 2(?: - 1[246]| - 2[25]| - 3[26] - ) - </leadingDigits> - <leadingDigits> - 1(?: - 5[24]| - 6(?: - 2| - 3[04-9]| - 5[0346-9] - )| - 7(?: - [46]| - 7[37-9] - ) - )| - 2(?: - 1[246]| - 2[25]| - 3[26] - ) - </leadingDigits> - <format>$1 $2-$3-$4</format> - </numberFormat> - <numberFormat nationalPrefixFormattingRule="$NP 0$FG" - pattern="(\d{4})(\d{2})(\d{3})"> - <leadingDigits> - 1(?: - 5[169]| - 6[3-5]| - 7[179] - )| - 2(?: - 1[35]| - 2[34]| - 3[3-5] - ) - </leadingDigits> - <leadingDigits> - 1(?: - 5[169]| - 6(?: - 3[1-3]| - 4| - 5[125] - )| - 7(?: - 1[3-9]| - 7[0-24-6]| - 9[2-7] - ) - )| - 2(?: - 1[35]| - 2[34]| - 3[3-5] - ) - </leadingDigits> - <format>$1 $2-$3</format> - </numberFormat> <numberFormat nationalPrefixFormattingRule="$NP $FG" pattern="([89]\d{2})(\d{3})(\d{4})"> <leadingDigits> 8[01]| 9 @@ -3466,12 +3390,12 @@ </generalDesc> <!-- Toll-free and premium rate numbers are not available from abroad. --> <noInternationalDialling> <nationalNumberPattern> 8(?: - [013]| - [12]0 + [01]| + 20 )\d{8}| 902\d{7} </nationalNumberPattern> <possibleNumberPattern>\d{10,11}</possibleNumberPattern> <exampleNumber>82012345678</exampleNumber> @@ -3480,11 +3404,11 @@ <nationalNumberPattern> (?: 1(?: 5(?: 1[1-5]| - [24]\d| + 2\d| 6[2-4]| 9[1-7] )| 6(?: [235]\d| @@ -3501,14 +3425,14 @@ 2(?: [235]\d| 4[0-8] )| 3(?: - [26]\d| + 2\d| 3[02-79]| 4[024-7]| - 5[03-7] + 5[0-7] ) ) )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{7,9}</possibleNumberPattern> @@ -4022,11 +3946,11 @@ <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})"> <format>$1 $2 $3 $4</format> </numberFormat> </availableFormats> <generalDesc> - <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern> + <nationalNumberPattern>[02-6]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> (?: @@ -4047,21 +3971,17 @@ </nationalNumberPattern> <exampleNumber>21234567</exampleNumber> </fixedLine> <mobile> <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been - successfully delivered. Supported by numbers found on the internet. The prefix 56 was - assigned to MTN in July 2013: - http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf - 50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. --> - <nationalNumberPattern> + successfully delivered. Supported by numbers found on the internet. --> + <nationalNumberPattern> (?: 0[1-9]| 4[0-24-9]| - 5[4-9]| - 6[015-79]| - 77 + 5[05-9]| + 6[015679] )\d{6} </nationalNumberPattern> <exampleNumber>01234567</exampleNumber> </mobile> </territory> @@ -4723,13 +4643,11 @@ </territory> <!-- Colombia --> <!-- http://www.itu.int/oth/T020200002C/en --> <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia --> - <!-- Extra international dialling prefixes from www.claro.com.co and www.tigo.com.co. --> - <!-- 05 and 005 are for Orbitel: co.orbitel.com --> - <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])" + <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999" nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?" mobileNumberPortableRegion="true"> <availableFormats> <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG" nationalPrefixFormattingRule="($FG)"> @@ -4791,15 +4709,16 @@ <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>12345678</exampleNumber> </fixedLine> <mobile> + <!-- Virgin Mobile Colombia have reported that they are now using the 319 prefix. --> <nationalNumberPattern> 3(?: - 0[0-5]| + 0[0-24]| 1\d| - [25][01] + 2[01] )\d{7} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>3211234567</exampleNumber> </mobile> @@ -4821,11 +4740,11 @@ </territory> <!-- Costa Rica --> <!-- http://www.itu.int/oth/T0202000030/en --> <territory id="CR" countryCode="506" internationalPrefix="00" - nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))" + nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))" carrierCodeFormattingRule="$CC $FG"> <availableFormats> <numberFormat pattern="(\d{4})(\d{4})"> <leadingDigits> [24-7]| @@ -4876,11 +4795,14 @@ 210[0-6]\d{4}| 4(?: 0(?: [04]0\d{4}| 10[0-3]\d{3}| - 2900\d{2}| + 2(?: + 00\d| + 900 + )\d{2}| 3[01]\d{4}| 5\d{5}| 70[01]\d{3}| 8[0-2]\d{4} )| @@ -5004,15 +4926,14 @@ <nationalNumberPattern> 9(?: [48]\d{2}| 50\d| 7(?: - 2[0-24]| + 2[0-2]| [34]\d| 6[35-7]| - 77| - 8[7-9] + 77 ) )\d{4} </nationalNumberPattern> <exampleNumber>94151234</exampleNumber> </fixedLine> @@ -5022,11 +4943,11 @@ 5(?: [1246]\d| 3[01] )| 6(?: - [16-9]\d| + [1679]\d| 3[01] ) )\d{4} </nationalNumberPattern> <exampleNumber>95181234</exampleNumber> @@ -6163,11 +6084,14 @@ </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{6,7})"> <leadingDigits> - 1[35]| + 1(?: + 3| + 5[23] + )| [4-6]| [89][2-9] </leadingDigits> <format>$1 $2</format> </numberFormat> @@ -6182,22 +6106,19 @@ <possibleNumberPattern>\d{5,10}</possibleNumberPattern> </generalDesc> <fixedLine> <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also that the plan says numbers starting with 15 should be followed by seven digit - subscriber numbers, but some numbers we have found online are in fact six digit. + subscriber numbers, but all numbers we have found online are in fact six digit. Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6 and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and 092 and with 5 and 6 for 96. --> <nationalNumberPattern> (?: 1( 3[23]\d| - 5(?: - [23]| - 9\d - ) + 5[23] )| 2[2-4]\d{2}| 3\d{2}| 4(?: 0[2-5]| @@ -6272,16 +6193,19 @@ <exampleNumber>528812345</exampleNumber> </fixedLine> <!-- The following sections are copied verbatim from Morocco to allow these non-geographical numbers to be recognized as available from within Western Sahara. --> <mobile> + <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online, + bug-reports, and information provided directly by the carriers. --> <nationalNumberPattern> 6(?: 0[0-8]| - [12-7]\d| + [124-7]\d| + 3[03-8]| 8[01]| - 9[27-9] + 99 )\d{6} </nationalNumberPattern> <exampleNumber>650123456</exampleNumber> </mobile> <tollFree> @@ -6593,12 +6517,12 @@ </leadingDigits> <format>$1 $2</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{4,10})"> <leadingDigits> - [14]| 2[09]| + [14]| 50| 7[135] </leadingDigits> <format>$1 $2</format> </numberFormat> @@ -6740,16 +6664,16 @@ </nationalNumberPattern> <possibleNumberPattern>\d{7}</possibleNumberPattern> <exampleNumber>3212345</exampleNumber> </fixedLine> <mobile> - <!-- Adding 7[5-8], 8[0367], and 9[034678] from numbers found online and numbers where SMSs + <!-- Adding 7[67], 8[367], and 9[034678] from numbers found online and numbers where SMSs have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. --> <nationalNumberPattern> (?: - 7[0-8]| - 8[03467]| + 7[0-467]| + 8[3467]| 9\d )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{7}</possibleNumberPattern> <exampleNumber>7012345</exampleNumber> @@ -7962,44 +7886,31 @@ </tollFree> <!-- No premiumRate information can be found. --> </territory> <!-- Gibraltar --> - <!-- http://www.gra.gi/index.php?topic=numbering+plan&section=legislation&site=communications --> <territory id="GI" countryCode="350" internationalPrefix="00"> - <availableFormats> - <!-- Most numbers are formatted as a block --> - <numberFormat pattern="(\d{3})(\d{5})"> - <leadingDigits>2</leadingDigits> - <format>$1 $2</format> - </numberFormat> - </availableFormats> + <!-- No formatting rules - numbers are always formatted as a block. --> <generalDesc> <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> 2(?: 00\d| - 1(?: - 6[24-7]| - 9\d - )| - 2(?: - 00| - 2[2457] - ) + 16[0-7]| + 22[2457] )\d{4} </nationalNumberPattern> <exampleNumber>20012345</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> (?: - 5[46-8]| - 62 + 5[4-8]| + 60 )\d{6} </nationalNumberPattern> <exampleNumber>57123456</exampleNumber> </mobile> <tollFree> @@ -8095,11 +8006,11 @@ <exampleNumber>5661234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> (?: - 2[0-6]| + 2[0-2]| [3679]\d )\d{5} </nationalNumberPattern> <exampleNumber>3012345</exampleNumber> </mobile> @@ -8136,13 +8047,19 @@ </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>30241234</exampleNumber> </fixedLine> <mobile> - <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd - 2013. --> - <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern> + <!-- Limited to the new 9-digit mobile ranges, which came into effect March 29th 2013. --> + <nationalNumberPattern> + 6(?: + [03]1| + 2[128]| + 5[57]| + 6[2469] + )\d{6} + </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>601123456</exampleNumber> </mobile> <voip> <!-- Gamma concept network is being listed as VoIP as per @@ -8759,11 +8676,11 @@ <generalDesc> <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> - <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. --> + <!-- Extra prefixes 227[01389], 228X and 2292 were added from numbers found online. --> <nationalNumberPattern> 2(?: 2(?: 0[019]| 1[1-36]| @@ -8785,12 +8702,12 @@ 5\d| 6[56]| 74 )| 6(?: - [056]\d| 4[0-378]| + [56]\d| [78][0-8]| 9[01] )| 7(?: 6[46-9]| @@ -9707,10 +9624,11 @@ <exampleNumber>5512345678</exampleNumber> </uan> </territory> <!-- India --> + <!-- http://www.dot.gov.in/numbering_plan/numberplanindex.htm --> <!-- http://www.itu.int/oth/T0202000063/en --> <!-- http://en.wikipedia.org/wiki/%2B91 --> <!-- http://www.coai.in/msccodes.php --> <!-- Note that several changes in area codes have occurred since the numbering plan was released - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified @@ -9724,21 +9642,22 @@ <leadingDigits> 7(?: 2[0579]| 3[057-9]| 4[0-389]| + 5[024-9]| 6[0-35-9]| - [57]| + 7| 8[0-79] )| 8(?: 0[015689]| 1[0-57-9]| 2[2356-9]| 3[0-57-9]| [45]| - 6[02457-9]| + 6[0245789]| 7[1-69]| 8[0124-9]| 9[02-9] )| 9 @@ -9763,23 +9682,25 @@ [29][89]| 39| 8[389] )| 5(?: - [034678]| - 2[03-9]| - 5[017-9]| - 9[7-9] + 0| + [47]9| + [25]0| + 6[6-9]| + [89][7-9] )| 6(?: 0[027]| - 1[0-257-9]| - 2[0-4]| + 12| + 20| 3[19]| - 5[4589]| - [679]| - 8[0-589] + 5[45]| + 6[5-9]| + 7[679]| + 9[1-46-9] )| 7(?: 0[2-9]| [1-79]| 8[1-9] @@ -10197,12 +10118,12 @@ updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. --> <mobile> <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC codes list, are added because SMS messages have been successfully sent to these numbers. It seems almost impossible to know for some of these numbers whether they are - land-line or mobile, since the ranges overlap. Extra prefixes added: 76[89]5, 8299, - 8309. New prefixes were also added based on the document provided from mobile carriers: + land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309. + New prefixes were added based on the document provided from mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 --> <nationalNumberPattern> (?: 7(?: 2(?: @@ -10223,23 +10144,25 @@ [29][89]| 39| 8[389] )| 5(?: - [034678]\d| - 2[03-9]| - 5[017-9]| - 9[7-9] + 0\d| + [47]9| + [25]0| + 6[6-9]| + [89][7-9] )| 6(?: 0[027]| - 1[0-257-9]| - 2[0-4]| + 12| + 20| 3[19]| - 5[4589]| - [679]\d| - 8[0-589] + 5[45]| + 6[5-9]| + 7[679]| + 9[1-46-9] )| 7(?: 0[2-9]| [1-79]\d| 8[1-9] @@ -10634,11 +10557,11 @@ <exampleNumber>4101234</exampleNumber> </fixedLine> <mobile> <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. --> <nationalNumberPattern> - 38[589]\d{6}| + 38[59]\d{6}| (?: 6(?: 1[0-8]| 3[0-27-9]| 4[0-27]| @@ -10659,13 +10582,10 @@ )\d{4} </nationalNumberPattern> <exampleNumber>6101234</exampleNumber> </mobile> <tollFree> - <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real - numbers can be found online, and it is not clear what these are; the standard - definition would have them under the +800 country code instead of Iceland. --> <nationalNumberPattern>800\d{4}</nationalNumberPattern> <possibleNumberPattern>\d{7}</possibleNumberPattern> <exampleNumber>8001234</exampleNumber> </tollFree> <premiumRate> @@ -10678,10 +10598,11 @@ <possibleNumberPattern>\d{7}</possibleNumberPattern> <exampleNumber>4921234</exampleNumber> </voip> <voicemail> <nationalNumberPattern> + 388\d{6}| (?: 6(?: 2[0-8]| 49| 8\d @@ -10693,12 +10614,11 @@ 7[014-9] )| 95[48] )\d{4} </nationalNumberPattern> - <possibleNumberPattern>\d{7}</possibleNumberPattern> - <exampleNumber>6201234</exampleNumber> + <exampleNumber>388123456</exampleNumber> </voicemail> </territory> <!-- Italy --> <!-- http://en.wikipedia.org/wiki/%2B39 --> @@ -11263,12 +11183,11 @@ 6(?: 2[0-35-9]| 3[0-57-8]| 4[24-7]| 5[0-24-8]| - [6-8][02]| - 9[0-2] + [6-9][02] )| 7(?: 0[1-79]| 10| 2[014-7]| @@ -11280,17 +11199,15 @@ 32(?: 0[1-69]| 1[1-35-7]| 2[024-7]| 3\d| - 4[0-2]| - [57][02]| + [457][02]| 60 )| 53(?: - 0[0-2]| - [13][02]| + [013][02]| 2[0-59]| 49| 5[0-35-9]| 6[15]| 7[45]| @@ -11335,12 +11252,12 @@ <mobile> <nationalNumberPattern> 7(?: 55| 7[25-9]| - 8[05-9]| - 9[015-9] + 8[5-9]| + 9[05-9] )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>790123456</exampleNumber> </mobile> @@ -12652,46 +12569,40 @@ </territory> <!-- Kiribati --> <!-- http://www.itu.int/oth/T0202000071/en --> <!-- We include the national prefix for parsing here just in case numbers can be dialled with a - leading 0 - no numbers online have been found formatted this way, but the ITU document - lists it as a national dialling prefix. --> + leading 0 - the main ITU document says this is not the case and no numbers online have been + found formatted this way, but Kiribati's own document lists it as a national dialling + prefix. --> <territory id="KI" countryCode="686" internationalPrefix="00" nationalPrefixForParsing="0"> <!-- Numbers should be formatted as a block." --> <generalDesc> - <nationalNumberPattern> - [2-58]\d{4}| - 7\d{7} - </nationalNumberPattern> - <possibleNumberPattern>\d{5,8}</possibleNumberPattern> + <nationalNumberPattern>[2-689]\d{4}</nationalNumberPattern> + <possibleNumberPattern>\d{5}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> (?: - [24]\d| - 3[1-9]| + [234]\d| 50| - 8[0-5] + 8[1-5] )\d{3} </nationalNumberPattern> - <possibleNumberPattern>\d{5}</possibleNumberPattern> <exampleNumber>31234</exampleNumber> </fixedLine> <mobile> - <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the - pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. --> + <!-- Exclude 99[2349] from mobile since these are emergency numbers. --> <nationalNumberPattern> - 7(?: - [24]\d| - 3[1-9]| - 8[0-5] - )\d{5} + 6\d{4}| + 9(?: + [0-8]\d| + 9[015-8] + )\d{2} </nationalNumberPattern> - <possibleNumberPattern>\d{8}</possibleNumberPattern> - <exampleNumber>72012345</exampleNumber> + <exampleNumber>61234</exampleNumber> </mobile> </territory> <!-- Comoros --> <!-- http://www.itu.int/oth/T020200002D/en --> @@ -13127,11 +13038,11 @@ <!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. --> <nationalNumberPattern> (?: 5(?: - 1[0-5]| + 1[0-35]| [05]\d )| 6(?: 0[034679]| 5[015-9]| @@ -13142,11 +13053,11 @@ 9(?: 0[09]| 4[049]| 6[069]| [79]\d| - 8[08] + 88 ) )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>50012345</exampleNumber> @@ -14384,17 +14295,19 @@ </nationalNumberPattern> <exampleNumber>520123456</exampleNumber> </fixedLine> <!-- Also duplicated in Western Sahara, please ensure you update both. --> <mobile> - <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf --> + <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01], 698 are from numbers found + online, bug-reports, and information provided directly by the carriers. --> <nationalNumberPattern> 6(?: 0[0-8]| - [12-7]\d| + [124-7]\d| + 3[013-8]| 8[01]| - 9[27-9] + 9[89] )\d{6} </nationalNumberPattern> <exampleNumber>650123456</exampleNumber> </mobile> <tollFree> @@ -14746,13 +14659,18 @@ <exampleNumber>202123456</exampleNumber> </fixedLine> <mobile> <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne out by reality. --> - <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern> + <nationalNumberPattern> + 3(?: + [02-4]\d| + 90 + )\d{6} + </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> - <exampleNumber>321234567</exampleNumber> + <exampleNumber>301234567</exampleNumber> </mobile> <!-- Putting VSAT numbers here. --> <voip> <nationalNumberPattern>22\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> @@ -14851,15 +14769,13 @@ <exampleNumber>22212345</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> 7(?: - [0-25-8]\d{2}| - 32\d| - 421 - )\d{4} - </nationalNumberPattern> + [0-25-8]\d| + 33 + )\d{5}</nationalNumberPattern> <exampleNumber>72345678</exampleNumber> </mobile> <tollFree> <nationalNumberPattern>800\d{5}</nationalNumberPattern> <exampleNumber>80012345</exampleNumber> @@ -14978,34 +14894,27 @@ <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(9)(\d{3})(\d{4,5})"> <leadingDigits> 9(?: - 2[0-4]| - [35-9]| + [235-9]| 4[13789] ) </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(9)(4\d{4})(\d{4})"> <leadingDigits>94[0245]</leadingDigits> <format>$1 $2 $3</format> </numberFormat> - <!-- Following majority of numbers found online. --> - <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})"> - <leadingDigits>925</leadingDigits> - <format>$1 $2 $3 $4</format> - </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern> [14578]\d{5,7}| [26]\d{5,8}| 9(?: - 2\d{0,2}| - [58]| + [258]| 3\d| 4\d{1,2}| [679]\d? )\d{6} </nationalNumberPattern> @@ -15091,14 +15000,11 @@ <mobile> <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. --> <nationalNumberPattern> 17[01]\d{4}| 9(?: - 2(?: - [0-4]| - 5\d{2} - )| + 2[0-4]| 3[136]\d| 4(?: 0[0-4]\d| [1379]\d| [24][0-589]\d| @@ -15519,21 +15425,18 @@ <fixedLine> <nationalNumberPattern> 2(?: 0(?: 1[0-6]| - 3[1-4]| [69]\d )| [1-357]\d{2} )\d{4} </nationalNumberPattern> <exampleNumber>21001234</exampleNumber> </fixedLine> <mobile> - <!-- 7210 and 92XX come from the allocations listed on www.mca.org.mt, but they are not - listed in the latest ITU document. --> <nationalNumberPattern> (?: 7(?: 210| [79]\d{2} @@ -15647,11 +15550,11 @@ 7[1-9]| 9\d )| 7\d{2}| 8(?: - [256]\d| + [26]\d| 7[15-8] )| 9[0-8]\d )\d{4} </nationalNumberPattern> @@ -16212,19 +16115,20 @@ [0189]\d| [2-6]| 7\d? )| 3(?: - [01378]| - 2\d + 2\d| + 3[378] )| 4[01]| 69| 7[014] )| 2(?: 17| + 25| 5(?: [0-36-8]| 4\d? )| 69| @@ -16485,26 +16389,25 @@ <availableFormats> <numberFormat pattern="([129])(\d{3})(\d{3,4})"> <leadingDigits>[129]</leadingDigits> <format>$1 $2 $3</format> </numberFormat> - <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})"> + <numberFormat pattern="([3-8]\d)(\d{3})(\d{2,3})"> <leadingDigits> [3-6]| 7(?: [1-79]| 0[1-9] )| 8[2-9] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> - <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})"> + <numberFormat pattern="([78]\d{2})(\d{3})(\d{3,4})"> <leadingDigits> 70| - 8[01]| - 909 + 8[01] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="([78]00)(\d{4})(\d{4,5})"> <leadingDigits>[78]00</leadingDigits> @@ -16519,23 +16422,19 @@ <format>$1 $2 $3</format> </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern> - [1-6]\d{5,8}| - 9\d{5,9}| + [1-69]\d{5,8}| [78]\d{5,13} </nationalNumberPattern> <possibleNumberPattern>\d{5,14}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> [12]\d{6,7}| - 9(?: - 0[3-9]| - [1-9]\d - )\d{5}| + 9\d{7}| (?: 3\d| 4[023568]| 5[02368]| 6[02-469]| @@ -16559,11 +16458,11 @@ <mobile> <!-- More 81X prefixes have been added based on online numbers, including the prefix 817 from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by Starcomms have apparently, according to the company, been used for mobile numbers too, despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain. - 9091 has been added for Etisalat. --> + --> <nationalNumberPattern> (?: 1(?: 7[34]\d| 8(?: @@ -16641,12 +16540,11 @@ 2[1-9] )| 8(?: 0[2-9]| 1\d - )\d| - 9091 + )\d )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{8,10}</possibleNumberPattern> <exampleNumber>8021234567</exampleNumber> </mobile> @@ -16670,27 +16568,22 @@ <numberFormat pattern="(\d{4})(\d{4})"> <format>$1 $2</format> </numberFormat> </availableFormats> <generalDesc> - <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern> + <nationalNumberPattern>[1258]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern>2\d{7}</nationalNumberPattern> <exampleNumber>21234567</exampleNumber> </fixedLine> <mobile> <!-- Online users have reported seeing 5500 used by Claro; until we can find actual numbers - or any documentation about it, we restrict this pattern to this prefix exactly. 57 and - 78 were added from bug reports/numbers found online. --> + or any documentation about it, we restrict this pattern to this prefix exactly. --> <nationalNumberPattern> - 5(?: - 500\d{4}| - 7\d{6} - )| - 78\d{6}| + 5500\d{4}| 8\d{7} </nationalNumberPattern> <exampleNumber>81234567</exampleNumber> </mobile> <tollFree> @@ -17977,11 +17870,12 @@ <nationalNumberPattern> 3(?: 0\d| 1[1-5]| 2[0-5]| - [34][1-7]| + 3[1-6]| + 4[1-7]| 55| 64 )\d{7} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> @@ -19722,11 +19616,11 @@ <format>$1 $2 $3 $4</format> </numberFormat> <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})"> <leadingDigits> [37][01]| - 4[0139]| + 4[019]| 51| 6 </leadingDigits> <format>$1 $2 $3</format> </numberFormat> @@ -19761,17 +19655,18 @@ </nationalNumberPattern> <possibleNumberPattern>\d{7,8}</possibleNumberPattern> <exampleNumber>11234567</exampleNumber> </fixedLine> <mobile> - <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide - mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si - --> + <!-- We include 049 here - it is VoIP in the plan, but SMS messages have been successfully + delivered - and it is run by Mobitel. There are also mobile numbers found on the + internet with this prefix - it is apparently used in Kosovo. Also + added 068, which is used by the mobile operator bob.si --> <nationalNumberPattern> (?: [37][01]| - 4[0139]| + 4[019]| 51| 6[48] )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> @@ -20067,76 +19962,70 @@ </voip> </territory> <!-- Senegal --> <!-- http://www.itu.int/oth/T02020000B8/en --> - <!-- http://www.artpsenegal.net --> <territory id="SN" countryCode="221" internationalPrefix="00"> <availableFormats> <!-- Using yellow pages and online telecom company formatting, rather than that implied in the national numbering plan. --> <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})"> - <leadingDigits>[37]</leadingDigits> <format>$1 $2 $3 $4</format> </numberFormat> - <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"> - <leadingDigits>8</leadingDigits> - <format>$1 $2 $3 $4</format> - </numberFormat> </availableFormats> <generalDesc> - <nationalNumberPattern>[378]\d{8}</nationalNumberPattern> + <nationalNumberPattern>[37]\d{8}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> 3(?: 0(?: - 1[0-2]| + 1[01]| 80 )| - 211| 3(?: 8[1-9]| 9[2-9] - )| - 90[1-5] + ) )\d{5} </nationalNumberPattern> <exampleNumber>301012345</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> 7(?: - [07]\d| - 21| - 6[1-9]| - 8[0-26]| - 90 - )\d{6} + 0(?: + [01279]0| + 3[03]| + 4[05]| + 5[06]| + 6[03-5]| + 8[029] + )| + 6(?: + 1[23]| + 2[89]| + 3[3489]| + 4[6-9]| + 5\d| + 6[3-9]| + 7[45]| + 8[3-8] + )| + 7\d{2}| + 8(?: + 01| + 1[01] + ) + )\d{5} </nationalNumberPattern> - <exampleNumber>701234567</exampleNumber> + <exampleNumber>701012345</exampleNumber> </mobile> - <tollFree> - <nationalNumberPattern>800\d{6}</nationalNumberPattern> - <possibleNumberPattern>\d{9}</possibleNumberPattern> - <exampleNumber>800123456</exampleNumber> - </tollFree> - <premiumRate> - <!-- Revenu Partagé in the plan. --> - <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern> - <possibleNumberPattern>\d{9}</possibleNumberPattern> - <exampleNumber>884123456</exampleNumber> - </premiumRate> - <sharedCost> - <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern> - <possibleNumberPattern>\d{9}</possibleNumberPattern> - <exampleNumber>810123456</exampleNumber> - </sharedCost> <voip> - <nationalNumberPattern>391\d{6}</nationalNumberPattern> - <exampleNumber>391011234</exampleNumber> + <nationalNumberPattern>33301\d{4}</nationalNumberPattern> + <exampleNumber>333011234</exampleNumber> </voip> </territory> <!-- Somalia --> <!-- http://www.itu.int/oth/T02020000C0/en --> @@ -20260,18 +20149,16 @@ )\d{4} </nationalNumberPattern> <exampleNumber>211234</exampleNumber> </fixedLine> <mobile> + <!-- Adding 74 from numbers found online. --> <nationalNumberPattern> (?: - 7(?: - [1-357]\d| - 4[0-5] - )| - 8[1-9]\d - )\d{4} + 7[1-57]| + 8[1-9] + )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{7}</possibleNumberPattern> <exampleNumber>7412345</exampleNumber> </mobile> <voip> @@ -20615,11 +20502,11 @@ )| 3(?: 3[1-389]| 4[1-7] )| - 4[34][1-3] + 4[34][12] )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>6492311234</exampleNumber> </mobile> @@ -21044,13 +20931,12 @@ </fixedLine> <mobile> <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this has been suspended. It is unclear whether it will resume. We support both ranges in the - meantime. The range 62 seems also now to be in use, according to numbers found online. - --> - <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern> + meantime. --> + <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern> <exampleNumber>66123456</exampleNumber> </mobile> <!-- No tollFree or premiumRate information can be found. --> </territory> @@ -21293,16 +21179,15 @@ )\d{4} </nationalNumberPattern> <exampleNumber>8682211234</exampleNumber> </fixedLine> <mobile> - <!-- Adding 48X & 70X from the IR21 published by TSTT. 288 seems to be used based on numbers - found online. --> + <!-- Adding 48X & 70X from the IR21 published by TSTT. --> <nationalNumberPattern> 868(?: 2(?: - 8[5-9]| + 8[59]| 9\d )| 3(?: 0[1-9]| 1[02-9]| @@ -21729,10 +21614,10 @@ 40| [5-9]\d )| 3[23]\d| 5[0-4]\d| - 6[03]\d| + 60\d| 8[0-2]\d )\d{4}| [34]\d{8} </nationalNumberPattern> <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if