phonelib 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +11 -2
  3. data/data/extended_data.dat +0 -0
  4. data/data/libphonenumber/FAQ.md +166 -0
  5. data/data/libphonenumber/README.md +1 -1
  6. data/data/libphonenumber/cpp/CMakeLists.txt +16 -3
  7. data/data/libphonenumber/cpp/src/phonenumbers/lite_metadata.cc +9337 -9341
  8. data/data/libphonenumber/cpp/src/phonenumbers/metadata.cc +9948 -9951
  9. data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.cc +1285 -1280
  10. data/data/libphonenumber/debian/control +1 -1
  11. data/data/libphonenumber/java/carrier/pom.xml +4 -4
  12. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en +0 -0
  13. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/234_en +0 -0
  14. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/235_en +0 -0
  15. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/251_en +0 -0
  16. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/675_en +0 -0
  17. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en +0 -0
  18. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/993_en +0 -0
  19. data/data/libphonenumber/java/demo/pom.xml +6 -6
  20. data/data/libphonenumber/java/demo/src/com/google/phonenumbers/PhoneNumberParserServlet.java +4 -3
  21. data/data/libphonenumber/java/geocoder/pom.xml +4 -4
  22. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1380_en +0 -0
  23. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1825_en +0 -0
  24. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_en +0 -0
  25. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_en +0 -0
  26. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config +0 -0
  27. data/data/libphonenumber/java/internal/prefixmapper/pom.xml +3 -3
  28. data/data/libphonenumber/java/libphonenumber/pom.xml +2 -2
  29. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MultiFileMetadataSourceImpl.java +9 -1
  30. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +2 -2
  31. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AG +0 -0
  32. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AI +0 -0
  33. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AS +0 -0
  34. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BB +0 -0
  35. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BM +0 -0
  36. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BS +0 -0
  37. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BW +0 -0
  38. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CA +0 -0
  39. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI +0 -0
  40. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CK +0 -0
  41. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DJ +0 -0
  42. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DM +0 -0
  43. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DO +0 -0
  44. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ET +0 -0
  45. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GD +0 -0
  46. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GM +0 -0
  47. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GU +0 -0
  48. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN +0 -0
  49. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JM +0 -0
  50. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KN +0 -0
  51. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KY +0 -0
  52. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LC +0 -0
  53. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MA +0 -0
  54. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MP +0 -0
  55. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MS +0 -0
  56. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NA +0 -0
  57. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NG +0 -0
  58. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PG +0 -0
  59. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PR +0 -0
  60. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SE +0 -0
  61. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SK +0 -0
  62. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SX +0 -0
  63. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TC +0 -0
  64. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TD +0 -0
  65. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TM +0 -0
  66. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TT +0 -0
  67. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US +0 -0
  68. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VC +0 -0
  69. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VG +0 -0
  70. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VI +0 -0
  71. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KR +0 -0
  72. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PT +0 -0
  73. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProto +0 -0
  74. data/data/libphonenumber/java/pom.xml +1 -1
  75. data/data/libphonenumber/java/release_notes.txt +47 -7
  76. data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.js +171 -169
  77. data/data/libphonenumber/javascript/i18n/phonenumbers/metadata.js +61 -57
  78. data/data/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js +61 -57
  79. data/data/libphonenumber/resources/PhoneNumberMetadata.xml +165 -155
  80. data/data/libphonenumber/resources/ShortNumberMetadata.xml +41 -7
  81. data/data/libphonenumber/resources/carrier/en/225.txt +1 -0
  82. data/data/libphonenumber/resources/carrier/en/234.txt +15 -4
  83. data/data/libphonenumber/resources/carrier/en/235.txt +1 -0
  84. data/data/libphonenumber/resources/carrier/en/251.txt +1 -0
  85. data/data/libphonenumber/resources/carrier/en/675.txt +6 -5
  86. data/data/libphonenumber/resources/carrier/en/91.txt +1 -0
  87. data/data/libphonenumber/resources/carrier/en/993.txt +1 -0
  88. data/data/libphonenumber/resources/geocoding/en/1.txt +2 -0
  89. data/data/libphonenumber/resources/geocoding/en/212.txt +1 -0
  90. data/data/libphonenumber/resources/geocoding/en/46.txt +15 -0
  91. data/data/libphonenumber/resources/geocoding/fr/212.txt +1 -0
  92. data/data/libphonenumber/resources/phonemetadata.proto +1 -1
  93. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/BuildMetadataFromXml.java +4 -5
  94. data/data/libphonenumber/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
  95. data/data/libphonenumber/tools/java/data/pom.xml +1 -1
  96. data/data/libphonenumber/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
  97. data/data/phone_data.dat +0 -0
  98. data/lib/phonelib/core.rb +13 -0
  99. data/lib/phonelib/phone.rb +10 -4
  100. data/lib/phonelib/version.rb +1 -1
  101. metadata +5 -12
  102. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1726_en +0 -0
  103. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1730_en +0 -0
  104. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1838_en +0 -0
  105. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1851_en +0 -0
  106. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1888_en +0 -0
  107. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/225_fr +0 -0
  108. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/238_pt +0 -0
  109. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/242_fr +0 -0
  110. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/269_fr +0 -0
  111. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_pt +0 -0
