JAVA/JS/CPP: v7.0.2 metadata updates.
[platform/upstream/libphonenumber.git] / resources / PhoneNumberMetadata.xml
index b083abd..40f569f 100644 (file)
       <references>
         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
-        <sourceUrl>http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf</sourceUrl>
+        <sourceUrl>http://www.btrc.gov.bd/sites/default/files/national_numbering_plan_2005_0.pdf</sourceUrl>
       </references>
       <availableFormats>
         <numberFormat pattern="(2)(\d{7})">
               5[5-7]|
               6[0167]|
               7[15]|
-              8[016-8]
+              8[0146-8]
             )
           )\d{4}|
           3(?:
         <exampleNumber>17001234</exampleNumber>
       </fixedLine>
       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
-           though it is omitted from the ITU document. -->
+           though it is omitted from the ITU document. 356 was added based on numbers found
+           online. -->
       <mobile>
         <nationalNumberPattern>
           (?:
             3(?:
               [1-4679]\d|
-              5[0135]|
+              5[01356]|
               8[0-48]
             )\d|
             6(?:
         <nationalNumberPattern>
           6(?:
             0[0-8]|
-            [12-7]\d|
-            8[01]|
-            9[2457-9]
+            [12-79]\d|
+            8[01]
           )\d{6}
         </nationalNumberPattern>
         <exampleNumber>650123456</exampleNumber>
             2[034678]\d|
             5(?:
               [047]\d|
-              54
+              54|
+              6[01]
             )
           )\d{6}
         </nationalNumberPattern>
                0(?:
                  2[2-9]|
                  [3-8]|
-                 9[0-4]
+                 9[0-8]
                )|
                2(?:
                  0[04-9]|
                2[1-47]|
                3[15]|
                5[12]|
-               6[126-9]|
+               6[0-26-9]|
                7[0-24-9]|
                8[013-57]|
                9[014-7]
               2[1-47]|
               3[15]|
               5[12]|
-              6[126-9]|
+              6[0-26-9]|
               7[0-24-9]|
               8[013-57]|
               9[014-7]
               0(?:
                 2[2-9]|
                 [3-8]\d|
-                9[0-4]
+                9[0-8]
               )|
               2(?:
                 0[04-9]|
       </fixedLine>
       <mobile>
         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
-             be valid by sending SMSs and looking at online number lookup sites.
+             be valid by sending SMSs and looking at online number lookup sites. Also added 50[3-79]
+             as we have found information online that the 50[3-9] range has been assigned to Digicel.
 
              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
              Most have mobile numbers online so we have put them under mobile but is possible
             2[1789]\d|
             [348]\d{2}|
             5(?:
-              08|
+              0[3-9]|
               27|
               6[0-24-9]|
               [3-578]\d
         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
-             maximum of 11. -->
+        <!-- Even though 20 is listed in the fixed-line plan, other documentation clarify that it is
+             for VOIP. Furthermore, even though the plan says that numbers beginning with 2[346-8]
+             must be exactly 8 digits, from information found online it seems that they can actually
+             be 6 (but not 7) digits long. -->
         <nationalNumberPattern>
           (?:
             2(?:
-              2\d{1,2}|
-              3[2-9]|
-              [67]\d|
-              4[1-8]\d?|
-              5[1-5]\d?|
-              9[0-24-9]\d?
+              [259]\d{2,9}|
+              [346-8]\d{4}(?:\d{2})?
             )|
-            3(?:
-              [059][05-9]|
-              [13]\d|
-              [26][015-9]|
-              4[0-26-9]|
-              7[0-389]|
-              8[08]
-            )\d?|
-            4\d{2,3}|
-            5(?:
-              [01458]\d|
-              [27][0-69]|
-              3[0-3]|
-              [69][0-7]
-            )\d?|
-            7(?:
-              1[019]|
-              2[05-9]|
-              3[05]|
-              [45][07-9]|
-              [679][089]|
-              8[06-9]
-            )\d?|
-            8(?:
-              0[2-9]|
-              1[0-36-9]|
-              3[3-9]|
-              [469]9|
-              [58][7-9]|
-              7[89]
-            )\d?|
-            9(?:
-              0[89]|
-              2[0-49]|
-              37|
-              49|
-              5[0-27-9]|
-              7[7-9]|
-              9[0-478]
-            )\d?
-          )\d{1,7}
+            (?:
+              [3457]\d{2}|
+              8(?:
+                0[2-9]|
+                [13-9]\d
+              )|
+              9(?:
+                0[89]|
+                [2-579]\d
+              )
+            )\d{1,8}
+          )
         </nationalNumberPattern>
         <exampleNumber>27123456</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>
-          6(?:
-            [269][18]|
-            71
-          )\d{6}
-        </nationalNumberPattern>
+        <nationalNumberPattern>6[2679][18]\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>628123456</exampleNumber>
       </mobile>
       </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 -->
+        <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf
+             Prefixes 69[0136] added based on numbers found online. -->
         <nationalNumberPattern>
           6(?:
             0[0-8]|
-            [12-7]\d|
-            8[01]|
-            9[2457-9]
+            [12-79]\d|
+            8[01]
           )\d{6}
         </nationalNumberPattern>
         <exampleNumber>650123456</exampleNumber>
       <mobile>
         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
              is possible to send SMSs (and receive them) from numbers in this block, so we are
-             listing them as mobile. -->
+             listing them as mobile. 115 was added based on numbers found online. -->
         <nationalNumberPattern>
           1(?:
-            1[1-3]\d{2}|
+            1[1-35]\d{2}|
             [02-4679][2-9]\d|
             59\d{2}|
             8(?:
         <exampleNumber>106609</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>38\d{4}</nationalNumberPattern>
+        <!-- Numbers found online with prefix 35. -->
+        <nationalNumberPattern>3[58]\d{4}</nationalNumberPattern>
         <exampleNumber>381234</exampleNumber>
       </mobile>
     </territory>
           <leadingDigits>
             70|
             8[01]|
-            90[239]
+            90[2359]
           </leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
              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.
-             903 has been added for MTN and 909 has been added for Etisalat. -->
+             903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
+             added for Etisalat. -->
         <nationalNumberPattern>
           (?:
             1(?:
               0[2-9]|
               1\d
             )\d|
-            90[239]\d
+            90[2359]\d
           )\d{6}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
       </fixedLine>
       <mobile>
         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
-             can be found online with these prefixes. Added 310 based on information from Zong. -->
+             can be found online with these prefixes. Added 310 based on information from Zong, and
+             316 based on information found online. -->
         <nationalNumberPattern>
           3(?:
             0\d|
-            [12][0-5]|
-            3[1-7]|
-            4[0-7]|
+            1[0-6]|
+            2[0-5]|
+            [34][0-7]|
             55|
             64
           )\d{7}
         <nationalNumberPattern>
           48\d{3}|
           7(?:
-            [0146-8]\d|
+            [46-8]\d|
             5[025-9]|
-            9[0124]
+            9[0-4]
           )\d{4}|
           8[4-8]\d{5}|
           9(?:
+            1[2-9]|
+            2[013-9]|
+            3[0-2]|
             [46]\d|
             5[0-46-9]|
             7[0-689]|
         <nationalNumberPattern>
           868(?:
             2(?:
-              01|
+              [03]1|
               2[1-5]
             )|
             6(?:
       <mobile>
         <nationalNumberPattern>
           (?:
-            6[158]|
+            6[1578]|
             7[1-9]
           )\d{7}
         </nationalNumberPattern>