phonelib 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/data/PhoneNumberMetaData.xml +158 -125
- data/data/phone_data.dat +0 -0
- data/lib/phonelib.rb +1 -3
- data/lib/phonelib/core.rb +9 -63
- data/lib/phonelib/phone.rb +41 -27
- data/lib/phonelib/phone_analyzer.rb +175 -47
- data/lib/phonelib/version.rb +1 -1
- data/lib/tasks/phonelib_tasks.rake +3 -2
- metadata +28 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 29055d1498d5685ac059d21d2ab2fef9a6041a32
|
4
|
+
data.tar.gz: 8d5047983bdac17132ad444f953522b3271fe593
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ac7f6c81df3e37071500ad19757b105b6937b87b6cae4d43d3ea944c85fc3f093dcad848c176ca00f59d33e2cd5ced6ece6d04e48f69aa3e2b5b044c632fb3a4
|
7
|
+
data.tar.gz: 0af44748bfe52bc18dfae1c36ee1f1de8870b04f318db8bc9a07a3c0c1dc1acf27653ed5aeaa3eacd0812c2a091787ee5f445bf7f16a8725f6eb9366e5d257a3
|
@@ -1112,11 +1112,14 @@
|
|
1112
1112
|
<exampleNumber>6846221234</exampleNumber>
|
1113
1113
|
</fixedLine>
|
1114
1114
|
<mobile>
|
1115
|
-
<!--
|
1115
|
+
<!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
|
1116
1116
|
<nationalNumberPattern>
|
1117
1117
|
684(?:
|
1118
|
-
|
1119
|
-
|
1118
|
+
25[2468]|
|
1119
|
+
7(?:
|
1120
|
+
3[13]|
|
1121
|
+
70
|
1122
|
+
)
|
1120
1123
|
)\d{4}
|
1121
1124
|
</nationalNumberPattern>
|
1122
1125
|
<possibleNumberPattern>\d{10}</possibleNumberPattern>
|
@@ -2416,9 +2419,9 @@
|
|
2416
2419
|
<mobile>
|
2417
2420
|
<nationalNumberPattern>
|
2418
2421
|
6(?:
|
2419
|
-
[0-24-
|
2422
|
+
[0-24-689]\d|
|
2420
2423
|
3[0-7]|
|
2421
|
-
|
2424
|
+
7[0-2]
|
2422
2425
|
)\d{5}|
|
2423
2426
|
7\d{7}
|
2424
2427
|
</nationalNumberPattern>
|
@@ -2708,11 +2711,11 @@
|
|
2708
2711
|
<mobile>
|
2709
2712
|
<!-- We have restricted the pattern here to the first two digits, as beyond this the data
|
2710
2713
|
seems to be no longer accurate. The prefixes 9[46] have also been added, along with
|
2711
|
-
6[
|
2714
|
+
6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
|
2712
2715
|
reported as having prefixes 68 and 9[89]. -->
|
2713
2716
|
<nationalNumberPattern>
|
2714
2717
|
(?:
|
2715
|
-
6[
|
2718
|
+
6[146-8]|
|
2716
2719
|
9[03-9]
|
2717
2720
|
)\d{6}
|
2718
2721
|
</nationalNumberPattern>
|
@@ -3063,9 +3066,13 @@
|
|
3063
3066
|
last 8 digits. The following pattern is divided into 3 sections: ranges for which the
|
3064
3067
|
migration has been completed, ranges which are in transition, and ranges which are
|
3065
3068
|
still in the old format. (Ranges which were supposed to have been deprecated in
|
3066
|
-
Oct. 2013 are still working as of Jan. 2014.)
|
3069
|
+
Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
|
3070
|
+
still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
|
3067
3071
|
<nationalNumberPattern>
|
3068
|
-
1[1-9]
|
3072
|
+
1[1-9](?:
|
3073
|
+
7|
|
3074
|
+
9\d
|
3075
|
+
)\d{7}|
|
3069
3076
|
2[12478]9?[6-9]\d{7}|
|
3070
3077
|
(?:
|
3071
3078
|
3[1-578]|
|
@@ -3298,12 +3305,12 @@
|
|
3298
3305
|
<exampleNumber>2401234</exampleNumber>
|
3299
3306
|
</fixedLine>
|
3300
3307
|
<mobile>
|
3301
|
-
<!-- 77[
|
3308
|
+
<!-- 77[01467] has been added after numbers in use have been seen online. -->
|
3302
3309
|
<nationalNumberPattern>
|
3303
3310
|
7(?:
|
3304
3311
|
[1-35]\d{6}|
|
3305
3312
|
[46][0-7]\d{5}|
|
3306
|
-
7[
|
3313
|
+
7[01467]\d{5}
|
3307
3314
|
)
|
3308
3315
|
</nationalNumberPattern>
|
3309
3316
|
<possibleNumberPattern>\d{8}</possibleNumberPattern>
|
@@ -4092,13 +4099,13 @@
|
|
4092
4099
|
we strip here. National destinations may be dialled with a carrier if they are not local so
|
4093
4100
|
we extract these carrier codes as well. -->
|
4094
4101
|
<availableFormats>
|
4095
|
-
<numberFormat pattern="(
|
4102
|
+
<numberFormat pattern="(\d)(\d{4})(\d{4})"
|
4096
4103
|
nationalPrefixFormattingRule="($FG)"
|
4097
4104
|
carrierCodeFormattingRule="$CC ($FG)">
|
4098
4105
|
<leadingDigits>2</leadingDigits>
|
4099
4106
|
<format>$1 $2 $3</format>
|
4100
4107
|
</numberFormat>
|
4101
|
-
<numberFormat pattern="(\d{2})(\d{
|
4108
|
+
<numberFormat pattern="(\d{2})(\d{3})(\d{4})"
|
4102
4109
|
nationalPrefixFormattingRule="($FG)"
|
4103
4110
|
carrierCodeFormattingRule="$CC ($FG)">
|
4104
4111
|
<leadingDigits>
|
@@ -4108,6 +4115,13 @@
|
|
4108
4115
|
</leadingDigits>
|
4109
4116
|
<format>$1 $2 $3</format>
|
4110
4117
|
</numberFormat>
|
4118
|
+
<!-- 65 is the only remaining prefix using the old fixed-line format. -->
|
4119
|
+
<numberFormat pattern="(\d{2})(\d{2})(\d{4})"
|
4120
|
+
nationalPrefixFormattingRule="($FG)"
|
4121
|
+
carrierCodeFormattingRule="$CC ($FG)">
|
4122
|
+
<leadingDigits>65</leadingDigits>
|
4123
|
+
<format>$1 $2 $3</format>
|
4124
|
+
</numberFormat>
|
4111
4125
|
<numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
|
4112
4126
|
<leadingDigits>9</leadingDigits>
|
4113
4127
|
<format>$1 $2 $3</format>
|
@@ -4158,34 +4172,26 @@
|
|
4158
4172
|
<exampleNumber>6001234567</exampleNumber>
|
4159
4173
|
</noInternationalDialling>
|
4160
4174
|
<fixedLine>
|
4161
|
-
<!--
|
4162
|
-
|
4163
|
-
|
4164
|
-
|
4165
|
-
|
4166
|
-
|
4167
|
-
|
4168
|
-
|
4169
|
-
will unify all fixed line numbers to be 9 digits in total. The fact that the new seven
|
4170
|
-
digit numbers currently only start with a '2' is likely to change in the future.
|
4171
|
-
Note also that at some stage it is likely that Santiago numbers (area code '2') will
|
4172
|
-
have a prefix of "2\d" and not "22" (it's like 10 2-digit area codes wrapped into one).
|
4175
|
+
<!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
|
4176
|
+
inserting a '2' after the area code (which are 2 digits, with the exception of '2').
|
4177
|
+
As of Feb. 2014, all of the prefixes have been switched over to the new plan, except
|
4178
|
+
for 65 (which according to the schedule should have been switched over by July 2013).
|
4179
|
+
IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
|
4180
|
+
other areas have '2' as their third digit, is likely to change in the future. At some
|
4181
|
+
stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
|
4182
|
+
other areas will probably be allowed to take on other values.
|
4173
4183
|
See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
|
4174
4184
|
http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
|
4175
4185
|
-->
|
4176
4186
|
<nationalNumberPattern>
|
4177
4187
|
(?:
|
4178
|
-
|
4179
|
-
|
4180
|
-
|
4188
|
+
22|
|
4189
|
+
3[2-5]|
|
4190
|
+
[47][1-35]|
|
4191
|
+
5[1-3578]|
|
4192
|
+
6[1347]
|
4181
4193
|
)\d{7}|
|
4182
|
-
|
4183
|
-
3[3-5]|
|
4184
|
-
4[235]|
|
4185
|
-
5[1-357]|
|
4186
|
-
6[13-57]|
|
4187
|
-
7[1-35]
|
4188
|
-
)\d{6,7}
|
4194
|
+
65\d{6,7}
|
4189
4195
|
</nationalNumberPattern>
|
4190
4196
|
<!-- Area codes do not need to be dialled when dialling within the same area, so the
|
4191
4197
|
smallest possible number is length 6. -->
|
@@ -4802,13 +4808,13 @@
|
|
4802
4808
|
<nationalNumberPattern>
|
4803
4809
|
5(?:
|
4804
4810
|
0[0-4]|
|
4805
|
-
7[
|
4811
|
+
7[0-3]
|
4806
4812
|
)\d{5}|
|
4807
4813
|
6(?:
|
4808
4814
|
[0-2]\d|
|
4809
4815
|
30
|
4810
4816
|
)\d{5}|
|
4811
|
-
7[0-
|
4817
|
+
7[0-3]\d{6}|
|
4812
4818
|
8[3-9]\d{6}
|
4813
4819
|
</nationalNumberPattern>
|
4814
4820
|
<possibleNumberPattern>\d{8}</possibleNumberPattern>
|
@@ -5475,6 +5481,8 @@
|
|
5475
5481
|
<!-- According to
|
5476
5482
|
http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
|
5477
5483
|
numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
|
5484
|
+
The ranges 15[056] have been removed from the ITU doc, but information found online
|
5485
|
+
indicates that they may still be working.
|
5478
5486
|
-->
|
5479
5487
|
<nationalNumberPattern>
|
5480
5488
|
1(?:
|
@@ -5836,7 +5844,8 @@
|
|
5836
5844
|
</fixedLine>
|
5837
5845
|
<mobile>
|
5838
5846
|
<!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
|
5839
|
-
Mobilis Algeria provided it, and 54 for Nedjma
|
5847
|
+
Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[12] were also added for
|
5848
|
+
Mobilis Algeria based on evidence found online. -->
|
5840
5849
|
<nationalNumberPattern>
|
5841
5850
|
(?:
|
5842
5851
|
5[4-6]|
|
@@ -5844,7 +5853,7 @@
|
|
5844
5853
|
)\d{7}|
|
5845
5854
|
6(?:
|
5846
5855
|
[569]\d|
|
5847
|
-
|
5856
|
+
7[0-2]
|
5848
5857
|
)\d{6}
|
5849
5858
|
</nationalNumberPattern>
|
5850
5859
|
<possibleNumberPattern>\d{9}</possibleNumberPattern>
|
@@ -6860,9 +6869,10 @@
|
|
6860
6869
|
<exampleNumber>123456789</exampleNumber>
|
6861
6870
|
</fixedLine>
|
6862
6871
|
<mobile>
|
6872
|
+
<!-- Prefixes 7[0-24] were added based on numbers found online. -->
|
6863
6873
|
<nationalNumberPattern>
|
6864
6874
|
6\d{8}|
|
6865
|
-
7[
|
6875
|
+
7[0-24-9]\d{7}
|
6866
6876
|
</nationalNumberPattern>
|
6867
6877
|
<exampleNumber>612345678</exampleNumber>
|
6868
6878
|
</mobile>
|
@@ -7556,7 +7566,10 @@
|
|
7556
7566
|
20|
|
7557
7567
|
58
|
7558
7568
|
)|
|
7559
|
-
|
7569
|
+
5(?:
|
7570
|
+
2[01]|
|
7571
|
+
3[3-8]
|
7572
|
+
)
|
7560
7573
|
)\d{4}
|
7561
7574
|
</nationalNumberPattern>
|
7562
7575
|
<possibleNumberPattern>\d{10}</possibleNumberPattern>
|
@@ -9732,13 +9745,12 @@
|
|
9732
9745
|
9[7-9]
|
9733
9746
|
)|
|
9734
9747
|
6(?:
|
9735
|
-
0[
|
9748
|
+
0[0-27]|
|
9736
9749
|
1[0-257-9]|
|
9737
9750
|
2[0-4]|
|
9738
9751
|
3[19]|
|
9739
9752
|
5[4589]|
|
9740
|
-
[
|
9741
|
-
8[0-589]
|
9753
|
+
[6-9]
|
9742
9754
|
)|
|
9743
9755
|
7(?:
|
9744
9756
|
0[2-9]|
|
@@ -10165,9 +10177,9 @@
|
|
10165
10177
|
<!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
|
10166
10178
|
codes list, are added because SMS messages have been successfully sent to these
|
10167
10179
|
numbers. It seems almost impossible to know for some of these numbers whether they are
|
10168
|
-
land-line or mobile, since the ranges overlap. Extra prefixes added:
|
10169
|
-
8309. New prefixes were also added based on the document provided from
|
10170
|
-
https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
|
10180
|
+
land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
|
10181
|
+
7695, 8299, 8309. New prefixes were also added based on the document provided from
|
10182
|
+
mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
|
10171
10183
|
<nationalNumberPattern>
|
10172
10184
|
(?:
|
10173
10185
|
7(?:
|
@@ -10197,13 +10209,12 @@
|
|
10197
10209
|
9[7-9]
|
10198
10210
|
)|
|
10199
10211
|
6(?:
|
10200
|
-
0[
|
10212
|
+
0[0127]|
|
10201
10213
|
1[0-257-9]|
|
10202
10214
|
2[0-4]|
|
10203
10215
|
3[19]|
|
10204
10216
|
5[4589]|
|
10205
|
-
[
|
10206
|
-
8[0-589]
|
10217
|
+
[6-9]\d
|
10207
10218
|
)|
|
10208
10219
|
7(?:
|
10209
10220
|
0[2-9]|
|
@@ -11386,55 +11397,61 @@
|
|
11386
11397
|
<leadingDigits>800</leadingDigits>
|
11387
11398
|
<format>$1-$2-$3</format>
|
11388
11399
|
</numberFormat>
|
11389
|
-
<!-- National-only toll-free numbers (0077 and 0088)
|
11390
|
-
|
11391
|
-
|
11392
|
-
<leadingDigits>077</leadingDigits>
|
11400
|
+
<!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
|
11401
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
|
11402
|
+
<leadingDigits>0077</leadingDigits>
|
11393
11403
|
<format>$1-$2</format>
|
11404
|
+
<intlFormat>NA</intlFormat>
|
11394
11405
|
</numberFormat>
|
11395
|
-
<numberFormat pattern="(\d{
|
11396
|
-
<leadingDigits>
|
11406
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
|
11407
|
+
<leadingDigits>0077</leadingDigits>
|
11397
11408
|
<format>$1-$2-$3</format>
|
11409
|
+
<intlFormat>NA</intlFormat>
|
11398
11410
|
</numberFormat>
|
11399
|
-
<numberFormat pattern="(\d{
|
11400
|
-
<leadingDigits>
|
11411
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
|
11412
|
+
<leadingDigits>0088</leadingDigits>
|
11401
11413
|
<format>$1-$2-$3</format>
|
11414
|
+
<intlFormat>NA</intlFormat>
|
11402
11415
|
</numberFormat>
|
11403
|
-
<numberFormat pattern="(\d{
|
11416
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
|
11404
11417
|
<leadingDigits>
|
11405
|
-
|
11406
|
-
|
11407
|
-
|
11418
|
+
00(?:
|
11419
|
+
37|
|
11420
|
+
66
|
11408
11421
|
)
|
11409
11422
|
</leadingDigits>
|
11410
11423
|
<format>$1-$2-$3</format>
|
11424
|
+
<intlFormat>NA</intlFormat>
|
11411
11425
|
</numberFormat>
|
11412
|
-
<numberFormat pattern="(\d{
|
11426
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
|
11413
11427
|
<leadingDigits>
|
11414
|
-
|
11415
|
-
|
11416
|
-
|
11428
|
+
00(?:
|
11429
|
+
37|
|
11430
|
+
66
|
11417
11431
|
)
|
11418
11432
|
</leadingDigits>
|
11419
11433
|
<format>$1-$2-$3</format>
|
11434
|
+
<intlFormat>NA</intlFormat>
|
11420
11435
|
</numberFormat>
|
11421
|
-
<numberFormat pattern="(\d{
|
11436
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
|
11422
11437
|
<leadingDigits>
|
11423
|
-
|
11424
|
-
|
11425
|
-
|
11438
|
+
00(?:
|
11439
|
+
37|
|
11440
|
+
66
|
11426
11441
|
)
|
11427
11442
|
</leadingDigits>
|
11428
11443
|
<format>$1-$2-$3</format>
|
11444
|
+
<intlFormat>NA</intlFormat>
|
11429
11445
|
</numberFormat>
|
11430
|
-
<numberFormat pattern="(\d{
|
11446
|
+
<numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
|
11431
11447
|
<leadingDigits>
|
11432
|
-
|
11433
|
-
|
11434
|
-
|
11448
|
+
00(?:
|
11449
|
+
37|
|
11450
|
+
66
|
11435
11451
|
)
|
11436
11452
|
</leadingDigits>
|
11437
11453
|
<format>$1-$2-$3</format>
|
11454
|
+
<intlFormat>NA</intlFormat>
|
11438
11455
|
</numberFormat>
|
11439
11456
|
<!-- Some leading digits are explicitly reserved for a particular purpose.
|
11440
11457
|
We handle them first in this rule, and let the following rules ignore those exceptions.
|
@@ -12203,30 +12220,29 @@
|
|
12203
12220
|
<generalDesc>
|
12204
12221
|
<nationalNumberPattern>
|
12205
12222
|
[1-9]\d{8,9}|
|
12206
|
-
|
12207
|
-
|
12208
|
-
|
12209
|
-
|
12223
|
+
00(?:
|
12224
|
+
[36]\d{7,14}|
|
12225
|
+
7\d{5,7}|
|
12226
|
+
8\d{7}
|
12210
12227
|
)
|
12211
12228
|
</nationalNumberPattern>
|
12212
|
-
<possibleNumberPattern>\d{
|
12229
|
+
<possibleNumberPattern>\d{8,17}</possibleNumberPattern>
|
12213
12230
|
</generalDesc>
|
12214
12231
|
<noInternationalDialling>
|
12215
12232
|
<!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
|
12216
12233
|
<nationalNumberPattern>
|
12217
|
-
|
12218
|
-
|
12219
|
-
|
12220
|
-
|
12221
|
-
|
12222
|
-
|
12223
|
-
|
12224
|
-
|
12225
|
-
|
12234
|
+
00(?:
|
12235
|
+
37\d{6,13}|
|
12236
|
+
66\d{6,13}|
|
12237
|
+
777(?:
|
12238
|
+
[01]\d{2}|
|
12239
|
+
5\d{3}|
|
12240
|
+
8\d{4}
|
12241
|
+
)|
|
12242
|
+
882[1245]\d{4}
|
12226
12243
|
)
|
12227
12244
|
</nationalNumberPattern>
|
12228
|
-
<
|
12229
|
-
<exampleNumber>0777012</exampleNumber>
|
12245
|
+
<exampleNumber>00777012</exampleNumber>
|
12230
12246
|
</noInternationalDialling>
|
12231
12247
|
<fixedLine>
|
12232
12248
|
<nationalNumberPattern>
|
@@ -12302,18 +12318,17 @@
|
|
12302
12318
|
<nationalNumberPattern>
|
12303
12319
|
120\d{6}|
|
12304
12320
|
800\d{7}|
|
12305
|
-
|
12306
|
-
|
12307
|
-
|
12308
|
-
|
12309
|
-
|
12310
|
-
|
12311
|
-
|
12312
|
-
|
12313
|
-
|
12321
|
+
00(?:
|
12322
|
+
37\d{6,13}|
|
12323
|
+
66\d{6,13}|
|
12324
|
+
777(?:
|
12325
|
+
[01]\d{2}|
|
12326
|
+
5\d{3}|
|
12327
|
+
8\d{4}
|
12328
|
+
)|
|
12329
|
+
882[1245]\d{4}
|
12314
12330
|
)
|
12315
12331
|
</nationalNumberPattern>
|
12316
|
-
<possibleNumberPattern>\d{7,16}</possibleNumberPattern>
|
12317
12332
|
<exampleNumber>120123456</exampleNumber>
|
12318
12333
|
</tollFree>
|
12319
12334
|
<premiumRate>
|
@@ -13101,13 +13116,11 @@
|
|
13101
13116
|
<exampleNumber>22345678</exampleNumber>
|
13102
13117
|
</fixedLine>
|
13103
13118
|
<mobile>
|
13104
|
-
<!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be
|
13105
|
-
a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. -->
|
13106
13119
|
<nationalNumberPattern>
|
13107
13120
|
(?:
|
13108
13121
|
5(?:
|
13109
|
-
|
13110
|
-
[
|
13122
|
+
[05]\d|
|
13123
|
+
1[0-6]
|
13111
13124
|
)|
|
13112
13125
|
6(?:
|
13113
13126
|
0[034679]|
|
@@ -14144,7 +14157,12 @@
|
|
14144
14157
|
<exampleNumber>27123456</exampleNumber>
|
14145
14158
|
</fixedLine>
|
14146
14159
|
<mobile>
|
14147
|
-
<nationalNumberPattern>
|
14160
|
+
<nationalNumberPattern>
|
14161
|
+
6(?:
|
14162
|
+
[269][18]|
|
14163
|
+
71
|
14164
|
+
)\d{6}
|
14165
|
+
</nationalNumberPattern>
|
14148
14166
|
<possibleNumberPattern>\d{9}</possibleNumberPattern>
|
14149
14167
|
<exampleNumber>628123456</exampleNumber>
|
14150
14168
|
</mobile>
|
@@ -14505,7 +14523,7 @@
|
|
14505
14523
|
)|
|
14506
14524
|
7(?:
|
14507
14525
|
67|
|
14508
|
-
7[
|
14526
|
+
7[457-9]|
|
14509
14527
|
[89]\d
|
14510
14528
|
)
|
14511
14529
|
)\d{5}
|
@@ -16479,7 +16497,7 @@
|
|
16479
16497
|
<leadingDigits>
|
16480
16498
|
70|
|
16481
16499
|
8[01]|
|
16482
|
-
|
16500
|
+
90[39]
|
16483
16501
|
</leadingDigits>
|
16484
16502
|
<format>$1 $2 $3</format>
|
16485
16503
|
</numberFormat>
|
@@ -16538,7 +16556,7 @@
|
|
16538
16556
|
from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
|
16539
16557
|
Starcomms have apparently, according to the company, been used for mobile numbers too,
|
16540
16558
|
despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
|
16541
|
-
|
16559
|
+
903 has been added for MTN and 909 has been added for Etisalat. -->
|
16542
16560
|
<nationalNumberPattern>
|
16543
16561
|
(?:
|
16544
16562
|
1(?:
|
@@ -16621,7 +16639,7 @@
|
|
16621
16639
|
0[2-9]|
|
16622
16640
|
1\d
|
16623
16641
|
)\d|
|
16624
|
-
|
16642
|
+
90[39]\d
|
16625
16643
|
)\d{6}
|
16626
16644
|
</nationalNumberPattern>
|
16627
16645
|
<possibleNumberPattern>\d{8,10}</possibleNumberPattern>
|
@@ -17066,7 +17084,7 @@
|
|
17066
17084
|
<format>$1 $2 $3</format>
|
17067
17085
|
</numberFormat>
|
17068
17086
|
<!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
|
17069
|
-
<numberFormat pattern="(\d{2})(\d{3})(\d{3,
|
17087
|
+
<numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
|
17070
17088
|
<leadingDigits>
|
17071
17089
|
2(?:
|
17072
17090
|
1[1-9]|
|
@@ -17121,14 +17139,16 @@
|
|
17121
17139
|
<exampleNumber>32345678</exampleNumber>
|
17122
17140
|
</fixedLine>
|
17123
17141
|
<mobile>
|
17124
|
-
<!-- Includes mobile radio service numbers (e.g. TeamTalk).
|
17142
|
+
<!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
|
17143
|
+
prefix 21 are different from what's specified in the ITU doc, because of numbers found
|
17144
|
+
online. -->
|
17125
17145
|
<nationalNumberPattern>
|
17126
17146
|
2(?:
|
17127
17147
|
[028]\d{7,8}|
|
17128
17148
|
1(?:
|
17129
|
-
|
17130
|
-
[
|
17131
|
-
[
|
17149
|
+
[03]\d{5,7}|
|
17150
|
+
[12457]\d{5,6}|
|
17151
|
+
[689]\d{5}
|
17132
17152
|
)|
|
17133
17153
|
[79]\d{7}
|
17134
17154
|
)
|
@@ -17949,12 +17969,11 @@
|
|
17949
17969
|
</fixedLine>
|
17950
17970
|
<mobile>
|
17951
17971
|
<!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
|
17952
|
-
can be found online with these prefixes. -->
|
17972
|
+
can be found online with these prefixes. Added 310 based on information from Zong. -->
|
17953
17973
|
<nationalNumberPattern>
|
17954
17974
|
3(?:
|
17955
17975
|
0\d|
|
17956
|
-
|
17957
|
-
2[0-5]|
|
17976
|
+
[12][0-5]|
|
17958
17977
|
[34][1-7]|
|
17959
17978
|
55|
|
17960
17979
|
64
|
@@ -18069,7 +18088,7 @@
|
|
18069
18088
|
<numberFormat pattern="(\d{3})(\d{3})(\d{3})">
|
18070
18089
|
<leadingDigits>
|
18071
18090
|
39|
|
18072
|
-
5[
|
18091
|
+
5[0137]|
|
18073
18092
|
6[0469]|
|
18074
18093
|
7[02389]|
|
18075
18094
|
8[08]
|
@@ -18118,7 +18137,7 @@
|
|
18118
18137
|
<mobile>
|
18119
18138
|
<nationalNumberPattern>
|
18120
18139
|
(?:
|
18121
|
-
5[
|
18140
|
+
5[0137]|
|
18122
18141
|
6[069]|
|
18123
18142
|
7[2389]|
|
18124
18143
|
88
|
@@ -20450,6 +20469,8 @@
|
|
20450
20469
|
<possibleNumberPattern>\d{6,9}</possibleNumberPattern>
|
20451
20470
|
</generalDesc>
|
20452
20471
|
<fixedLine>
|
20472
|
+
<!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
|
20473
|
+
the Internet. -->
|
20453
20474
|
<nationalNumberPattern>
|
20454
20475
|
(?:
|
20455
20476
|
1(?:
|
@@ -20457,7 +20478,10 @@
|
|
20457
20478
|
4\d|
|
20458
20479
|
[2356]
|
20459
20480
|
)|
|
20460
|
-
2
|
20481
|
+
2(?:
|
20482
|
+
1\d?|
|
20483
|
+
[235]
|
20484
|
+
)|
|
20461
20485
|
3(?:
|
20462
20486
|
[13]\d|
|
20463
20487
|
4
|
@@ -22043,7 +22067,7 @@
|
|
22043
22067
|
<exampleNumber>21231234</exampleNumber>
|
22044
22068
|
</fixedLine>
|
22045
22069
|
<mobile>
|
22046
|
-
<nationalNumberPattern>9[
|
22070
|
+
<nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
|
22047
22071
|
<possibleNumberPattern>\d{8}</possibleNumberPattern>
|
22048
22072
|
<exampleNumber>94231234</exampleNumber>
|
22049
22073
|
</mobile>
|
@@ -22946,7 +22970,7 @@
|
|
22946
22970
|
<fixedLine>
|
22947
22971
|
<nationalNumberPattern>
|
22948
22972
|
(?:
|
22949
|
-
2[
|
22973
|
+
2[02-9]\d|
|
22950
22974
|
3(?:
|
22951
22975
|
[5-7]\d|
|
22952
22976
|
8[0-8]
|
@@ -23792,16 +23816,25 @@
|
|
23792
23816
|
</voicemail>
|
23793
23817
|
</territory>
|
23794
23818
|
|
23795
|
-
<!-- http://www.itu.int/oth/T02020000F3/en
|
23796
|
-
|
23819
|
+
<!-- http://www.itu.int/oth/T02020000F3/en (Voxbone)
|
23820
|
+
http://www.itu.int/oth/T02020000FB/en (bandwidth.com)
|
23821
|
+
http://www.itu.int/oth/T02020000FC/en (SipMe) -->
|
23797
23822
|
<territory id="001" countryCode="883">
|
23798
23823
|
<availableFormats>
|
23799
23824
|
<numberFormat pattern="(\d{3})(\d{3})(\d{3})">
|
23825
|
+
<leadingDigits>510</leadingDigits>
|
23800
23826
|
<format>$1 $2 $3</format>
|
23801
23827
|
</numberFormat>
|
23802
23828
|
<numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
|
23829
|
+
<leadingDigits>510</leadingDigits>
|
23803
23830
|
<format>$1 $2 $3 $4</format>
|
23804
23831
|
</numberFormat>
|
23832
|
+
<!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
|
23833
|
+
seems preferred (see Bandwidth.com and SipMe). -->
|
23834
|
+
<numberFormat pattern="(\d{4})(\d{4})(\d{4})">
|
23835
|
+
<leadingDigits>51[13]</leadingDigits>
|
23836
|
+
<format>$1 $2 $3</format>
|
23837
|
+
</numberFormat>
|
23805
23838
|
</availableFormats>
|
23806
23839
|
<generalDesc>
|
23807
23840
|
<!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
|
@@ -23822,7 +23855,7 @@
|
|
23822
23855
|
<nationalNumberPattern>
|
23823
23856
|
51(?:
|
23824
23857
|
00\d{5}(?:\d{3})?|
|
23825
|
-
|
23858
|
+
[13]0\d{8}
|
23826
23859
|
)
|
23827
23860
|
</nationalNumberPattern>
|
23828
23861
|
</voip>
|