@@ -358,7 +358,8 @@
358
358
  33|
359
359
  44|
360
360
  66|
361
- 77
361
+ 77|
362
+ 88
362
363
  )[2-9]\d{6}
363
364
  </nationalNumberPattern>
364
365
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -437,7 +438,8 @@
437
438
  33|
438
439
  44|
439
440
  66|
440
- 77
441
+ 77|
442
+ 88
441
443
  )[2-9]\d{6}
442
444
  </nationalNumberPattern>
443
445
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -1359,7 +1361,8 @@
1359
1361
  33|
1360
1362
  44|
1361
1363
  66|
1362
- 77
1364
+ 77|
1365
+ 88
1363
1366
  )[2-9]\d{6}
1364
1367
  </nationalNumberPattern>
1365
1368
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -2153,8 +2156,9 @@
2153
2156
  33|
2154
2157
  44|
2155
2158
  66|
2156
- 77
2157
- )[2-9]\d{3}
2159
+ 77|
2160
+ 88
2161
+ )[2-9]\d{6}
2158
2162
  </nationalNumberPattern>
2159
2163
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
2160
2164
  <exampleNumber>5002345678</exampleNumber>
@@ -3165,7 +3169,8 @@
3165
3169
  33|
3166
3170
  44|
3167
3171
  66|
3168
- 77
3172
+ 77|
3173
+ 88
3169
3174
  )[2-9]\d{6}
3170
3175
  </nationalNumberPattern>
3171
3176
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -3564,7 +3569,8 @@
3564
3569
  33|
3565
3570
  44|
3566
3571
  66|
3567
- 77
3572
+ 77|
3573
+ 88
3568
3574
  )[2-9]\d{6}
3569
3575
  </nationalNumberPattern>
3570
3576
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -3663,9 +3669,8 @@
3663
3669
  3(?:
3664
3670
  1[0235-9]|
3665
3671
  55|
3666
- 6\d|
3667
- 7[01]|
3668
- 9[0-57]
3672
+ [69]\d|
3673
+ 7[01]
3669
3674
  )|
3670
3675
  4(?:
3671
3676
  6[03]|
@@ -4046,6 +4051,7 @@
4046
4051
  8(?:
4047
4052
  [06]7|
4048
4053
  19|
4054
+ 25|
4049
4055
  73
4050
4056
  )|
4051
4057
  90[25]
@@ -4096,6 +4102,7 @@
4096
4102
  8(?:
4097
4103
  [06]7|
4098
4104
  19|
4105
+ 25|
4099
4106
  73
4100
4107
  )|
4101
4108
  90[25]
@@ -4130,7 +4137,8 @@
4130
4137
  33|
4131
4138
  44|
4132
4139
  66|
4133
- 77
4140
+ 77|
4141
+ 88
4134
4142
  )[2-9]\d{6}
