telephone_number 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/geocoding/en/1.dat +0 -0
- data/data/geocoding/en/1.txt +1 -2
- data/data/geocoding/en/81.dat +0 -0
- data/data/geocoding/en/81.txt +1 -1
- data/data/telephone_number_data_file.dat +0 -0
- data/data/telephone_number_data_file.xml +129 -91
- data/lib/importers/geo_location_data_importer.rb +1 -1
- data/lib/telephone_number/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ead78e203a5dcc8deb21cf2b3dccc002e7f349fa
|
4
|
+
data.tar.gz: 6a958f18f92076d84e1488229b5d22edf617c474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b86a2b25430edf91f7ec5903d3bc0b693b3a65b939962dfc46550479a1219ee23fb035498efd8847843203c56e9139f9dee69e528059b60ef14079b4ae5de5
|
7
|
+
data.tar.gz: d6fab606c1dc9d24418dfa2ed2f34fc7ca2b6417464192c52d073ff15e1efaf0281619124936d81898cf400bb523dcdf4b711ae760cf394f2b83874d071946db
|
data/data/geocoding/en/1.dat
CHANGED
Binary file
|
data/data/geocoding/en/1.txt
CHANGED
@@ -2519,7 +2519,6 @@
|
|
2519
2519
|
1242369|Andros
|
2520
2520
|
1242373|Grand Bahama
|
2521
2521
|
1242374|Grand Bahama
|
2522
|
-
1242376|Grand Bahama
|
2523
2522
|
1242377|New Providence
|
2524
2523
|
124238|New Providence
|
2525
2524
|
1242392|New Providence
|
@@ -27393,7 +27392,7 @@
|
|
27393
27392
|
1867|Northwest Territories/Nunavut/Yukon
|
27394
27393
|
1867393|Whitehorse, YT
|
27395
27394
|
1867456|Whitehorse, YT
|
27396
|
-
1867536|Watson Lake
|
27395
|
+
1867536|Watson Lake
|
27397
27396
|
1867633|Whitehorse, YT
|
27398
27397
|
1867645|Rankin Inlet, NU
|
27399
27398
|
1867667|Whitehorse, YT
|
data/data/geocoding/en/81.dat
CHANGED
Binary file
|
data/data/geocoding/en/81.txt
CHANGED
Binary file
|
@@ -2448,7 +2448,7 @@
|
|
2448
2448
|
<nationalNumberPattern>
|
2449
2449
|
4(?:
|
2450
2450
|
83[0-38]|
|
2451
|
-
93[
|
2451
|
+
93[0-4]
|
2452
2452
|
)\d{5}|
|
2453
2453
|
4(?:
|
2454
2454
|
[0-3]\d|
|
@@ -2456,7 +2456,7 @@
|
|
2456
2456
|
5[0-25-9]|
|
2457
2457
|
6[06-9]|
|
2458
2458
|
7[02-9]|
|
2459
|
-
8[0-
|
2459
|
+
8[0-24-9]|
|
2460
2460
|
9[0-27-9]
|
2461
2461
|
)\d{6}
|
2462
2462
|
</nationalNumberPattern>
|
@@ -4345,10 +4345,16 @@
|
|
4345
4345
|
since the carrier codes here may also be area codes, so we want to check the length of
|
4346
4346
|
the number after capturing. We also need a nationalTransformRule to repopulate with the
|
4347
4347
|
number without the carrier code. -->
|
4348
|
+
<!-- 90 is an additional dialling token used in place of national prefix (0), under scheme
|
4349
|
+
"Collect Call" in Brazil. Local dialling under this prefix is not supported.
|
4350
|
+
https://www.anatel.gov.br/Portal/verificaDocumentos/documento.asp?numeroPublicacao=346146&pub=original&filtro=1&documentoPath=346146.pdf -->
|
4348
4351
|
<territory id="BR" countryCode="55" internationalPrefix="00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)"
|
4349
4352
|
nationalPrefix="0"
|
4350
4353
|
nationalPrefixForParsing="
|
4351
|
-
|
4354
|
+
(?:
|
4355
|
+
0|
|
4356
|
+
90
|
4357
|
+
)(?:
|
4352
4358
|
(
|
4353
4359
|
1[245]|
|
4354
4360
|
2[1-35]|
|
@@ -5359,7 +5365,7 @@
|
|
5359
5365
|
<nationalNumberPattern>
|
5360
5366
|
4(?:
|
5361
5367
|
83[0-38]|
|
5362
|
-
93[
|
5368
|
+
93[0-4]
|
5363
5369
|
)\d{5}|
|
5364
5370
|
4(?:
|
5365
5371
|
[0-3]\d|
|
@@ -5367,7 +5373,7 @@
|
|
5367
5373
|
5[0-25-9]|
|
5368
5374
|
6[06-9]|
|
5369
5375
|
7[02-9]|
|
5370
|
-
8[0-
|
5376
|
+
8[0-24-9]|
|
5371
5377
|
9[0-27-9]
|
5372
5378
|
)\d{6}
|
5373
5379
|
</nationalNumberPattern>
|
@@ -7521,7 +7527,7 @@
|
|
7521
7527
|
<nationalNumberPattern>
|
7522
7528
|
4(?:
|
7523
7529
|
83[0-38]|
|
7524
|
-
93[
|
7530
|
+
93[0-4]
|
7525
7531
|
)\d{5}|
|
7526
7532
|
4(?:
|
7527
7533
|
[0-3]\d|
|
@@ -7529,7 +7535,7 @@
|
|
7529
7535
|
5[0-25-9]|
|
7530
7536
|
6[06-9]|
|
7531
7537
|
7[02-9]|
|
7532
|
-
8[0-
|
7538
|
+
8[0-24-9]|
|
7533
7539
|
9[0-27-9]
|
7534
7540
|
)\d{6}
|
7535
7541
|
</nationalNumberPattern>
|
@@ -9106,12 +9112,7 @@
|
|
9106
9112
|
</numberFormat>
|
9107
9113
|
</availableFormats>
|
9108
9114
|
<generalDesc>
|
9109
|
-
<nationalNumberPattern>
|
9110
|
-
(?:
|
9111
|
-
51|
|
9112
|
-
[6-9]\d
|
9113
|
-
)\d{7}
|
9114
|
-
</nationalNumberPattern>
|
9115
|
+
<nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
|
9115
9116
|
</generalDesc>
|
9116
9117
|
<!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
|
9117
9118
|
fixed-line ranges. As per official announcement, 919 prefix is assigned to
|
@@ -9156,12 +9157,15 @@
|
|
9156
9157
|
<possibleLengths national="9"/>
|
9157
9158
|
<exampleNumber>612345678</exampleNumber>
|
9158
9159
|
<nationalNumberPattern>
|
9159
|
-
|
9160
|
-
|
9161
|
-
|
9162
|
-
|
9163
|
-
|
9164
|
-
|
9160
|
+
(?:
|
9161
|
+
590[16]00\d|
|
9162
|
+
9(?:
|
9163
|
+
6906(?:
|
9164
|
+
09|
|
9165
|
+
10
|
9166
|
+
)|
|
9167
|
+
7390\d\d
|
9168
|
+
)
|
9165
9169
|
)\d\d|
|
9166
9170
|
(?:
|
9167
9171
|
6\d|
|
@@ -10353,7 +10357,8 @@
|
|
10353
10357
|
)\d{6}
|
10354
10358
|
</nationalNumberPattern>
|
10355
10359
|
</mobile>
|
10356
|
-
<!-- 76 with 10 digits; excluding ranges used in IM.
|
10360
|
+
<!-- 76 with 10 digits; excluding ranges used in IM. Prefix 7691 is been supported based on
|
10361
|
+
user report. -->
|
10357
10362
|
<pager>
|
10358
10363
|
<possibleLengths national="10"/>
|
10359
10364
|
<exampleNumber>7640123456</exampleNumber>
|
@@ -10367,7 +10372,7 @@
|
|
10367
10372
|
6[0-369]|
|
10368
10373
|
77|
|
10369
10374
|
81|
|
10370
|
-
9[
|
10375
|
+
9[139]
|
10371
10376
|
)\d{6}
|
10372
10377
|
</nationalNumberPattern>
|
10373
10378
|
</pager>
|
@@ -10790,7 +10795,7 @@
|
|
10790
10795
|
6[0-369]|
|
10791
10796
|
77|
|
10792
10797
|
81|
|
10793
|
-
9[
|
10798
|
+
9[139]
|
10794
10799
|
)\d{6}
|
10795
10800
|
</nationalNumberPattern>
|
10796
10801
|
</pager>
|
@@ -11853,14 +11858,13 @@
|
|
11853
11858
|
4[0-57-9]
|
11854
11859
|
)|
|
11855
11860
|
5730|
|
11856
|
-
|
11857
|
-
626|
|
11858
|
-
848
|
11859
|
-
)[01]|
|
11861
|
+
626[01]|
|
11860
11862
|
707[1-5]|
|
11863
|
+
848[015-9]|
|
11861
11864
|
929[03-9]
|
11862
11865
|
)\d{4}|
|
11863
11866
|
(?:
|
11867
|
+
462|
|
11864
11868
|
5(?:
|
11865
11869
|
[1-59][0-46-9]|
|
11866
11870
|
6[0-4689]|
|
@@ -12034,7 +12038,7 @@
|
|
12034
12038
|
5[1-35]
|
12035
12039
|
)|
|
12036
12040
|
5(?:
|
12037
|
-
0[
|
12041
|
+
0[7-9]|
|
12038
12042
|
16|
|
12039
12043
|
4[03-5]|
|
12040
12044
|
5\d|
|
@@ -14330,7 +14334,7 @@
|
|
14330
14334
|
(?:
|
14331
14335
|
0(?:
|
14332
14336
|
[1-35]\d|
|
14333
|
-
|
14337
|
+
4[4-6]
|
14334
14338
|
)|
|
14335
14339
|
(?:
|
14336
14340
|
[13]\d|
|
@@ -14340,6 +14344,7 @@
|
|
14340
14344
|
9(?:
|
14341
14345
|
(?:
|
14342
14346
|
[0-2]\d|
|
14347
|
+
3[01]|
|
14343
14348
|
4[45]
|
14344
14349
|
)\d|
|
14345
14350
|
5[15]0|
|
@@ -14349,7 +14354,7 @@
|
|
14349
14354
|
)|
|
14350
14355
|
9(?:
|
14351
14356
|
0[013]|
|
14352
|
-
1
|
14357
|
+
1\d|
|
14353
14358
|
21|
|
14354
14359
|
77|
|
14355
14360
|
9[6-9]
|
@@ -14363,7 +14368,7 @@
|
|
14363
14368
|
<voip>
|
14364
14369
|
<possibleLengths national="10"/>
|
14365
14370
|
<exampleNumber>9932123456</exampleNumber>
|
14366
|
-
<nationalNumberPattern>993\d{
|
14371
|
+
<nationalNumberPattern>993[2-9]\d{6}</nationalNumberPattern>
|
14367
14372
|
</voip>
|
14368
14373
|
<!-- UAN ranges from http://118.tct.ir/necnum.htm ("096" numbers are not shortcodes since
|
14369
14374
|
they require the national prefix). -->
|
@@ -14865,7 +14870,7 @@
|
|
14865
14870
|
6[0-369]|
|
14866
14871
|
77|
|
14867
14872
|
81|
|
14868
|
-
9[
|
14873
|
+
9[139]
|
14869
14874
|
)\d{6}
|
14870
14875
|
</nationalNumberPattern>
|
14871
14876
|
</pager>
|
@@ -16260,7 +16265,7 @@
|
|
16260
16265
|
(?:
|
16261
16266
|
1(?:
|
16262
16267
|
0[0-2]|
|
16263
|
-
1[
|
16268
|
+
1[0-5]
|
16264
16269
|
)|
|
16265
16270
|
7\d\d
|
16266
16271
|
)\d{6}
|
@@ -16984,6 +16989,7 @@
|
|
16984
16989
|
)1\d{2,3}
|
16985
16990
|
</nationalNumberPattern>
|
16986
16991
|
</fixedLine>
|
16992
|
+
<!-- Prefix 10596 added based on user report -->
|
16987
16993
|
<mobile>
|
16988
16994
|
<possibleLengths national="9,10"/>
|
16989
16995
|
<exampleNumber>1020000000</exampleNumber>
|
@@ -16991,7 +16997,7 @@
|
|
16991
16997
|
1(?:
|
16992
16998
|
05(?:
|
16993
16999
|
[0-8]\d|
|
16994
|
-
9[0-
|
17000
|
+
9[0-6]
|
16995
17001
|
)|
|
16996
17002
|
22[13]\d
|
16997
17003
|
)\d{4,5}|
|
@@ -17813,14 +17819,14 @@
|
|
17813
17819
|
2(?:
|
17814
17820
|
01|
|
17815
17821
|
1[27]|
|
17816
|
-
|
17822
|
+
2[02]|
|
17817
17823
|
3\d|
|
17818
17824
|
6[02-578]|
|
17819
17825
|
96
|
17820
17826
|
)|
|
17821
17827
|
3(?:
|
17828
|
+
[24]0|
|
17822
17829
|
33|
|
17823
|
-
40|
|
17824
17830
|
7[0135-7]|
|
17825
17831
|
8[048]|
|
17826
17832
|
9[0269]
|
@@ -17835,15 +17841,15 @@
|
|
17835
17841
|
(?:
|
17836
17842
|
6(?:
|
17837
17843
|
4(?:
|
17838
|
-
|
17839
|
-
|
17844
|
+
79|
|
17845
|
+
[89]\d
|
17840
17846
|
)|
|
17841
|
-
5[0-
|
17847
|
+
5[0-4]\d|
|
17842
17848
|
6(?:
|
17843
|
-
0
|
17849
|
+
0\d|
|
17844
17850
|
10|
|
17845
|
-
2[
|
17846
|
-
|
17851
|
+
2[0-26-9]|
|
17852
|
+
3[7-9]
|
17847
17853
|
)
|
17848
17854
|
)\d|
|
17849
17855
|
7(?:
|
@@ -19563,37 +19569,41 @@
|
|
19563
19569
|
(?:
|
19564
19570
|
17[01]|
|
19565
19571
|
9(?:
|
19566
|
-
2
|
19572
|
+
2(?:
|
19573
|
+
[0-4]|
|
19574
|
+
[56]\d\d
|
19575
|
+
)|
|
19567
19576
|
(?:
|
19568
|
-
3
|
19577
|
+
3(?:
|
19578
|
+
[0-36]|
|
19579
|
+
4\d
|
19580
|
+
)|
|
19569
19581
|
(?:
|
19570
19582
|
6\d|
|
19571
19583
|
8[89]|
|
19572
|
-
|
19573
|
-
)\d
|
19584
|
+
9[4-8]
|
19585
|
+
)\d|
|
19586
|
+
7(?:
|
19587
|
+
3|
|
19588
|
+
40|
|
19589
|
+
[5-9]\d
|
19590
|
+
)
|
19574
19591
|
)\d|
|
19575
19592
|
4(?:
|
19576
|
-
|
19593
|
+
(?:
|
19594
|
+
[0245]\d|
|
19595
|
+
[1379]
|
19596
|
+
)\d|
|
19577
19597
|
88
|
19578
19598
|
)|
|
19579
19599
|
5[0-6]
|
19580
19600
|
)\d
|
19581
19601
|
)\d{4}|
|
19582
|
-
9
|
19583
|
-
[69]1|
|
19584
|
-
73
|
19585
|
-
)\d{6}|
|
19602
|
+
9[69]1\d{6}|
|
19586
19603
|
9(?:
|
19587
19604
|
[68]\d|
|
19588
19605
|
9[089]
|
19589
|
-
)\d{5}
|
19590
|
-
9(?:
|
19591
|
-
2[56]|
|
19592
|
-
34|
|
19593
|
-
4[0245]|
|
19594
|
-
7[5-9]|
|
19595
|
-
9[4-7]
|
19596
|
-
)\d{7}
|
19606
|
+
)\d{5}
|
19597
19607
|
</nationalNumberPattern>
|
19598
19608
|
</mobile>
|
19599
19609
|
<tollFree>
|
@@ -20273,7 +20283,7 @@
|
|
20273
20283
|
2[4-7]
|
20274
20284
|
)|
|
20275
20285
|
54(?:
|
20276
|
-
[
|
20286
|
+
[3-5]\d|
|
20277
20287
|
71
|
20278
20288
|
)|
|
20279
20289
|
6\d\d|
|
@@ -20297,7 +20307,7 @@
|
|
20297
20307
|
)\d{4}|
|
20298
20308
|
5(?:
|
20299
20309
|
2[589]|
|
20300
|
-
4[
|
20310
|
+
4[3-589]|
|
20301
20311
|
7\d|
|
20302
20312
|
8[0-689]|
|
20303
20313
|
9[0-8]
|
@@ -20906,8 +20916,7 @@
|
|
20906
20916
|
[1-9]\d
|
20907
20917
|
)|
|
20908
20918
|
7(?:
|
20909
|
-
|
20910
|
-
1[01]|
|
20919
|
+
[01]\d|
|
20911
20920
|
2[2-6]
|
20912
20921
|
)
|
20913
20922
|
)|
|
@@ -22737,7 +22746,7 @@
|
|
22737
22746
|
2[0-35-9]|
|
22738
22747
|
[35]\d|
|
22739
22748
|
4[235-9]|
|
22740
|
-
6[0-
|
22749
|
+
6[0-35-8]|
|
22741
22750
|
7[1-9]|
|
22742
22751
|
8[189]|
|
22743
22752
|
9[4-9]
|
@@ -23102,7 +23111,10 @@
|
|
23102
23111
|
5[0137]|
|
23103
23112
|
6[0469]|
|
23104
23113
|
7[02389]|
|
23105
|
-
8
|
23114
|
+
8(?:
|
23115
|
+
0[14]|
|
23116
|
+
8
|
23117
|
+
)
|
23106
23118
|
</leadingDigits>
|
23107
23119
|
<format>$1 $2 $3</format>
|
23108
23120
|
</numberFormat>
|
@@ -23110,18 +23122,27 @@
|
|
23110
23122
|
<numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
|
23111
23123
|
<leadingDigits>
|
23112
23124
|
1[2-8]|
|
23113
|
-
[2-
|
23125
|
+
[2-7]|
|
23126
|
+
8[1-79]|
|
23114
23127
|
9[145]
|
23115
23128
|
</leadingDigits>
|
23116
23129
|
<format>$1 $2 $3 $4</format>
|
23117
23130
|
</numberFormat>
|
23131
|
+
<!-- 9-10 digit toll free numbers. -->
|
23132
|
+
<numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
|
23133
|
+
<leadingDigits>8</leadingDigits>
|
23134
|
+
<format>$1 $2 $3</format>
|
23135
|
+
</numberFormat>
|
23118
23136
|
</availableFormats>
|
23119
23137
|
<generalDesc>
|
23120
23138
|
<nationalNumberPattern>
|
23121
|
-
|
23139
|
+
6\d{5}(?:
|
23122
23140
|
\d{2}
|
23123
23141
|
)?|
|
23124
|
-
|
23142
|
+
8\d{9}|
|
23143
|
+
[1-9]\d{6}(?:
|
23144
|
+
\d{2}
|
23145
|
+
)?
|
23125
23146
|
</nationalNumberPattern>
|
23126
23147
|
</generalDesc>
|
23127
23148
|
<!-- The plan says all geographical numbers are 9 digits; but we found customer service
|
@@ -23173,10 +23194,11 @@
|
|
23173
23194
|
<exampleNumber>641234567</exampleNumber>
|
23174
23195
|
<nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
|
23175
23196
|
</pager>
|
23197
|
+
<!-- Prefix 800 with 10 digits added based on user report. -->
|
23176
23198
|
<tollFree>
|
23177
|
-
<possibleLengths national="9"/>
|
23199
|
+
<possibleLengths national="9,10"/>
|
23178
23200
|
<exampleNumber>800123456</exampleNumber>
|
23179
|
-
<nationalNumberPattern>800\d{6}</nationalNumberPattern>
|
23201
|
+
<nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
|
23180
23202
|
</tollFree>
|
23181
23203
|
<premiumRate>
|
23182
23204
|
<possibleLengths national="9"/>
|
@@ -23840,7 +23862,7 @@
|
|
23840
23862
|
3[0-39]|
|
23841
23863
|
4\d|
|
23842
23864
|
5[05]|
|
23843
|
-
6[0-
|
23865
|
+
6[0-36]|
|
23844
23866
|
7[0-27]|
|
23845
23867
|
8[0-8]|
|
23846
23868
|
9[0-479]
|
@@ -26453,8 +26475,7 @@
|
|
26453
26475
|
(?:
|
26454
26476
|
00|
|
26455
26477
|
11|
|
26456
|
-
[3-
|
26457
|
-
88
|
26478
|
+
[3-57-9]\d
|
26458
26479
|
)\d{7}
|
26459
26480
|
</nationalNumberPattern>
|
26460
26481
|
</generalDesc>
|
@@ -26488,7 +26509,7 @@
|
|
26488
26509
|
<nationalNumberPattern>
|
26489
26510
|
41[18]\d{6}|
|
26490
26511
|
(?:
|
26491
|
-
|
26512
|
+
[04]0|
|
26492
26513
|
11|
|
26493
26514
|
5[05]|
|
26494
26515
|
7[07]|
|
@@ -26497,6 +26518,11 @@
|
|
26497
26518
|
)\d{7}
|
26498
26519
|
</nationalNumberPattern>
|
26499
26520
|
</mobile>
|
26521
|
+
<tollFree>
|
26522
|
+
<possibleLengths national="9"/>
|
26523
|
+
<exampleNumber>800123456</exampleNumber>
|
26524
|
+
<nationalNumberPattern>800\d{6}</nationalNumberPattern>
|
26525
|
+
</tollFree>
|
26500
26526
|
</territory>
|
26501
26527
|
|
26502
26528
|
<!-- Tokelau (TK) -->
|
@@ -26703,7 +26729,7 @@
|
|
26703
26729
|
(?:
|
26704
26730
|
(?:
|
26705
26731
|
[259]\d|
|
26706
|
-
4[0-
|
26732
|
+
4[0-7]
|
26707
26733
|
)\d|
|
26708
26734
|
3(?:
|
26709
26735
|
1[1-35]|
|
@@ -26980,17 +27006,18 @@
|
|
26980
27006
|
)\d{4}
|
26981
27007
|
</nationalNumberPattern>
|
26982
27008
|
</personalNumber>
|
26983
|
-
<!-- 850
|
26984
|
-
|
27009
|
+
<!-- Prefix 850 was earlier supported as UAN but after user report and other sources, found
|
27010
|
+
that they belong to VOIP. -->
|
27011
|
+
<voip>
|
27012
|
+
<possibleLengths national="10"/>
|
27013
|
+
<exampleNumber>8500123456</exampleNumber>
|
27014
|
+
<nationalNumberPattern>850\d{7}</nationalNumberPattern>
|
27015
|
+
</voip>
|
27016
|
+
<!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
|
26985
27017
|
<uan>
|
26986
|
-
<possibleLengths national="7
|
27018
|
+
<possibleLengths national="7"/>
|
26987
27019
|
<exampleNumber>4441444</exampleNumber>
|
26988
|
-
<nationalNumberPattern>
|
26989
|
-
(?:
|
26990
|
-
444|
|
26991
|
-
850\d{3}
|
26992
|
-
)\d{4}
|
26993
|
-
</nationalNumberPattern>
|
27020
|
+
<nationalNumberPattern>444\d{4}</nationalNumberPattern>
|
26994
27021
|
</uan>
|
26995
27022
|
</territory>
|
26996
27023
|
|
@@ -28070,12 +28097,13 @@
|
|
28070
28097
|
internationalPrefix="810" nationalPrefix="8">
|
28071
28098
|
<availableFormats>
|
28072
28099
|
<numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP $FG">
|
28073
|
-
<leadingDigits>[
|
28100
|
+
<leadingDigits>[5-9]</leadingDigits>
|
28074
28101
|
<format>$1 $2 $3 $4</format>
|
28075
28102
|
</numberFormat>
|
28076
28103
|
</availableFormats>
|
28077
28104
|
<generalDesc>
|
28078
28105
|
<nationalNumberPattern>
|
28106
|
+
55501\d{4}|
|
28079
28107
|
(?:
|
28080
28108
|
[679]\d|
|
28081
28109
|
88
|
@@ -28167,12 +28195,13 @@
|
|
28167
28195
|
</fixedLine>
|
28168
28196
|
<!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
|
28169
28197
|
Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
|
28170
|
-
prefixes Tyntec has a carrier mapped to. -->
|
28198
|
+
prefixes Tyntec has a carrier mapped to. Adding 55501 based on user report. -->
|
28171
28199
|
<mobile>
|
28172
28200
|
<possibleLengths national="9"/>
|
28173
28201
|
<exampleNumber>912345678</exampleNumber>
|
28174
28202
|
<nationalNumberPattern>
|
28175
28203
|
(?:
|
28204
|
+
55501|
|
28176
28205
|
6(?:
|
28177
28206
|
1(?:
|
28178
28207
|
2(?:
|
@@ -29113,7 +29142,10 @@
|
|
29113
29142
|
<exampleNumber>912345678</exampleNumber>
|
29114
29143
|
<nationalNumberPattern>
|
29115
29144
|
(?:
|
29116
|
-
|
29145
|
+
5(?:
|
29146
|
+
2[238]|
|
29147
|
+
59
|
29148
|
+
)|
|
29117
29149
|
89[689]|
|
29118
29150
|
99[013-9]
|
29119
29151
|
)\d{6}|
|
@@ -29534,11 +29566,16 @@
|
|
29534
29566
|
<leadingDigits>[1-9]</leadingDigits>
|
29535
29567
|
<format>$1 $2 $3</format>
|
29536
29568
|
</numberFormat>
|
29569
|
+
<!-- 10-digit uan numbers. -->
|
29570
|
+
<numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
|
29571
|
+
<leadingDigits>8</leadingDigits>
|
29572
|
+
<format>$1 $2 $3</format>
|
29573
|
+
</numberFormat>
|
29537
29574
|
</availableFormats>
|
29538
29575
|
<generalDesc>
|
29539
29576
|
<nationalNumberPattern>
|
29540
|
-
[1-
|
29541
|
-
8\d{4,
|
29577
|
+
[1-79]\d{8}|
|
29578
|
+
8\d{4,9}
|
29542
29579
|
</nationalNumberPattern>
|
29543
29580
|
</generalDesc>
|
29544
29581
|
<fixedLine>
|
@@ -29664,11 +29701,12 @@
|
|
29664
29701
|
</nationalNumberPattern>
|
29665
29702
|
</voip>
|
29666
29703
|
<!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
|
29667
|
-
numbers.
|
29704
|
+
numbers.
|
29705
|
+
Prefix 861 with 10 digits is added based on user report. -->
|
29668
29706
|
<uan>
|
29669
|
-
<possibleLengths national="9"/>
|
29707
|
+
<possibleLengths national="9,10"/>
|
29670
29708
|
<exampleNumber>861123456</exampleNumber>
|
29671
|
-
<nationalNumberPattern>861\d{6}</nationalNumberPattern>
|
29709
|
+
<nationalNumberPattern>861\d{6,7}</nationalNumberPattern>
|
29672
29710
|
</uan>
|
29673
29711
|
</territory>
|
29674
29712
|
|
@@ -8,7 +8,7 @@ module TelephoneNumber
|
|
8
8
|
master_data = {}
|
9
9
|
bin_file_path = "#{File.dirname(file_path)}/#{File.basename(file_path, '.txt')}.dat"
|
10
10
|
|
11
|
-
File.open(file_path, 'r').each do |row|
|
11
|
+
File.open(file_path, 'r:UTF-8').each do |row|
|
12
12
|
next if row.strip !~ /^[0-9]/
|
13
13
|
number, location = row.split('|')
|
14
14
|
master_data[number.strip] = location.strip
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telephone_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MOBI Wireless Management
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|