data/PhoneNumberMetaData.xml in phonelib-0.3.0 vs data/PhoneNumberMetaData.xml in phonelib-0.3.1

- old
+ new

@@ -779,23 +779,24 @@ 7[069]| 8[013578] ) ) </leadingDigits> - <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948 - - and several 38[3578]X four-digit area codes. --> + <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948, + 2983, and several 38[3578]X four-digit area codes. --> <leadingDigits> 9(?: 2(?: 2[013]| 3[067]| 49| 6[01346]| 80| 9(?: - [17-9]| - 4[13479] + [179]| + 4[13479]| + 8[0-24-9] ) )| 3(?: 36| 4[12358]| @@ -2417,12 +2418,11 @@ <exampleNumber>20491234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> 6(?: - [0-24-689]\d| - 3[0-7]| + [0-689]\d| 7[0-2] )\d{5}| 7\d{7} </nationalNumberPattern> <exampleNumber>70123456</exampleNumber> @@ -2964,13 +2964,13 @@ <!-- Brazil --> <!-- http://en.wikipedia.org/wiki/%2B55 --> <!-- http://www.itu.int/oth/T020200001D/en --> <territory id="BR" countryCode="55" - internationalPrefix="00(?:1[45]|2[135]|[34]1|43)" + internationalPrefix="00(?:1[45]|2[135]|31|4[13])" nationalPrefix="0" - nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?" + nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?" nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true"> <!-- The national prefix for parsing here also contains a capturing group for the main number, since the carrier codes here may also be area codes, so we want to check the length of the number after capturing. We also need a nationalTransformRule to repopulate with the number without the carrier code. --> @@ -3121,10 +3121,11 @@ 9[2-467] )| 461| 502| 6(?: + 0[12]| 12| 7[67]| 8[78]| 9[89] )| @@ -4100,11 +4101,11 @@ we extract these carrier codes as well. --> <availableFormats> <numberFormat pattern="(\d)(\d{4})(\d{4})" nationalPrefixFormattingRule="($FG)" carrierCodeFormattingRule="$CC ($FG)"> - <leadingDigits>2</leadingDigits> + <leadingDigits>22</leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="($FG)" carrierCodeFormattingRule="$CC ($FG)"> @@ -4146,10 +4147,16 @@ <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1230)(\d{3})(\d{4})"> <leadingDigits>1</leadingDigits> <format>$1 $2 $3</format> </numberFormat> + <numberFormat pattern="(\d{5})(\d{4})" + nationalPrefixFormattingRule="($FG)" + carrierCodeFormattingRule="$CC ($FG)"> + <leadingDigits>219</leadingDigits> + <format>$1 $2</format> + </numberFormat> <!-- Format some short numbers as a block. --> <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4,5})"> <leadingDigits>[1-9]</leadingDigits> <format>$1</format> @@ -4182,12 +4189,15 @@ other areas will probably be allowed to take on other values. See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/ http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias --> <nationalNumberPattern> + 2(?: + 2\d{7}| + 1962\d{4} + )| (?: - 22| 3[2-5]| [47][1-35]| 5[1-3578]| 6[1347] )\d{7}| @@ -4489,12 +4499,12 @@ 5[1-5] ) </leadingDigits> <format>$1 $2 $3</format> </numberFormat> - <numberFormat pattern="(1[3-58]\d)(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG"> - <leadingDigits>1[3-58]</leadingDigits> + <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG"> + <leadingDigits>1[3-578]</leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(10800)(\d{3})(\d{4})"> <leadingDigits>108</leadingDigits> <leadingDigits>1080</leadingDigits> @@ -4642,15 +4652,17 @@ )\d{4} </nationalNumberPattern> <exampleNumber>1012345678</exampleNumber> </fixedLine> <mobile> + <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. --> <nationalNumberPattern> 1(?: [38]\d| 4[57]| - 5[0-35-9] + 5[0-35-9]| + 7[06-8] )\d{8} </nationalNumberPattern> <possibleNumberPattern>\d{11}</possibleNumberPattern> <exampleNumber>13123456789</exampleNumber> </mobile> @@ -4804,14 +4816,11 @@ <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>22123456</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> - 5(?: - 0[0-4]| - 7[0-3] - )\d{5}| + 57[0-3]\d{5}| 6(?: [0-2]\d| 30 )\d{5}| 7[0-3]\d{6}| @@ -5384,14 +5393,18 @@ <numberFormat pattern="(\d{3})(\d)(\d{4,10})"> <leadingDigits> (?: 18| 90 - )0 + )0| + 137 </leadingDigits> <leadingDigits> - 180| + 1(?: + 37| + 80 + )| 900[1359] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(1\d{2})(\d{5,11})"> @@ -5418,10 +5431,14 @@ </numberFormat> <numberFormat pattern="(700)(\d{4})(\d{4})"> <leadingDigits>700</leadingDigits> <format>$1 $2 $3</format> </numberFormat> + <numberFormat pattern="(138)(\d{4})"> + <leadingDigits>138</leadingDigits> + <format>$1 $2</format> + </numberFormat> </availableFormats> <generalDesc> <!-- When deciding whether to assume a leading 49 is a country code or not, the number is examined to see if it is valid with the 49 as part of the number. Due to the variable length of German numbers, this test is hard to do. The national pattern is hence @@ -5511,22 +5528,40 @@ <nationalNumberPattern>800\d{7,12}</nationalNumberPattern> <possibleNumberPattern>\d{10,15}</possibleNumberPattern> <exampleNumber>8001234567890</exampleNumber> </tollFree> <premiumRate> + <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost + section for more information. --> <nationalNumberPattern> + 137[7-9]\d{6}| 900(?: [135]\d{6}| 9\d{7} ) </nationalNumberPattern> <possibleNumberPattern>\d{10,11}</possibleNumberPattern> <exampleNumber>9001234567</exampleNumber> </premiumRate> <sharedCost> - <nationalNumberPattern>180\d{5,11}</nationalNumberPattern> - <possibleNumberPattern>\d{8,14}</possibleNumberPattern> + <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their + costs when dialling from a fixed-line phone is similar. + Prices: + http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/ + Documentation: + http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2 + --> + <nationalNumberPattern> + 1(?: + 3(?: + 7[1-6]\d{6}| + 8\d{4} + )| + 80\d{5,11} + ) + </nationalNumberPattern> + <possibleNumberPattern>\d{7,14}</possibleNumberPattern> <exampleNumber>18012345</exampleNumber> </sharedCost> <personalNumber> <nationalNumberPattern>700\d{8}</nationalNumberPattern> <possibleNumberPattern>\d{11}</possibleNumberPattern> @@ -5642,11 +5677,12 @@ )| 4(?: 2[01]| 4[0-25-9] )| - 50[0-4] + 50[0-4]| + 70[1-3] )\d{4} </nationalNumberPattern> <exampleNumber>7674201234</exampleNumber> </fixedLine> <mobile> @@ -6154,11 +6190,11 @@ 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( + 1(?: 3[23]\d| 5(?: [23]| 9\d ) @@ -6903,30 +6939,42 @@ </territory> <!-- Gabon --> <!-- http://www.itu.int/oth/T020200004E/en --> <!-- www.arcep.ga --> - <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true"> + <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero + as this breaks parsing (it treats all leading zeros as national prefixes. --> + <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" > <availableFormats> - <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})"> + <!-- If no leading zero was supplied, format with the national prefix. --> + <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG"> + <leadingDigits>[2-7]</leadingDigits> <format>$1 $2 $3 $4</format> </numberFormat> + <!-- This already has a leading zero so we format is "as is". --> + <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})"> + <leadingDigits>0</leadingDigits> + <format>$1 $2 $3 $4</format> + </numberFormat> </availableFormats> <generalDesc> - <nationalNumberPattern>0\d{7}</nationalNumberPattern> - <possibleNumberPattern>\d{8}</possibleNumberPattern> + <nationalNumberPattern>0?\d{7}</nationalNumberPattern> + <possibleNumberPattern>\d{7,8}</possibleNumberPattern> </generalDesc> <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed - line and mobile numbering. However, it seems that this has not happened; their own - website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not - connect without the 0 from outside the country. This was last tested June 2013. --> + line and mobile numbering. However, this has only partially happened; mobile numbers can + now be dialed without a leading zero, but fixed line numbers still require it. Their own + website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will + not connect from outside the country without the 0. This was last tested March 2014. --> <fixedLine> <nationalNumberPattern>01\d{6}</nationalNumberPattern> + <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>01441234</exampleNumber> </fixedLine> <mobile> - <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern> + <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). --> + <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern> <exampleNumber>06031234</exampleNumber> </mobile> </territory> <!-- United Kingdom --> @@ -7550,28 +7598,30 @@ 63[68]| 7(?: 58| 84 )| + 800| 938 )\d{4} </nationalNumberPattern> <exampleNumber>4732691234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> 473(?: 4(?: - 0[3-79]| + 0[2-79]| 1[04-9]| 20| 58 )| 5(?: 2[01]| 3[3-8] - ) + )| + 901 )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>4734031234</exampleNumber> </mobile> @@ -7915,13 +7965,16 @@ <exampleNumber>302345678</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> (?: - 2[034678]| - 5[047] - )\d{7} + 2[034678]\d| + 5(?: + [047]\d| + 54 + ) + )\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>231234567</exampleNumber> </mobile> <tollFree> @@ -8975,10 +9028,15 @@ </availableFormats> <generalDesc> <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern> <possibleNumberPattern>\d{6,9}</possibleNumberPattern> </generalDesc> + <noInternationalDialling> + <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern> + <possibleNumberPattern>\d{8}</possibleNumberPattern> + <exampleNumber>80123456</exampleNumber> + </noInternationalDialling> <fixedLine> <!-- Includes numbers for corporate networks. --> <nationalNumberPattern> (?: 1\d| @@ -9032,11 +9090,11 @@ <!-- http://en.wikipedia.org/wiki/%2B62 --> <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))" nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"> <availableFormats> <numberFormat nationalPrefixFormattingRule="($NP$FG)" - pattern="(\d{2})(\d{7,8})"> + pattern="(\d{2})(\d{5,8})"> <leadingDigits> 2[124]| [36]1 </leadingDigits> <format>$1 $2</format> @@ -9062,12 +9120,12 @@ that sometimes they are followed by less digits. --> <numberFormat pattern="(800)(\d{5,7})"> <leadingDigits>800</leadingDigits> <format>$1 $2</format> </numberFormat> - <numberFormat pattern="(809)(\d)(\d{3})(\d{3})"> - <leadingDigits>809</leadingDigits> + <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})"> + <leadingDigits>80[79]</leadingDigits> <format>$1 $2 $3 $4</format> </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern> @@ -9076,14 +9134,19 @@ <fixedLine> <!-- Area codes taken from wikipedia, with missing ones added from http://www.telkom.co.id/customer-services/area-and-country-code/?type=area. We also added 0770 after user feedback because it seems to be used on Bintan island. Where known, fixed mobile prefixes have been represented as Mobile. --> + <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various + well known companies (Mc Donalds, KFC etc...). Some of these are listed in: + http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf --> <nationalNumberPattern> 2(?: 1(?: + 14\d{3}| [0-8]\d{6,7}| + 500\d{3}| 9\d{6} )| [24]\d{7,8} )| (?: @@ -9241,10 +9304,20 @@ 800\d{5,7} </nationalNumberPattern> <possibleNumberPattern>\d{8,11}</possibleNumberPattern> <exampleNumber>8001234567</exampleNumber> </tollFree> + <uan> + <nationalNumberPattern>8071\d{6}</nationalNumberPattern> + <possibleNumberPattern>\d{10}</possibleNumberPattern> + <exampleNumber>8071123456</exampleNumber> + </uan> + <noInternationalDialling> + <nationalNumberPattern>8071\d{6}</nationalNumberPattern> + <possibleNumberPattern>\d{10}</possibleNumberPattern> + <exampleNumber>8071123456</exampleNumber> + </noInternationalDialling> <!-- The information below is provided by an Indonesian --> <premiumRate> <nationalNumberPattern>809\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>8091234567</exampleNumber> @@ -9562,11 +9635,11 @@ 2[23]\d| 3[237]\d| 47\d| 6(?: 5\d| - 8[08] + 8[068] )| 7\d{2}| 8(?: 33| 55| @@ -9695,10 +9768,11 @@ <availableFormats> <!-- Mobile numbers. --> <numberFormat pattern="(\d{2})(\d{2})(\d{6})"> <leadingDigits> 7(?: + 0[2-4]| 2[0579]| 3[057-9]| 4[0-389]| 6[0-35-9]| [57]| @@ -9717,10 +9791,15 @@ )| 9 </leadingDigits> <leadingDigits> 7(?: + 0(?: + 2[2-9]| + 3| + 4[0-7] + )| 2(?: 0[04-9]| 5[09]| 7[5-8]| 9[389] @@ -10181,10 +10260,15 @@ 7695, 8299, 8309. New prefixes were also added based on the document provided from mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 --> <nationalNumberPattern> (?: 7(?: + 0(?: + 2[2-9]| + 3\d| + 4[0-7] + )| 2(?: 0[04-9]| 5[09]| 7[5-8]| 9[389] @@ -12565,11 +12649,12 @@ <fixedLine> <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have started issuing fixed-line numbers like this. Apparently, mobile-company-issued fixed-line numbers are one digit longer than government-issued numbers. Moreover, the range beginning with 6 seems to include some numbers that are one digit longer as well. - Allowing 238\d{6} based on information from Cambodia Yellow Pages. --> + Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages. + Note that numbers beginning with 234 are split across two patterns. --> <nationalNumberPattern> (?: 2[3-6]| 3[2-6]| 4[2-4]| @@ -12578,11 +12663,14 @@ [237-9]| 4[56]| 5\d| 6\d? )\d{5}| - 238\d{6} + 23(?: + 4[234]| + 8\d{2} + )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{6,9}</possibleNumberPattern> <exampleNumber>23756789</exampleNumber> </fixedLine> <mobile> @@ -12650,11 +12738,12 @@ <territory id="KI" countryCode="686" internationalPrefix="00" nationalPrefixForParsing="0"> <!-- Numbers should be formatted as a block." --> <generalDesc> <nationalNumberPattern> - [2-58]\d{4}| + [2458]\d{4}| + 3\d{4,7}| 7\d{7} </nationalNumberPattern> <possibleNumberPattern>\d{5,8}</possibleNumberPattern> </generalDesc> <fixedLine> @@ -12680,10 +12769,15 @@ )\d{5} </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>72012345</exampleNumber> </mobile> + <premiumRate> + <!-- ITU refers to these as "Telemedia and audiotext". --> + <nationalNumberPattern>3001\d{4}</nationalNumberPattern> + <exampleNumber>30010000</exampleNumber> + </premiumRate> </territory> <!-- Comoros --> <!-- http://www.itu.int/oth/T020200002D/en --> <territory id="KM" countryCode="269" internationalPrefix="00"> @@ -12742,11 +12836,11 @@ 29| 36 )| 302| 4(?: - 6[5-9]| + 6[015-9]| 70 ) )\d{4} </nationalNumberPattern> <exampleNumber>8692361234</exampleNumber> @@ -12762,11 +12856,12 @@ 66\d| 76[02-6] )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> - <exampleNumber>8695561234</exampleNumber> + <!-- Example number from the ITU document. --> + <exampleNumber>8697652917</exampleNumber> </mobile> <tollFree> <nationalNumberPattern> 8(?: 00| @@ -13419,29 +13514,40 @@ <format>$1 $2 $3 $4</format> </numberFormat> <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})"> <leadingDigits> 2[13]| - [3-8] + 3[14]| + [4-8] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> + <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})"> + <leadingDigits>30</leadingDigits> + <format>$1 $2 $3 $4</format> + </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern> <possibleNumberPattern>\d{6,10}</possibleNumberPattern> </generalDesc> <fixedLine> + <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline) + start with 030 (and are longer). There are plenty of examples online. --> <nationalNumberPattern> (?: 2[13]| - [35-7][14]| + 3(?: + 0\d| + [14] + )| + [5-7][14]| 41| 8[1468] )\d{6} </nationalNumberPattern> - <possibleNumberPattern>\d{6,8}</possibleNumberPattern> + <possibleNumberPattern>\d{6,9}</possibleNumberPattern> <exampleNumber>21212862</exampleNumber> </fixedLine> <mobile> <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. --> <nationalNumberPattern> @@ -13543,30 +13649,26 @@ <!-- NANPA country - uses US formatting rules --> <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern> <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern> </generalDesc> <fixedLine> - <!-- Adding 430 and 572 since numbers have been found with these prefixes online. --> + <!-- Adding 430 since numbers have been found with these prefixes online. --> <nationalNumberPattern> 758(?: - 234| 4(?: 30| 5[0-9]| 6[2-9]| 8[0-2] )| - 572| - 638| - 758 + 57[0-2]| + 638 )\d{4} </nationalNumberPattern> - <exampleNumber>7582345678</exampleNumber> + <exampleNumber>7584305678</exampleNumber> </fixedLine> <mobile> - <!-- Adding 72[1256] as these prefixes are found widely on the internet and SMS messages - have been successfully delivered to these numbers. --> <nationalNumberPattern> 758(?: 28[4-7]| 384| 4(?: @@ -13578,11 +13680,11 @@ 20| 84 )| 7(?: 1[2-9]| - 2[0-6] + 2[0-8] ) )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>7582845678</exampleNumber> @@ -13813,16 +13915,16 @@ <territory id="LR" countryCode="231" internationalPrefix="00" nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"> <availableFormats> <!-- Formatting from Ministry of Agriculture, http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts --> - <numberFormat pattern="([279]\d)(\d{3})(\d{3})"> - <leadingDigits>[279]</leadingDigits> + <numberFormat pattern="(2\d)(\d{3})(\d{3})"> + <leadingDigits>2</leadingDigits> <format>$1 $2 $3</format> </numberFormat> - <numberFormat pattern="(7\d{2})(\d{3})(\d{3})"> - <leadingDigits>7</leadingDigits> + <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})"> + <leadingDigits>[79]</leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="([4-6])(\d{3})(\d{3})"> <leadingDigits>[4-6]</leadingDigits> <format>$1 $2 $3</format> @@ -13832,53 +13934,54 @@ <format>$1 $2 $3</format> </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern> - (?: - [29]\d| - [4-6]| - 7\d{1,2}| - [38]\d{2} - )\d{6} + 2\d{7}| + [37-9]\d{8}| + [45]\d{6} </nationalNumberPattern> <possibleNumberPattern>\d{7,9}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern>2\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>21234567</exampleNumber> </fixedLine> <mobile> - <!-- According to information from Lonestar Communications Corporation, the prefix 6 is - being removed, but as of June 2012 is in parallel running with their new prefix 88. - According to Cellcom Liberia, they have issued 9 digit numbers starting with 77. --> + <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic + Wireless from the document, even though from online news reports it is not clear they + are still operating. --> <nationalNumberPattern> (?: + 330\d| 4[67]| 5\d| - 6[4-8]| - 77?\d{2}| - 88\d{2} + 77\d{2}| + 88\d{2}| + 994\d )\d{5} </nationalNumberPattern> - <exampleNumber>4612345</exampleNumber> + <exampleNumber>770123456</exampleNumber> </mobile> <premiumRate> - <!-- Telemedia service is listed under premium rate. --> - <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range - (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could - be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear - at the moment, we decided to leave the (90) range unchanged for now. --> - <nationalNumberPattern>90\d{6}</nationalNumberPattern> - <possibleNumberPattern>\d{8}</possibleNumberPattern> - <exampleNumber>90123456</exampleNumber> + <!-- Telelinks and Interactive media service are listed under premium rate. --> + <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern> + <possibleNumberPattern>\d{9}</possibleNumberPattern> + <exampleNumber>900123456</exampleNumber> </premiumRate> <voip> <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they - say they are involved in the VoIP sector. --> - <nationalNumberPattern>33200\d{4}</nationalNumberPattern> + say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty & + Investment Corporation here as well; no numbers can be found online, nor company + information. --> + <nationalNumberPattern> + 332(?: + 0[02]| + 5\d + )\d{4} + </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>332001234</exampleNumber> </voip> </territory> @@ -15621,11 +15724,11 @@ )| 4(?: [013568]\d| 2[4-7] )| - 5( + 5(?: 44\d| 471 )| 6\d{2}| 8(?: @@ -16127,11 +16230,11 @@ <territory id="MZ" countryCode="258" internationalPrefix="00"> <availableFormats> <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})"> <leadingDigits> 2| - 8[246] + 8[2-7] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(80\d)(\d{3})(\d{3})"> <leadingDigits>80</leadingDigits> @@ -16153,11 +16256,11 @@ </nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>21123456</exampleNumber> </fixedLine> <mobile> - <nationalNumberPattern>8[246]\d{7}</nationalNumberPattern> + <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>821234567</exampleNumber> </mobile> <tollFree> <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online @@ -16307,11 +16410,11 @@ <exampleNumber>870123456</exampleNumber> </premiumRate> <voip> <!-- Including virtual telephone and VOIP services. --> <nationalNumberPattern> - 8( + 8(?: 3\d{2}| 86 )\d{5} </nationalNumberPattern> <exampleNumber>88612345</exampleNumber> @@ -16410,16 +16513,16 @@ )\d{4} </nationalNumberPattern> <exampleNumber>20201234</exampleNumber> </fixedLine> <mobile> - <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the - 89 and 97 prefixes, and Orange use 92. --> + <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the + 89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. --> <nationalNumberPattern> (?: 89| - 9[0-46-9] + 9\d )\d{6} </nationalNumberPattern> <exampleNumber>93123456</exampleNumber> </mobile> <tollFree> @@ -17497,12 +17600,11 @@ <exampleNumber>401234</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> (?: - [27]\d{2}| - 3[0-79]\d| + [237]\d{2}| 411| 89\d{3} )\d{3} </nationalNumberPattern> <exampleNumber>212345</exampleNumber> @@ -18069,21 +18171,13 @@ 8[1-79]| 9[145] </leadingDigits> <format>$1 $2 $3 $4</format> </numberFormat> - <numberFormat pattern="(\d{2})(\d{4,6})"> - <!-- Pattern for shorter fixed-line numbers. --> - <leadingDigits> - [124]| - 3[2-4]| - 5[24-689]| - 6[1-3578]| - 7[14-7]| - 8[1-7] - </leadingDigits> - <format>$1 $2</format> + <numberFormat pattern="(\d{2})(\d{1})(\d{4})"> + <leadingDigits>[12]2</leadingDigits> + <format>$1 $2 $3</format> </numberFormat> <!-- We are formatting 70 numbers as per mobile numbers, based on information from some Poles that this is more usual. --> <numberFormat pattern="(\d{3})(\d{3})(\d{3})"> <leadingDigits> @@ -18105,34 +18199,33 @@ <format>$1 $2</format> </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern> - [1-58]\d{6,8}| - 9\d{8}| - [67]\d{5,8} + [12]\d{6,8}| + [3-57-9]\d{8}| + 6\d{5,8} </nationalNumberPattern> <possibleNumberPattern>\d{6,9}</possibleNumberPattern> </generalDesc> <fixedLine> - <!-- Grouped by prefix-length. --> + <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and + Krakow (12) we have found internationally diallable numbers that are 7 digits instead, + so we support those too. --> <nationalNumberPattern> (?: 1[2-8]| 2[2-59]| 3[2-4]| 4[1-468]| 5[24-689]| 6[1-3578]| - 7[14-6]| - 8[1-7] - )\d{5,7}| - 77\d{4,7}| - (?: - 89| + 7[14-7]| + 8[1-79]| 9[145] - )\d{7} + )\d{7}| + [12]2\d{5} </nationalNumberPattern> <exampleNumber>123456789</exampleNumber> </fixedLine> <mobile> <nationalNumberPattern> @@ -18145,12 +18238,12 @@ </nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>512345678</exampleNumber> </mobile> <pager> - <nationalNumberPattern>642\d{3,6}</nationalNumberPattern> - <exampleNumber>642123456</exampleNumber> + <nationalNumberPattern>64\d{4,7}</nationalNumberPattern> + <exampleNumber>641234567</exampleNumber> </pager> <tollFree> <nationalNumberPattern>800\d{6}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>800123456</exampleNumber> @@ -20776,13 +20869,15 @@ <nationalNumberPattern>1\d{3}</nationalNumberPattern> <possibleNumberPattern>\d{4}</possibleNumberPattern> <exampleNumber>1100</exampleNumber> </noInternationalDialling> <fixedLine> + <!-- Numbers online have been found that start with 20, despite the ITU doc not covering + these. --> <nationalNumberPattern> (?: - 2[1-9]| + 2\d| 3[2-9]| 4[2-5]| 5[2-6]| 7[3-7] )\d{6} @@ -20806,12 +20901,12 @@ <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>1900123456</exampleNumber> </premiumRate> <voip> <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers - online to suggest they are actually used as mobile numbers --> - <nationalNumberPattern>60\d{7}</nationalNumberPattern> + online to suggest they are actually used as mobile numbers. --> + <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>601234567</exampleNumber> </voip> <uan> <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and @@ -21405,26 +21500,33 @@ nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true"> <availableFormats> <numberFormat pattern="([2-8])(\d{3,4})(\d{4})"> <leadingDigits> - [2-7]| - 8[1-9] + [2-6]| + [78][1-9] </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})"> <leadingDigits> 80| 9 </leadingDigits> <format>$1 $2 $3</format> </numberFormat> + <numberFormat pattern="(70)(\d{4})(\d{4})"> + <leadingDigits>70</leadingDigits> + <format>$1 $2 $3</format> + </numberFormat> </availableFormats> <generalDesc> - <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern> - <possibleNumberPattern>\d{8,9}</possibleNumberPattern> + <nationalNumberPattern> + [2-689]\d{7,8}| + 7\d{7,9} + </nationalNumberPattern> + <possibleNumberPattern>\d{8,10}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern> <possibleNumberPattern>\d{8,9}</possibleNumberPattern> <exampleNumber>21234567</exampleNumber> @@ -21442,10 +21544,16 @@ <premiumRate> <nationalNumberPattern>900\d{6}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> <exampleNumber>900123456</exampleNumber> </premiumRate> + <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 --> + <voip> + <nationalNumberPattern>70\d{8}</nationalNumberPattern> + <possibleNumberPattern>\d{10}</possibleNumberPattern> + <exampleNumber>7012345678</exampleNumber> + </voip> </territory> <!-- Tanzania --> <!-- http://www.itu.int/oth/T02020000CB/en --> <territory id="TZ" countryCode="255" internationalPrefix="00[056]" @@ -22264,11 +22372,11 @@ 9(?: 0\d| 7[079] ) )| - 9( + 9(?: 2(?: 1[1267]| 5\d| 3[01]| 7[0-4] @@ -22446,12 +22554,12 @@ <exampleNumber>0669812345</exampleNumber> </fixedLine> <mobile> <!-- We have no information on mobile numbers from the Vatican. It is probable that they use Italian mobile contracts. --> - <nationalNumberPattern>N/A</nationalNumberPattern> - <possibleNumberPattern>N/A</possibleNumberPattern> + <nationalNumberPattern>NA</nationalNumberPattern> + <possibleNumberPattern>NA</possibleNumberPattern> </mobile> <!-- No information exists about other types of numbers. --> </territory> <!-- Saint Vincent and the Grenadines --> @@ -22461,10 +22569,12 @@ <generalDesc> <!-- NANPA country - uses US formatting rules --> <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern> <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern> </generalDesc> + <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under + area code 758, which should be 784. --> <fixedLine> <nationalNumberPattern> 784(?: 266| 3(?: @@ -22473,33 +22583,34 @@ 8[0-24-6] )| 4(?: 38| 5[0-36-8]| - 8\d| - 9[01] + 8[0-8] )| - 555| + 5(?: + 55| + 7[0-2]| + 93 + )| 638| 784 )\d{4} </nationalNumberPattern> <exampleNumber>7842661234</exampleNumber> </fixedLine> <mobile> - <!-- Adding 784 433 and 784 534 since online numbers can be found with these prefixes, and - the latter seems, according to some online sources, to be assigned to Digicell. --> <nationalNumberPattern> 784(?: 4(?: 3[0-4]| 5[45]| - 9[2-5] + 89| + 9[0-5] )| 5(?: 2[6-9]| - 3[0-4]| - 93 + 3[0-4] ) )\d{4} </nationalNumberPattern> <possibleNumberPattern>\d{10}</possibleNumberPattern> <exampleNumber>7844301234</exampleNumber>