4135
4143
  </nationalNumberPattern>
4136
4144
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -4442,6 +4450,7 @@
4442
4450
  <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4443
4451
  <references>
4444
4452
  <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4453
+ <sourceUrl>http://fr.wikipedia.org/wiki/Liste_des_indicatifs_téléphoniques_en_Côte_d’Ivoire</sourceUrl>
4445
4454
  </references>
4446
4455
  <availableFormats>
4447
4456
  <!-- Using format from online yellow pages over format implied in national numbering plan.
@@ -4451,7 +4460,7 @@
4451
4460
  </numberFormat>
4452
4461
  </availableFormats>
4453
4462
  <generalDesc>
4454
- <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4463
+ <nationalNumberPattern>[02-8]\d{7}</nationalNumberPattern>
4455
4464
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
4456
4465
  </generalDesc>
4457
4466
  <fixedLine>
@@ -4487,7 +4496,8 @@
4487
4496
  4\d|
4488
4497
  5[4-9]|
4489
4498
  6[015-79]|
4490
- 7[578]
4499
+ 7[578]|
4500
+ 87
4491
4501
  )\d{6}
4492
4502
  </nationalNumberPattern>
4493
4503
  <exampleNumber>01234567</exampleNumber>
@@ -4505,7 +4515,7 @@
4505
4515
  </numberFormat>
4506
4516
  </availableFormats>
4507
4517
  <generalDesc>
4508
- <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4518
+ <nationalNumberPattern>[2-8]\d{4}</nationalNumberPattern>
4509
4519
  <possibleNumberPattern>\d{5}</possibleNumberPattern>
4510
4520
  </generalDesc>
4511
4521
  <fixedLine>
@@ -4519,12 +4529,7 @@
4519
4529
  <exampleNumber>21234</exampleNumber>
4520
4530
  </fixedLine>
4521
4531
  <mobile>
4522
- <nationalNumberPattern>
4523
- (?:
4524
- 5[0-68]|
4525
- 7\d
4526
- )\d{3}
4527
- </nationalNumberPattern>
4532
+ <nationalNumberPattern>[5-8]\d{4}</nationalNumberPattern>
4528
4533
  <exampleNumber>71234</exampleNumber>
4529
4534
  </mobile>
4530
4535
  </territory>
@@ -6156,7 +6161,12 @@
6156
6161
  <exampleNumber>21360003</exampleNumber>
6157
6162
  </fixedLine>
6158
6163
  <mobile>
6159
- <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
6164
+ <nationalNumberPattern>
6165
+ 77(?:
6166
+ 08|
6167
+ [6-8]\d
6168
+ )\d{4}
6169
+ </nationalNumberPattern>
6160
6170
  <exampleNumber>77831001</exampleNumber>
6161
6171
  </mobile>
6162
6172
  </territory>
@@ -6277,7 +6287,8 @@
6277
6287
  33|
6278
6288
  44|
6279
6289
  66|
6280
- 77
6290
+ 77|
6291
+ 88
6281
6292
  )[2-9]\d{6}
6282
6293
  </nationalNumberPattern>
6283
6294
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -6384,7 +6395,8 @@
6384
6395
  33|
6385
6396
  44|
6386
6397
  66|
6387
- 77
6398
+ 77|
6399
+ 88
6388
6400
  )[2-9]\d{6}
6389
6401
  </nationalNumberPattern>
6390
6402
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -7152,9 +7164,9 @@
7152
7164
  95[89] is assigned to some CDMA providers. Prefix 94 added after a user report.-->
7153
7165
  <nationalNumberPattern>
7154
7166
  9(?:
7155
- [1-3]\d|
7156
- 4[02467]|
7157
- 5[89]
7167
+ [1-4]\d|
7168
+ 5[89]|
7169
+ 66
7158
7170
  )\d{6}
7159
7171
  </nationalNumberPattern>
7160
7172
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -8259,7 +8271,8 @@
8259
8271
  33|
8260
8272
  44|
8261
8273
  66|
8262
- 77
8274
+ 77|
8275
+ 88
8263
8276
  )[2-9]\d{6}
8264
8277
  </nationalNumberPattern>
8265
8278
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -8744,12 +8757,7 @@
8744
8757
  <exampleNumber>5661234</exampleNumber>
8745
8758
  </fixedLine>
8746
8759
  <mobile>
8747
- <nationalNumberPattern>
8748
- (?:
8749
- 2[0-6]|
8750
- [3679]\d
8751
- )\d{5}
8752
- </nationalNumberPattern>
8760
+ <nationalNumberPattern>[23679]\d{6}</nationalNumberPattern>
8753
8761
  <exampleNumber>3012345</exampleNumber>
8754
8762
  </mobile>
8755
8763
  </territory>
@@ -9218,7 +9226,8 @@
9218
9226
  33|
9219
9227
  44|
9220
9228
  66|
9221
- 77
9229
+ 77|
9230
+ 88
9222
9231
  )[2-9]\d{6}
9223
9232
  </nationalNumberPattern>
9224
9233
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -10529,7 +10538,7 @@
10529
10538
  )|
10530
10539
  3(?:
10531
10540
  [058]|
10532
- 10|
10541
+ 1[09]|
10533
10542
  7[3679]|
10534
10543
  9[689]
10535
10544
  )|
@@ -10980,7 +10989,7 @@
10980
10989
  <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10981
10990
  codes list, are added because SMS messages have been successfully sent to these
10982
10991
  numbers. It seems almost impossible to know for some of these numbers whether they are
10983
- land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10992
+ land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[56],
10984
10993
  7695, 8299, 8309. New prefixes were also added based on the document provided from
10985
10994
  mobile carriers: https://github.com/googlei18n/libphonenumber/issues/260 and
10986
10995
  https://github.com/googlei18n/libphonenumber/pull/692/ -->
@@ -10996,7 +11005,7 @@
10996
11005
  )|
10997
11006
  3(?:
10998
11007
  [058]\d|
10999
- 10|
11008
+ 1[09]|
11000
11009
  7[3679]|
11001
11010
  9[689]
11002
11011
  )|
@@ -11967,7 +11976,8 @@
11967
11976
  33|
11968
11977
  44|
11969
11978
  66|
11970
- 77
11979
+ 77|
11980
+ 88
11971
11981
  )[2-9]\d{6}
11972
11982
  </nationalNumberPattern>
11973
11983
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -13574,7 +13584,8 @@
13574
13584
  33|
13575
13585
  44|
13576
13586
  66|
13577
- 77
13587
+ 77|
13588
+ 88
13578
13589
  )[2-9]\d{6}
13579
13590
  </nationalNumberPattern>
13580
13591
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -14067,7 +14078,8 @@
14067
14078
  33|
14068
14079
  44|
14069
14080
  66|
14070
- 77
14081
+ 77|
14082
+ 88
14071
14083
  )[2-9]\d{6}
14072
14084
  </nationalNumberPattern>
14073
14085
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -14458,7 +14470,8 @@
14458
14470
  33|
14459
14471
  44|
14460
14472
  66|
14461
- 77
14473
+ 77|
14474
+ 88
14462
14475
  )[2-9]\d{6}
14463
14476
  </nationalNumberPattern>
14464
14477
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -15183,7 +15196,7 @@
15183
15196
  2(?:
15184
15197
  (?:
15185
15198
  [015-7]\d|
15186
- 2[2-9]|
15199
+ 2[02-9]|
15187
15200
  3[2-57]|
15188
15201
  4[2-8]|
15189
15202
  8[235-7]
@@ -16260,7 +16273,8 @@
16260
16273
  33|
16261
16274
  44|
16262
16275
  66|
16263
- 77
16276
+ 77|
16277
+ 88
16264
16278
  )[2-9]\d{6}
16265
16279
  </nationalNumberPattern>
16266
16280
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -16397,7 +16411,8 @@
16397
16411
  33|
16398
16412
  44|
16399
16413
  66|
16400
- 77
16414
+ 77|
16415
+ 88
16401
16416
  )[2-9]\d{6}
16402
16417
  </nationalNumberPattern>
16403
16418
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -17151,7 +17166,11 @@
17151
17166
  [01378]|
17152
17167
  2\d
17153
17168
  )|
17154
- 4[01]|
17169
+ 4(?:
17170
+ [024]|
17171
+ 10?|
17172
+ 3[15]?
17173
+ )|
17155
17174
  69|
17156
17175
  7[014]
17157
17176
  )|
@@ -17183,7 +17202,7 @@
17183
17202
  )|
17184
17203
  4(?:
17185
17204
  [06]|
17186
- 1\d
17205
+ 1\d?
17187
17206
  )|
17188
17207
  5(?:
17189
17208
  [01357]|
@@ -17424,10 +17443,28 @@
17424
17443
  mobileNumberPortableRegion="true">
17425
17444
  <references>
17426
17445
  <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17446
+ <sourceUrl>http://www.ncc.gov.ng/index.php/index.php?option=com_content&amp;view=article&amp;id=113&amp;Itemid=102</sourceUrl>
17427
17447
  </references>
17448
+ <!-- The first pattern which is for mobile ranges overlaps with the pattern
17449
+ below it and is ordered above it as there are more mobile numbers with
17450
+ the overlapping prefixes than fixed-line prefixes. -->
17428
17451
  <availableFormats>
17429
- <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17430
- <leadingDigits>[129]</leadingDigits>
17452
+ <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17453
+ <leadingDigits>
17454
+ 70|
17455
+ 8[01]|
17456
+ 90[23589]
17457
+ </leadingDigits>
17458
+ <format>$1 $2 $3</format>
17459
+ </numberFormat>
17460
+ <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
17461
+ <leadingDigits>
17462
+ [12]|
17463
+ 9(?:
17464
+ 0[3-9]|
17465
+ [1-9]
17466
+ )
17467
+ </leadingDigits>
17431
17468
  <format>$1 $2 $3</format>
17432
17469
  </numberFormat>
17433
17470
  <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
@@ -17441,14 +17478,6 @@
17441
17478
  </leadingDigits>
17442
17479
  <format>$1 $2 $3</format>
17443
17480
  </numberFormat>
17444
- <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17445
- <leadingDigits>
17446
- 70|
17447
- 8[01]|
17448
- 90[2359]
17449
- </leadingDigits>
17450
- <format>$1 $2 $3</format>
17451
- </numberFormat>
17452
17481
  <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17453
17482
  <leadingDigits>[78]00</leadingDigits>
17454
17483
  <format>$1 $2 $3</format>
@@ -17500,12 +17529,6 @@
17500
17529
  <exampleNumber>12345678</exampleNumber>
17501
17530
  </fixedLine>
17502
17531
  <mobile>
17503
- <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17504
- from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17505
- Starcomms have apparently, according to the company, been used for mobile numbers too,
17506
- despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17507
- 903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
17508
- added for Etisalat. -->
17509
17532
  <nationalNumberPattern>
17510
17533
  (?:
17511
17534
  1(?:
@@ -17580,15 +17603,18 @@
17580
17603
  98[07]\d
17581
17604
  )\d{4}|
17582
17605
  (?:
17583
- 70(?:
17584
- [13-9]\d|
17585
- 2[1-9]
17586
- )|
17606
+ 70[1-689]\d|
17587
17607
  8(?:
17588
- 0[2-9]|
17589
- 1\d
17590
- )\d|
17591
- 90[2359]\d
17608
+ 0(?:
17609
+ 1[01]|
17610
+ [2-9]\d
17611
+ )|
17612
+ 1(?:
17613
+ [0-8]\d|
17614
+ 9[01]
17615
+ )
17616
+ )|
17617
+ 90[23589]\d
17592
17618
  )\d{6}
17593
17619
  </nationalNumberPattern>
17594
17620
  <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
@@ -18545,7 +18571,7 @@
18545
18571
  20150|
18546
18572
  68\d{2}|
18547
18573
  7(?:
18548
- [0-369]\d|
18574
+ [0-689]\d|
18549
18575
  75
18550
18576
  )\d{2}
18551
18577
  )\d{3}
@@ -19256,7 +19282,8 @@
19256
19282
  33|
19257
19283
  44|
19258
19284
  66|
19259
- 77
19285
+ 77|
19286
+ 88
19260
19287
  )[2-9]\d{6}
19261
19288
  </nationalNumberPattern>
19262
19289
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -20443,8 +20470,11 @@
20443
20470
  </numberFormat>
20444
20471
  </availableFormats>
20445
20472
  <generalDesc>
20446
- <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
20447
- <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20473
+ <nationalNumberPattern>
20474
+ [1-35-9]\d{5,11}|
20475
+ 4\d{6,8}
20476
+ </nationalNumberPattern>
20477
+ <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
20448
20478
  </generalDesc>
20449
20479
  <fixedLine>
20450
20480
  <nationalNumberPattern>
@@ -20483,8 +20513,7 @@
20483
20513
  )\d{5,6}
20484
20514
  )|
20485
20515
  4(?:
20486
- 0[1-9]\d{4,6}|
20487
- [246]\d{5,7}|
20516
+ [0246]\d{5,7}|
20488
20517
  (?:
20489
20518
  1[013-8]|
20490
20519
  3[0135]|
@@ -20506,8 +20535,7 @@
20506
20535
  9[01]
20507
20536
  )\d{5,6}|
20508
20537
  6(?:
20509
- 0[1-9]\d{4,6}|
20510
- 3\d{5,7}|
20538
+ [03]\d{5,7}|
20511
20539
  (?:
20512
20540
  1[1-3]|
20513
20541
  2[0-4]|
@@ -20519,7 +20547,7 @@
20519
20547
  9[0-356]
20520
20548
  )\d{5,6}
20521
20549
  )|
20522
- 8[1-9]\d{5,7}|
20550
+ 8\d{6,8}|
20523
20551
  9(?:
20524
20552
  0[1-9]\d{4,6}|
20525
20553
  (?:
@@ -20533,7 +20561,7 @@
20533
20561
  )\d{5,6}
20534
20562
  )
20535
20563
  </nationalNumberPattern>
20536
- <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20564
+ <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20537
20565
  <exampleNumber>8123456</exampleNumber>
20538
20566
  </fixedLine>
20539
20567
  <mobile>
@@ -20547,80 +20575,27 @@
20547
20575
  <exampleNumber>740123456</exampleNumber>
20548
20576
  </pager>
20549
20577
  <tollFree>
20550
- <nationalNumberPattern>
20551
- 20(?:
20552
- 0(?:
20553
- 0\d{2}|
20554
- [1-9](?:
20555
- 0\d{1,4}|
20556
- [1-9]\d{4}
20557
- )
20558
- )|
20559
- 1(?:
20560
- 0\d{4}|
20561
- [1-9]\d{4,5}
20562
- )|
20563
- [2-9]\d{5}
20564
- )
20565
- </nationalNumberPattern>
20578
+ <nationalNumberPattern>20\d{4,7}</nationalNumberPattern>
20566
20579
  <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20567
20580
  <exampleNumber>20123456</exampleNumber>
20568
20581
  </tollFree>
20569
20582
  <premiumRate>
20570
20583
  <nationalNumberPattern>
20584
+ 649\d{6}|
20571
20585
  9(?:
20572
20586
  00|
20573
20587
  39|
20574
20588
  44
20575
- )(?:
20576
- 1(?:
20577
- [0-26]\d{5}|
20578
- [3-57-9]\d{2}
20579
- )|
20580
- 2(?:
20581
- [0-2]\d{5}|
20582
- [3-9]\d{2}
20583
- )|
20584
- 3(?:
20585
- [0139]\d{5}|
20586
- [24-8]\d{2}
20587
- )|
20588
- 4(?:
20589
- [045]\d{5}|
20590
- [1-36-9]\d{2}
20591
- )|
20592
- 5(?:
20593
- 5\d{5}|
20594
- [0-46-9]\d{2}
20595
- )|
20596
- 6(?:
20597
- [679]\d{5}|
20598
- [0-58]\d{2}
20599
- )|
20600
- 7(?:
20601
- [078]\d{5}|
20602
- [1-69]\d{2}
20603
- )|
20604
- 8(?:
20605
- [578]\d{5}|
20606
- [0-469]\d{2}
20607
- )
20608
- )
20589
+ )[1-8]\d{3,6}
20609
20590
  </nationalNumberPattern>
20610
- <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20591
+ <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
20611
20592
  <exampleNumber>9001234567</exampleNumber>
20612
20593
  </premiumRate>
20613
20594
  <sharedCost>
20614
20595
  <nationalNumberPattern>
20615
20596
  77(?:
20616
- 0(?:
20617
- 0\d{2}|
20618
- [1-9](?:
20619
- 0\d|
20620
- [1-9]\d{4}
20621
- )
20622
- )|
20623
- [1-6][1-9]\d{5}
20597
+ 0\d{3}(?:\d{3})?|
20598
+ [1-7]\d{6}
20624
20599
  )
20625
20600
  </nationalNumberPattern>
20626
20601
  <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
@@ -20631,6 +20606,16 @@
20631
20606
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
20632
20607
  <exampleNumber>751234567</exampleNumber>
20633
20608
  </personalNumber>
20609
+ <voicemail>
20610
+ <nationalNumberPattern>
20611
+ (?:
20612
+ 25[245]|
20613
+ 67[3-6]
20614
+ )\d{9}
20615
+ </nationalNumberPattern>
20616
+ <possibleNumberPattern>\d{12}</possibleNumberPattern>
20617
+ <exampleNumber>254123456789</exampleNumber>
20618
+ </voicemail>
20634
20619
  </territory>
20635
20620
 
20636
20621
  <!-- Singapore -->
@@ -20938,6 +20923,14 @@
20938
20923
  <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20939
20924
  </references>
20940
20925
  <availableFormats>
20926
+ <numberFormat pattern="(2)(16)(\d{3,4})">
20927
+ <leadingDigits>216</leadingDigits>
20928
+ <format>$1 $2 $3</format>
20929
+ </numberFormat>
20930
+ <numberFormat pattern="([3-5]\d)(16)(\d{2,3})">
20931
+ <leadingDigits>[3-5]</leadingDigits>
20932
+ <format>$1 $2 $3</format>
20933
+ </numberFormat>
20941
20934
  <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20942
20935
  <leadingDigits>2</leadingDigits>
20943
20936
  <format>$1/$2 $3 $4</format>
@@ -20958,11 +20951,11 @@
20958
20951
  <generalDesc>
20959
20952
  <nationalNumberPattern>
20960
20953
  (?:
20961
- [2-68]\d{8}|
20954
+ [2-68]\d{5,8}|
20962
20955
  9\d{6,8}
20963
20956
  )
20964
20957
  </nationalNumberPattern>
20965
- <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20958
+ <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20966
20959
  </generalDesc>
20967
20960
  <noInternationalDialling>
20968
20961
  <nationalNumberPattern>
@@ -20983,8 +20976,18 @@
20983
20976
  <exampleNumber>800123456</exampleNumber>
20984
20977
  </noInternationalDialling>
20985
20978
  <fixedLine>
20986
- <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20987
- <possibleNumberPattern>\d{9}</possibleNumberPattern>
20979
+ <!-- Added range 16 as per pattern [areacode] + 16 + SN(\d{2,4}) -->
20980
+ <nationalNumberPattern>
20981
+ 2(?:
20982
+ 16\d{3,4}|
20983
+ \d{8}
20984
+ )|
20985
+ [3-5](?:
20986
+ [1-8]16\d{2,3}|
20987
+ \d{8}
20988
+ )
20989
+ </nationalNumberPattern>
20990
+ <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20988
20991
  <exampleNumber>212345678</exampleNumber>
20989
20992
  </fixedLine>
20990
20993
  <mobile>
@@ -21562,7 +21565,8 @@
21562
21565
  33|
21563
21566
  44|
21564
21567
  66|
21565
- 77
21568
+ 77|
21569
+ 88
21566
21570
  )[2-9]\d{6}
21567
21571
  </nationalNumberPattern>
21568
21572
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -21757,7 +21761,8 @@
21757
21761
  33|
21758
21762
  44|
21759
21763
  66|
21760
- 77
21764
+ 77|
21765
+ 88
21761
21766
  )[2-9]\d{6}
21762
21767
  </nationalNumberPattern>
21763
21768
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -21804,7 +21809,7 @@
21804
21809
  <!-- Adding entire 9 prefix based on information from carrier. -->
21805
21810
  <nationalNumberPattern>
21806
21811
  (?:
21807
- 6[02368]\d|
21812
+ 6[023568]\d|
21808
21813
  77\d|
21809
21814
  9\d{2}
21810
21815
  )\d{5}
@@ -22185,10 +22190,10 @@
22185
22190
  operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
22186
22191
  has been suspended. It is unclear whether it will resume. We support both ranges in the
22187
22192
  meantime. The range 62 seems also now to be in use, according to numbers found online.
22188
- MTS Turkmenistan have recently launched there NDC(69). So added range 69 after getting
22193
+ MTS Turkmenistan have recently launched their NDC(69). So added range 69 after getting
22189
22194
  confirmation from the carriers who own them.
22190
22195
  -->
22191
- <nationalNumberPattern>6[2-9]\d{6}</nationalNumberPattern>
22196
+ <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
22192
22197
  <exampleNumber>66123456</exampleNumber>
22193
22198
  </mobile>
22194
22199
  <!-- No tollFree or premiumRate information can be found. -->
@@ -22513,7 +22518,8 @@
22513
22518
  33|
22514
22519
  44|
22515
22520
  66|
22516
- 77
22521
+ 77|
22522
+ 88
22517
22523
  )[2-9]\d{6}
22518
22524
  </nationalNumberPattern>
22519
22525
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -23020,7 +23026,7 @@
23020
23026
  4[67]|
23021
23027
  5[12]|
23022
23028
  6[014]|
23023
- 8[56]
23029
+ 8[056]
23024
23030
  )|
23025
23031
  4(?:
23026
23032
  0[124-9]|
@@ -23112,7 +23118,7 @@
23112
23118
  4[67]|
23113
23119
  5[12]|
23114
23120
  6[014]|
23115
- 8[56]
23121
+ 8[056]
23116
23122
  )|
23117
23123
  4(?:
23118
23124
  0[124-9]|
@@ -23209,7 +23215,8 @@
23209
23215
  33|
23210
23216
  44|
23211
23217
  66|
23212
- 77
23218
+ 77|
23219
+ 88
23213
23220
  )[2-9]\d{6}
23214
23221
  </nationalNumberPattern>
23215
23222
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -23819,7 +23826,8 @@
23819
23826
  33|
23820
23827
  44|
23821
23828
  66|
23822
- 77
23829
+ 77|
23830
+ 88
23823
23831
  )[2-9]\d{6}
23824
23832
  </nationalNumberPattern>
23825
23833
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -23973,7 +23981,8 @@
23973
23981
  33|
23974
23982
  44|
23975
23983
  66|
23976
- 77
23984
+ 77|
23985
+ 88
23977
23986
  )[2-9]\d{6}
23978
23987
  </nationalNumberPattern>
23979
23988
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -24098,7 +24107,8 @@
24098
24107
  33|
24099
24108
  44|
24100
24109
  66|
24101
- 77
24110
+ 77|
24111
+ 88
24102
24112
  )[2-9]\d{6}
24103
24113
  </nationalNumberPattern>
24104
24114
  <possibleNumberPattern>\d{10}</possibleNumberPattern>