phonelib 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTE4Y2VjMTU0MzAwNmZlNzcxN2VmYWY1YWRlODU4ODUxYmUyYTdmZQ==
4
+ ODliODM0MmVkYjkyNjMwYjEwNzgwYzFmMjFlZjZiZTRjMWUwZjc3ZA==
5
5
  data.tar.gz: !binary |-
6
- ZDYwNjkzZmE2MmIyZTZiZTIzYTQ1ZDkyMGJlODM2MjhlNTcwZWRmZg==
6
+ MGVkMzNmYWU5ODI3MDAwYTQwMTc0ZjZjMDIzNGRlN2Y5NmE1MzMwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWFkY2RjYTUyZGZiMDAyYTRjZTZiNWMzYmJmNTljNzVlNmYzNDIzZDg4MzQ1
10
- ZWNmYWZmYTc5N2U0NGI5MzYyYTc1NmNjOWRmZGFiNDU1Zjg1MzhkYzEyZDZj
11
- ZmY2NzcwYjU5MzM0MTliN2FkYzExYmNiMTA4MzI2MmJmODRmM2M=
9
+ OGU4YjJhYmNhNWFkYzRkMzc0NTg4NWU0YzE5MGQxYWVhNjlmYzI3NjM2MDY4
10
+ MTYxMDJmYTFmOWE1OWJhMzQwNmYwYzI4ZjI4NWM3MThmZjhkNjFlZWY4NmU4
11
+ OWYyMmEzYzJlMDMxMDljZDcyNTllZDRkNWNkZDA5OTI1MzVhZGE=
12
12
  data.tar.gz: !binary |-
13
- YTc1OWEwOGI5ZGJkMTJiOThlMzA0NzhkY2I2ZGY5N2UxY2Y3NzI5NTgxOTc0
14
- MzQ4ZGVkNThjODE0YjFkNGUzNTU4NGMzNWU1Y2U0MDA3ODllYjA1ZTNiYjY0
15
- YjFiODM3OGVmZTcyYzYyMDljOTFlODM2OWI1NWY3YzU3MDJkMzk=
13
+ M2IyNDQ3YzFmZjBjMDYzMGYxMWU2ZGQyMTZiNTBjNDYzZDQ0M2M5MDU5NGQ4
14
+ Mjk2ZDEzMGIyZGNhNWE3Mzk2OWFjNWRlN2M2MWQyMGRhMjQ4YjI4ZTE1OWRh
15
+ ZWViMmY2Y2RhMzlhYzIwOWFhMzgxYjVlNWUzMDgyZmViNjU0MmM=
@@ -97,8 +97,8 @@
97
97
  </references>
98
98
  <!-- Formatted as a block. -->
99
99
  <generalDesc>
100
- <nationalNumberPattern>[2-467]\d{3}</nationalNumberPattern>
101
- <possibleNumberPattern>\d{4}</possibleNumberPattern>
100
+ <nationalNumberPattern>[2-7]\d{3,5}</nationalNumberPattern>
101
+ <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
102
102
  </generalDesc>
103
103
  <fixedLine>
104
104
  <nationalNumberPattern>
@@ -112,8 +112,9 @@
112
112
  <exampleNumber>6889</exampleNumber>
113
113
  </fixedLine>
114
114
  <mobile>
115
- <nationalNumberPattern>NA</nationalNumberPattern>
116
- <possibleNumberPattern>NA</possibleNumberPattern>
115
+ <nationalNumberPattern>5\d{5}</nationalNumberPattern>
116
+ <possibleNumberPattern>\d{6}</possibleNumberPattern>
117
+ <exampleNumber>501234</exampleNumber>
117
118
  </mobile>
118
119
  </territory>
119
120
 
@@ -553,7 +554,8 @@
553
554
  along with the new city codes. However, their official document makes no mention of it,
554
555
  websites disagree, and we are not sure if the change has actually been made. -->
555
556
  <territory id="AM" countryCode="374" internationalPrefix="00"
556
- nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
557
+ nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
558
+ mobileNumberPortableRegion="true" >
557
559
  <references>
558
560
  <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
559
561
  <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
@@ -569,6 +571,7 @@
569
571
  </numberFormat>
570
572
  <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
571
573
  <leadingDigits>
574
+ 4[139]|
572
575
  [5-7]|
573
576
  9[1-9]
574
577
  </leadingDigits>
@@ -614,6 +617,7 @@
614
617
  <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
615
618
  <nationalNumberPattern>
616
619
  (?:
620
+ 4[139]|
617
621
  55|
618
622
  77|
619
623
  9[1-9]
@@ -676,6 +680,12 @@
676
680
  </territory>
677
681
 
678
682
  <!-- Argentina -->
683
+ <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
684
+ (which is captured, so that it can be retained), followed by 15, which is the mobile token,
685
+ which will be stripped if present. We expect the following combinations: 0AC15 and AC15
686
+ (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
687
+ the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
688
+ -->
679
689
  <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
680
690
  nationalPrefixForParsing="
681
691
  0?(?:
@@ -773,7 +783,7 @@
773
783
  9[124]
774
784
  )
775
785
  )
776
- )15
786
+ )?15
777
787
  )?"
778
788
  nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
779
789
  mobileNumberPortableRegion="true">
@@ -789,6 +799,24 @@
789
799
  <leadingDigits>[68]</leadingDigits>
790
800
  <format>$1-$2-$3</format>
791
801
  </numberFormat>
802
+ <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
803
+ says that the digit zero and one will not be present at the start of the subscriber
804
+ number (which starts with an "Exchange characteristic"). -->
805
+ <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
806
+ <leadingDigits>[2-9]</leadingDigits>
807
+ <format>$1-$2</format>
808
+ <intlFormat>NA</intlFormat>
809
+ </numberFormat>
810
+ <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
811
+ <leadingDigits>[2-9]</leadingDigits>
812
+ <format>$1-$2</format>
813
+ <intlFormat>NA</intlFormat>
814
+ </numberFormat>
815
+ <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
816
+ <leadingDigits>[2-9]</leadingDigits>
817
+ <format>$1-$2</format>
818
+ <intlFormat>NA</intlFormat>
819
+ </numberFormat>
792
820
  <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
793
821
  <leadingDigits>911</leadingDigits>
794
822
  <format>$2 15-$3-$4</format>
@@ -824,7 +852,7 @@
824
852
  )
825
853
  </leadingDigits>
826
854
  <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
827
- 2983, and several 38[3578]X four-digit area codes. -->
855
+ 298[23], and several 38[3578]X four-digit area codes. -->
828
856
  <leadingDigits>
829
857
  9(?:
830
858
  2(?:
@@ -836,7 +864,7 @@
836
864
  9(?:
837
865
  [179]|
838
866
  4[13479]|
839
- 8[0-24-9]
867
+ 8[014-9]
840
868
  )
841
869
  )|
842
870
  3(?:
@@ -861,34 +889,8 @@
861
889
  <format>$2 15-$3-$4</format>
862
890
  <intlFormat>$1 $2 $3-$4</intlFormat>
863
891
  </numberFormat>
864
- <numberFormat pattern="(9)(\d{4})(\d{3})(\d{3})">
865
- <!-- The formatting pattern here for these newly introduced area codes is based on the ITU
866
- document. We have not found sufficient examples online to know if this is actually
867
- being followed by the general population, or whether the back-up pattern for
868
- four-digit area codes (below) is preferred. -->
869
- <leadingDigits>93[58]</leadingDigits>
870
- <leadingDigits>
871
- 9(?:
872
- 3(?:
873
- 53|
874
- 8[78]
875
- )
876
- )
877
- </leadingDigits>
878
- <leadingDigits>
879
- 9(?:
880
- 3(?:
881
- 537|
882
- 8(?:
883
- 73|
884
- 88
885
- )
886
- )
887
- )
888
- </leadingDigits>
889
- <format>$2 15-$3-$4</format>
890
- <intlFormat>$1 $2 $3-$4</intlFormat>
891
- </numberFormat>
892
+ <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
893
+ Argentinian ITU doc and wikipedia. -->
892
894
  <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
893
895
  <leadingDigits>9[23]</leadingDigits>
894
896
  <format>$2 15-$3-$4</format>
@@ -918,7 +920,8 @@
918
920
  8[013578]
919
921
  )
920
922
  </leadingDigits>
921
- <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
923
+ <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
924
+ 298[23], and several 38[3578]X four-digit area codes. -->
922
925
  <leadingDigits>
923
926
  2(?:
924
927
  2[013]|
@@ -927,8 +930,9 @@
927
930
  6[01346]|
928
931
  80|
929
932
  9(?:
930
- [17-9]|
931
- 4[13479]
933
+ [179]|
934
+ 4[13479]|
935
+ 8[014-9]
932
936
  )
933
937
  )|
934
938
  3(?:
@@ -951,24 +955,6 @@
951
955
  </leadingDigits>
952
956
  <format>$1 $2-$3</format>
953
957
  </numberFormat>
954
- <numberFormat pattern="(\d{4})(\d{3})(\d{3})" nationalPrefixOptionalWhenFormatting="true">
955
- <leadingDigits>
956
- 3(?:
957
- 53|
958
- 8[78]
959
- )
960
- </leadingDigits>
961
- <leadingDigits>
962
- 3(?:
963
- 537|
964
- 8(?:
965
- 73|
966
- 88
967
- )
968
- )
969
- </leadingDigits>
970
- <format>$1 $2-$3</format>
971
- </numberFormat>
972
958
  <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
973
959
  <leadingDigits>[23]</leadingDigits>
974
960
  <format>$1 $2-$3</format>
@@ -984,8 +970,11 @@
984
970
  </numberFormat>
985
971
  </availableFormats>
986
972
  <generalDesc>
973
+ <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
974
+ carrier prefix when we see it. -->
987
975
  <nationalNumberPattern>
988
- [1-368]\d{9}|
976
+ 11\d{8}|
977
+ [2368]\d{9}|
989
978
  9\d{10}
990
979
  </nationalNumberPattern>
991
980
  <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
@@ -1507,7 +1496,8 @@
1507
1496
  </fixedLine>
1508
1497
  <mobile>
1509
1498
  <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1510
- other ranges 14[1-3] are not currently used. -->
1499
+ other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1500
+ if this pattern changes. -->
1511
1501
  <nationalNumberPattern>
1512
1502
  14(?:
1513
1503
  5\d|
@@ -1519,9 +1509,9 @@
1519
1509
  4[47-9]|
1520
1510
  5[0-25-9]|
1521
1511
  6[6-9]|
1522
- 7[0457-9]|
1512
+ 7[03-9]|
1523
1513
  8[17-9]|
1524
- 9[07-9]
1514
+ 9[017-9]
1525
1515
  )\d{6}
1526
1516
  </nationalNumberPattern>
1527
1517
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -2720,12 +2710,12 @@
2720
2710
  </references>
2721
2711
  <availableFormats>
2722
2712
  <numberFormat
2723
- pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
2713
+ pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2724
2714
  <format>$1 $2 $3 $4</format>
2725
2715
  </numberFormat>
2726
2716
  </availableFormats>
2727
2717
  <generalDesc>
2728
- <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
2718
+ <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2729
2719
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
2730
2720
  </generalDesc>
2731
2721
  <fixedLine>
@@ -2744,7 +2734,7 @@
2744
2734
  satellite phones. -->
2745
2735
  <nationalNumberPattern>
2746
2736
  (?:
2747
- 29|
2737
+ [26]9|
2748
2738
  7[14-9]
2749
2739
  )\d{6}
2750
2740
  </nationalNumberPattern>
@@ -3109,7 +3099,8 @@
3109
3099
  <leadingDigits>
3110
3100
  (?:
3111
3101
  1[1-9]|
3112
- 2[12478]
3102
+ 2[12478]|
3103
+ 9[1-9]
3113
3104
  )9
3114
3105
  </leadingDigits>
3115
3106
  <format>$1 $2-$3</format>
@@ -3172,10 +3163,13 @@
3172
3163
  7|
3173
3164
  9\d
3174
3165
  )\d{7}|
3175
- 2[12478]9?[6-9]\d{7}|
3166
+ (?:
3167
+ 2[12478]|
3168
+ 9[1-9]
3169
+ )9?[6-9]\d{7}|
3176
3170
  (?:
3177
3171
  3[1-578]|
3178
- [4689][1-9]|
3172
+ [468][1-9]|
3179
3173
  5[13-5]|
3180
3174
  7[13-579]
3181
3175
  )[6-9]\d{7}
@@ -3744,7 +3738,7 @@
3744
3738
  7(?:
3745
3739
  0[59]|
3746
3740
  78|
3747
- 80
3741
+ 8[02]
3748
3742
  )|
3749
3743
  8(?:
3750
3744
  [06]7|
@@ -3792,7 +3786,7 @@
3792
3786
  7(?:
3793
3787
  0[59]|
3794
3788
  78|
3795
- 80
3789
+ 8[02]
3796
3790
  )|
3797
3791
  8(?:
3798
3792
  [06]7|
@@ -3863,14 +3857,19 @@
3863
3857
  <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3864
3858
  <mobile>
3865
3859
  <nationalNumberPattern>
3860
+ 14(?:
3861
+ 5\d|
3862
+ 71
3863
+ )\d{5}|
3866
3864
  4(?:
3867
3865
  [0-2]\d|
3868
3866
  3[0-57-9]|
3869
3867
  4[47-9]|
3870
- 5[0-37-9]|
3868
+ 5[0-25-9]|
3871
3869
  6[6-9]|
3872
- 7[07-9]|
3873
- 8[7-9]
3870
+ 7[03-9]|
3871
+ 8[17-9]|
3872
+ 9[017-9]
3874
3873
  )\d{6}
3875
3874
  </nationalNumberPattern>
3876
3875
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -4166,6 +4165,7 @@
4166
4165
  successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4167
4166
  assigned to MTN in July 2013:
4168
4167
  http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4168
+ The prefix 75 is from an open-source bug report.
4169
4169
  50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4170
4170
  <nationalNumberPattern>
4171
4171
  (?:
@@ -4173,7 +4173,7 @@
4173
4173
  4[0-24-9]|
4174
4174
  5[4-9]|
4175
4175
  6[015-79]|
4176
- 77
4176
+ 7[57]
4177
4177
  )\d{6}
4178
4178
  </nationalNumberPattern>
4179
4179
  <exampleNumber>01234567</exampleNumber>
@@ -4225,10 +4225,11 @@
4225
4225
  <references>
4226
4226
  <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4227
4227
  <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4228
+ <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4228
4229
  </references>
4229
4230
  <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4230
- we strip here. National destinations may be dialled with a carrier if they are not local so
4231
- we extract these carrier codes as well. -->
4231
+ we strip here. National destinations may be dialled with a carrier if they are not local
4232
+ so we extract these carrier codes as well. -->
4232
4233
  <availableFormats>
4233
4234
  <numberFormat pattern="(\d)(\d{4})(\d{4})"
4234
4235
  nationalPrefixFormattingRule="($FG)"
@@ -4246,7 +4247,7 @@
4246
4247
  </leadingDigits>
4247
4248
  <format>$1 $2 $3</format>
4248
4249
  </numberFormat>
4249
- <numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
4250
+ <numberFormat pattern="(9)(\d{4})(\d{4})">
4250
4251
  <leadingDigits>9</leadingDigits>
4251
4252
  <format>$1 $2 $3</format>
4252
4253
  </numberFormat>
@@ -4330,7 +4331,7 @@
4330
4331
  <exampleNumber>221234567</exampleNumber>
4331
4332
  </fixedLine>
4332
4333
  <mobile>
4333
- <nationalNumberPattern>9[5-9]\d{7}</nationalNumberPattern>
4334
+ <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4334
4335
  <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4335
4336
  <exampleNumber>961234567</exampleNumber>
4336
4337
  </mobile>
@@ -4362,12 +4363,16 @@
4362
4363
  <territory id="CM" countryCode="237" internationalPrefix="00">
4363
4364
  <references>
4364
4365
  <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4366
+ <sourceUrl>http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1063-2014-OAS-PDF-E.pdf</sourceUrl>
4365
4367
  </references>
4366
4368
  <availableFormats>
4367
- <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
4368
- the same format as France (all 2 digit groups) so we use this instead of the guidance
4369
- of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
4370
- examples.) -->
4369
+ <!-- Formatting in the ITU update document aligns with formatting online (all 2 digit
4370
+ groups). For the new number format with 9 digits the first digit has it's own group.
4371
+ -->
4372
+ <numberFormat pattern="([26])(\d{2})(\d{2})(\d{2})(\d{2})">
4373
+ <leadingDigits>[26]</leadingDigits>
4374
+ <format>$1 $2 $3 $4 $5</format>
4375
+ </numberFormat>
4371
4376
  <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4372
4377
  <leadingDigits>
4373
4378
  [23579]|
@@ -4381,29 +4386,37 @@
4381
4386
  </numberFormat>
4382
4387
  </availableFormats>
4383
4388
  <generalDesc>
4384
- <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
4385
- <possibleNumberPattern>\d{8}</possibleNumberPattern>
4389
+ <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
4390
+ <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4386
4391
  </generalDesc>
4387
4392
  <fixedLine>
4388
- <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
4389
- the moment start with 22 or 33 since they have been migrated from seven digit numbers
4390
- beginning with these numbers. This rule should be relaxed if/when we start getting
4391
- numbers beginning in other ways. -->
4393
+ <!-- Temporarily allow both old (22|33) and new 2(22|33) format. -->
4394
+ <!-- CDMA numbers are described in a subcategory to fixed line numbers in the ITU update
4395
+ document, so those prefixes are added to fixed line (24[23]). -->
4392
4396
  <nationalNumberPattern>
4397
+ 2(?:
4398
+ 22|
4399
+ 33|
4400
+ 4[23]
4401
+ )\d{6}|
4393
4402
  (?:
4394
4403
  22|
4395
4404
  33
4396
4405
  )\d{6}
4397
4406
  </nationalNumberPattern>
4398
- <exampleNumber>22123456</exampleNumber>
4407
+ <exampleNumber>222123456</exampleNumber>
4399
4408
  </fixedLine>
4400
4409
  <mobile>
4401
- <!-- Mobile numbers beginning with 5 were found online. -->
4402
- <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
4403
- <exampleNumber>71234567</exampleNumber>
4410
+ <!-- Temporarily allow both old [579]\d{7} and new 6[5-79]\d{7} format. -->
4411
+ <nationalNumberPattern>
4412
+ 6[5-79]\d{7}|
4413
+ [579]\d{7}
4414
+ </nationalNumberPattern>
4415
+ <exampleNumber>671234567</exampleNumber>
4404
4416
  </mobile>
4405
4417
  <tollFree>
4406
4418
  <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4419
+ <possibleNumberPattern>\d{8}</possibleNumberPattern>
4407
4420
  <exampleNumber>80012345</exampleNumber>
4408
4421
  </tollFree>
4409
4422
  <premiumRate>
@@ -4411,6 +4424,7 @@
4411
4424
  with 88 (usually 880). No information can be found as to whether these are premium rate
4412
4425
  or shared cost. -->
4413
4426
  <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4427
+ <possibleNumberPattern>\d{8}</possibleNumberPattern>
4414
4428
  <exampleNumber>88012345</exampleNumber>
4415
4429
  </premiumRate>
4416
4430
  </territory>
@@ -4978,7 +4992,7 @@
4978
4992
 
4979
4993
  <!-- Costa Rica -->
4980
4994
  <territory id="CR" countryCode="506" internationalPrefix="00"
4981
- nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))"
4995
+ nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
4982
4996
  carrierCodeFormattingRule="$CC $FG">
4983
4997
  <references>
4984
4998
  <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
@@ -5007,7 +5021,10 @@
5007
5021
  </fixedLine>
5008
5022
  <mobile>
5009
5023
  <nationalNumberPattern>
5010
- 57[0-3]\d{5}|
5024
+ 5(?:
5025
+ 0[01]|
5026
+ 7[0-3]
5027
+ )\d{5}|
5011
5028
  6(?:
5012
5029
  [0-2]\d|
5013
5030
  30
@@ -5038,10 +5055,14 @@
5038
5055
  0(?:
5039
5056
  0[01]\d{4}|
5040
5057
  10[0-3]\d{3}|
5041
- 2900\d{2}|
5058
+ 2(?:
5059
+ 00\d{3}|
5060
+ 900\d{2}
5061
+ )|
5042
5062
  3[01]\d{4}|
5043
5063
  40\d{4}|
5044
5064
  5\d{5}|
5065
+ 60\d{4}|
5045
5066
  70[01]\d{3}|
5046
5067
  8[0-2]\d{4}
5047
5068
  )|
@@ -5240,14 +5261,19 @@
5240
5261
  <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5241
5262
  <mobile>
5242
5263
  <nationalNumberPattern>
5264
+ 14(?:
5265
+ 5\d|
5266
+ 71
5267
+ )\d{5}|
5243
5268
  4(?:
5244
5269
  [0-2]\d|
5245
5270
  3[0-57-9]|
5246
5271
  4[47-9]|
5247
- 5[0-37-9]|
5272
+ 5[0-25-9]|
5248
5273
  6[6-9]|
5249
- 7[07-9]|
5250
- 8[7-9]
5274
+ 7[03-9]|
5275
+ 8[17-9]|
5276
+ 9[017-9]
5251
5277
  )\d{6}
5252
5278
  </nationalNumberPattern>
5253
5279
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -5661,7 +5687,7 @@
5661
5687
  )|
5662
5688
  5\d{1,2}|
5663
5689
  6[1-8]\d?
5664
- )\d{2,7}
5690
+ )\d{2,8}
5665
5691
  )
5666
5692
  </nationalNumberPattern>
5667
5693
  <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
@@ -6099,7 +6125,7 @@
6099
6125
  </fixedLine>
6100
6126
  <mobile>
6101
6127
  <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6102
- Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-3] were also added for
6128
+ Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6103
6129
  Mobilis Algeria based on evidence found online. -->
6104
6130
  <nationalNumberPattern>
6105
6131
  (?:
@@ -6108,7 +6134,7 @@
6108
6134
  )\d{7}|
6109
6135
  6(?:
6110
6136
  [569]\d|
6111
- 7[0-3]
6137
+ 7[0-4]
6112
6138
  )\d{6}
6113
6139
  </nationalNumberPattern>
6114
6140
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -6288,20 +6314,16 @@
6288
6314
  <exampleNumber>8002123</exampleNumber>
6289
6315
  </noInternationalDialling>
6290
6316
  <fixedLine>
6291
- <!-- Supporting eFax numbers here as well. -->
6292
6317
  <nationalNumberPattern>
6293
6318
  (?:
6294
6319
  3[23589]|
6295
- 4(?:
6296
- 0\d|
6297
- [3-8]
6298
- )|
6320
+ 4[3-8]|
6299
6321
  6\d|
6300
6322
  7[1-9]|
6301
6323
  88
6302
6324
  )\d{5}
6303
6325
  </nationalNumberPattern>
6304
- <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6326
+ <possibleNumberPattern>\d{7}</possibleNumberPattern>
6305
6327
  <exampleNumber>3212345</exampleNumber>
6306
6328
  </fixedLine>
6307
6329
  <mobile>
@@ -6338,8 +6360,15 @@
6338
6360
  <exampleNumber>80012345</exampleNumber>
6339
6361
  </tollFree>
6340
6362
  <premiumRate>
6341
- <nationalNumberPattern>900\d{4}</nationalNumberPattern>
6342
- <possibleNumberPattern>\d{7}</possibleNumberPattern>
6363
+ <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6364
+ had user reports that they are expensive to dial. -->
6365
+ <nationalNumberPattern>
6366
+ (?:
6367
+ 40\d{2}|
6368
+ 900
6369
+ )\d{4}
6370
+ </nationalNumberPattern>
6371
+ <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6343
6372
  <exampleNumber>9001234</exampleNumber>
6344
6373
  </premiumRate>
6345
6374
  <personalNumber>
@@ -7914,7 +7943,7 @@
7914
7943
  mobileNumberPortableRegion="true">
7915
7944
  <references>
7916
7945
  <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
7917
- <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia.</sourceUrl>
7946
+ <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
7918
7947
  </references>
7919
7948
  <availableFormats>
7920
7949
  <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
@@ -9398,7 +9427,7 @@
9398
9427
  <format>$1 $2</format>
9399
9428
  </numberFormat>
9400
9429
  <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9401
- pattern="(\d{3})(\d{5,7})">
9430
+ pattern="(\d{3})(\d{5,8})">
9402
9431
  <leadingDigits>
9403
9432
  [4579]|
9404
9433
  2[035-9]|
@@ -9436,7 +9465,9 @@
9436
9465
  Where known, fixed mobile prefixes have been represented as Mobile. -->
9437
9466
  <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9438
9467
  well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9439
- http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf -->
9468
+ http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9469
+ There seem to be numbers of this length for area code 22 as well based on numbers found
9470
+ online. -->
9440
9471
  <nationalNumberPattern>
9441
9472
  2(?:
9442
9473
  1(?:
@@ -9445,7 +9476,8 @@
9445
9476
  500\d{3}|
9446
9477
  9\d{6}
9447
9478
  )|
9448
- [24]\d{7,8}
9479
+ 2\d{6,8}|
9480
+ 4\d{7,8}
9449
9481
  )|
9450
9482
  (?:
9451
9483
  2(?:
@@ -9490,7 +9522,7 @@
9490
9522
  4[1-6]
9491
9523
  )|
9492
9524
  7(?:
9493
- 1[1-46-9]|
9525
+ 1[1-9]|
9494
9526
  2[14-9]|
9495
9527
  [36]\d|
9496
9528
  4[1-8]|
@@ -9508,7 +9540,7 @@
9508
9540
  )
9509
9541
  )\d{5,8}
9510
9542
  </nationalNumberPattern>
9511
- <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9543
+ <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9512
9544
  <exampleNumber>612345678</exampleNumber>
9513
9545
  </fixedLine>
9514
9546
  <mobile>
@@ -9878,13 +9910,15 @@
9878
9910
  5(?:
9879
9911
  [02347-9]\d{2}|
9880
9912
  5(?:
9913
+ 01|
9881
9914
  2[23]|
9882
9915
  3[34]|
9883
9916
  4[45]|
9884
9917
  5[5689]|
9885
9918
  6[67]|
9886
9919
  7[78]|
9887
- 8[89]
9920
+ 8[89]|
9921
+ 9[7-9]
9888
9922
  )|
9889
9923
  6[2-9]\d
9890
9924
  )\d{5}
@@ -10073,10 +10107,10 @@
10073
10107
  </references>
10074
10108
  <availableFormats>
10075
10109
  <!-- Mobile numbers. -->
10076
- <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
10110
+ <numberFormat pattern="(\d{5})(\d{5})">
10077
10111
  <leadingDigits>
10078
10112
  7(?:
10079
- 0[2-7]|
10113
+ 0[2-9]|
10080
10114
  2[0579]|
10081
10115
  3[057-9]|
10082
10116
  4[0-389]|
@@ -10101,8 +10135,8 @@
10101
10135
  7(?:
10102
10136
  0(?:
10103
10137
  2[2-9]|
10104
- [3-6]|
10105
- 7[0-8]
10138
+ [3-8]|
10139
+ 9[0-4]
10106
10140
  )|
10107
10141
  2(?:
10108
10142
  0[04-9]|
@@ -10181,7 +10215,7 @@
10181
10215
  )|
10182
10216
  9
10183
10217
  </leadingDigits>
10184
- <format>$1 $2 $3</format>
10218
+ <format>$1 $2</format>
10185
10219
  </numberFormat>
10186
10220
  <!-- 2 digits area code -->
10187
10221
  <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
@@ -10570,8 +10604,8 @@
10570
10604
  7(?:
10571
10605
  0(?:
10572
10606
  2[2-9]|
10573
- [3-6]\d|
10574
- 7[0-8]
10607
+ [3-8]\d|
10608
+ 9[0-4]
10575
10609
  )|
10576
10610
  2(?:
10577
10611
  0[04-9]|
@@ -10776,169 +10810,99 @@
10776
10810
  </references>
10777
10811
  <availableFormats>
10778
10812
  <!-- Formatting follows wikipedia. -->
10779
- <numberFormat pattern="(2[15])(\d{3,5})">
10780
- <!-- We exclude the 255 and 256 prefixes, which do not belong to Qom as of yet. -->
10781
- <leadingDigits>
10782
- 2(?:
10783
- 1|
10784
- 5[0-47-9]
10785
- )
10786
- </leadingDigits>
10813
+ <numberFormat pattern="(21)(\d{3,5})">
10814
+ <leadingDigits>21</leadingDigits>
10787
10815
  <format>$1 $2</format>
10788
10816
  </numberFormat>
10789
- <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
10790
- <leadingDigits>
10791
- 2(?:
10792
- 1|
10793
- 5[0-47-9]
10794
- )
10795
- </leadingDigits>
10796
- <format>$1 $2 $3</format>
10797
- </numberFormat>
10798
- <numberFormat pattern="(2\d)(\d{4})(\d{4})">
10799
- <leadingDigits>
10800
- 2(?:
10801
- [16]|
10802
- 5[0-47-9]
10803
- )
10804
- </leadingDigits>
10817
+ <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10818
+ <leadingDigits>[1-8]</leadingDigits>
10805
10819
  <format>$1 $2 $3</format>
10806
10820
  </numberFormat>
10807
10821
  <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10808
- <leadingDigits>
10809
- [13-9]|
10810
- 2[02-57-9]
10811
- </leadingDigits>
10822
+ <leadingDigits>9</leadingDigits>
10812
10823
  <format>$1 $2 $3</format>
10813
10824
  </numberFormat>
10814
10825
  <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10815
- <leadingDigits>
10816
- [13-9]|
10817
- 2[02-57-9]
10818
- </leadingDigits>
10826
+ <leadingDigits>9</leadingDigits>
10819
10827
  <format>$1 $2 $3</format>
10820
10828
  </numberFormat>
10821
10829
  <numberFormat pattern="(\d{3})(\d{3})">
10822
- <leadingDigits>
10823
- [13-9]|
10824
- 2[02-57-9]
10825
- </leadingDigits>
10830
+ <leadingDigits>9</leadingDigits>
10826
10831
  <format>$1 $2</format>
10827
10832
  </numberFormat>
10828
10833
  </availableFormats>
10829
10834
  <generalDesc>
10830
10835
  <nationalNumberPattern>
10831
- [14-8]\d{6,9}|
10832
- [23]\d{4,9}|
10836
+ [1-8]\d{9}|
10833
10837
  9(?:
10834
- [1-4]\d{8}|
10838
+ [0-4]\d{8}|
10835
10839
  9\d{2,8}
10836
10840
  )
10837
10841
  </nationalNumberPattern>
10838
10842
  <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10839
10843
  </generalDesc>
10840
10844
  <fixedLine>
10841
- <!-- We are following the more specific lengths specified in the communication in the ITU
10842
- doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
10843
- The prefixes have been verified by looking at the Persian telecommunications site.
10844
- 22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
10845
- found on the website http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
10846
- to be a typo. It seems Qom is moving to 025, but 0255 and 0256 have not yet been
10847
- migrated away from under this prefix - in the meantime, support for 253 has been added
10848
- since this has been found in numbers online. -->
10845
+ <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10846
+ Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10847
+ Within each province, all numbers are exactly eight digits. The expression below is
10848
+ organized by province. For each province we accept all eight-digit combinations.
10849
+
10850
+ 11 Mazandaran
10851
+ 13 Gilan
10852
+ 17 Golestan
10853
+ 21 Tehran
10854
+ 23 Semnan
10855
+ 24 Zanjan
10856
+ 25 Qom
10857
+ 26 Alborz
10858
+ 28 Qazvin
10859
+ 31 Isfahan
10860
+ 34 Kerman
10861
+ 35 Yazd
10862
+ 38 Chahar Mahaal and Bakhtiari
10863
+ 41 East Azerbaijan
10864
+ 44 West Azerbaijan
10865
+ 45 Ardabil
10866
+ 51 Razavi Khorasan
10867
+ 54 Sistan and Baluchestan
10868
+ 56 South Khorasan
10869
+ 57 North Khorasan (Extras)
10870
+ 58 North Khorasan
10871
+ 61 Khuzestan
10872
+ 64 North Khorasan (Extras)
10873
+ 66 Lorestan
10874
+ 71 Fars
10875
+ 74 Kohgiluyeh and Boyer-Ahmad
10876
+ 76 Hormozgan
10877
+ 77 Bushehr
10878
+ 81 Hamadan
10879
+ 83 Kermanshah
10880
+ 84 Ilam
10881
+ 86 Markazi
10882
+ 87 Kurdistan
10883
+ -->
10849
10884
  <nationalNumberPattern>
10850
- 1(?:
10851
- [13-589][12]|
10852
- [27][1-4]
10853
- )\d{7}|
10854
- 2(?:
10855
- 1\d{3,8}|
10856
- 3[12]\d{7}|
10857
- 4(?:
10858
- 1\d{4,7}|
10859
- 2\d{7}
10860
- )|
10861
- 5(?:
10862
- 1\d{3,7}|
10863
- [2356]\d{7}
10864
- )|
10865
- 6\d{8}|
10866
- 7[34]\d{7}|
10867
- [89][12]\d{7}
10868
- )|
10869
- 3(?:
10870
- 1(?:
10871
- 1\d{4,7}|
10872
- 2\d{7}
10873
- )|
10874
- 2[1-4]\d{7}|
10875
- 3(?:
10876
- [125]\d{7}|
10877
- 4\d{6,7}
10878
- )|
10879
- 4(?:
10880
- 1\d{6,7}
10881
- [24-9]\d{7}
10882
- )|
10883
- 5(?:
10884
- 1\d{4,7}|
10885
- [23]\d{7}
10886
- )|
10887
- [6-9][12]\d{7}
10888
- )|
10889
- 4(?:
10890
- [135-9][12]\d{7}|
10891
- 2[1-467]\d{7}|
10892
- 4(?:
10893
- 1\d{4,7}|
10894
- [2-4]\d{7}
10895
- )
10896
- )|
10897
- 5(?:
10898
- 1(?:
10899
- 1\d{4,7}|
10900
- 2\d{7}
10901
- )|
10902
- 2[89]\d{7}|
10903
- 3[1-5]\d{7}|
10904
- 4(?:
10905
- 1\d{4,7}|
10906
- [2-8]\d{7}
10907
- )|
10908
- [5-7][12]\d{7}|
10909
- 8[1245]\d{7}
10910
- )|
10911
- 6(?:
10912
- 1(?:
10913
- 1\d{6,7}|
10914
- 2\d{7}
10915
- )|
10916
- [347-9][12]\d{7}|
10917
- 5(?:
10918
- 1\d{7}|
10919
- 2\d{6,7}
10920
- )|
10921
- 6[1-6]\d{7}
10922
- )|
10923
- 7(?:
10924
- [13589][12]|
10925
- 2[1289]|
10926
- 4[1-4]|
10927
- 6[1-6]|
10928
- 7[1-3]
10929
- )\d{7}|
10930
- 8(?:
10931
- [145][12]|
10932
- 3[124578]|
10933
- 6[1256]|
10934
- 7[1245]
10935
- )\d{7}
10885
+ (?:
10886
+ 1[137]|
10887
+ 2[13-68]|
10888
+ 3[1458]|
10889
+ 4[145]|
10890
+ 5[146-8]|
10891
+ 6[146]|
10892
+ 7[1467]|
10893
+ 8[13467]
10894
+ )\d{8}
10936
10895
  </nationalNumberPattern>
10937
- <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
10896
+ <possibleNumberPattern>\d{10}</possibleNumberPattern>
10938
10897
  <exampleNumber>2123456789</exampleNumber>
10939
10898
  </fixedLine>
10940
10899
  <mobile>
10941
- <nationalNumberPattern>9[1-3]\d{8}</nationalNumberPattern>
10900
+ <nationalNumberPattern>
10901
+ 9(?:
10902
+ 0[12]|
10903
+ [1-3]\d
10904
+ )\d{7}
10905
+ </nationalNumberPattern>
10942
10906
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
10943
10907
  <exampleNumber>9123456789</exampleNumber>
10944
10908
  </mobile>
@@ -10994,9 +10958,10 @@
10994
10958
  <nationalNumberPattern>
10995
10959
  (?:
10996
10960
  4(?:
10997
- [14][0-245]|
10961
+ 1[0-24-6]|
10998
10962
  2[0-7]|
10999
10963
  [37][0-8]|
10964
+ 4[0-245]|
11000
10965
  5[0-3568]|
11001
10966
  6\d|
11002
10967
  8[0-36-8]
@@ -11023,26 +10988,27 @@
11023
10988
  38[589]\d{6}|
11024
10989
  (?:
11025
10990
  6(?:
11026
- 1[0-8]|
11027
- 3[0-27-9]|
11028
- 4[0-27]|
11029
- 5[0-29]|
10991
+ 1[1-8]|
10992
+ 3[089]|
10993
+ 4[0167]|
10994
+ 5[019]|
11030
10995
  [67][0-69]|
11031
10996
  9\d
11032
10997
  )|
11033
10998
  7(?:
11034
10999
  5[057]|
11035
11000
  7\d|
11036
- 8[0-3]
11001
+ 8[0-36-8]
11037
11002
  )|
11038
11003
  8(?:
11039
11004
  2[0-5]|
11005
+ 3[0-4]|
11040
11006
  [469]\d|
11041
11007
  5[1-9]
11042
11008
  )
11043
11009
  )\d{4}
11044
11010
  </nationalNumberPattern>
11045
- <exampleNumber>6101234</exampleNumber>
11011
+ <exampleNumber>6111234</exampleNumber>
11046
11012
  </mobile>
11047
11013
  <tollFree>
11048
11014
  <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
@@ -11058,7 +11024,7 @@
11058
11024
  <exampleNumber>9011234</exampleNumber>
11059
11025
  </premiumRate>
11060
11026
  <voip>
11061
- <nationalNumberPattern>49[0-24-79]\d{4}</nationalNumberPattern>
11027
+ <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11062
11028
  <possibleNumberPattern>\d{7}</possibleNumberPattern>
11063
11029
  <exampleNumber>4921234</exampleNumber>
11064
11030
  </voip>
@@ -11070,12 +11036,7 @@
11070
11036
  49|
11071
11037
  8\d
11072
11038
  )|
11073
- 8(?:
11074
- 2[6-9]|
11075
- [38]\d|
11076
- 50|
11077
- 7[014-9]
11078
- )|
11039
+ 87[0189]|
11079
11040
  95[48]
11080
11041
  )\d{4}
11081
11042
  </nationalNumberPattern>
@@ -12813,7 +12774,7 @@
12813
12774
  <mobile>
12814
12775
  <nationalNumberPattern>
12815
12776
  7(?:
12816
- [0-3]\d|
12777
+ [0-36]\d|
12817
12778
  5[0-6]|
12818
12779
  7[0-5]|
12819
12780
  8[0-25-9]
@@ -13403,7 +13364,8 @@
13403
13364
  <leadingDigits>
13404
13365
  1(?:
13405
13366
  5[46-9]|
13406
- 6[04678]
13367
+ 6[04678]|
13368
+ 8[0579]
13407
13369
  )
13408
13370
  </leadingDigits>
13409
13371
  <leadingDigits>
@@ -13421,6 +13383,12 @@
13421
13383
  6[16]|
13422
13384
  70|
13423
13385
  88
13386
+ )|
13387
+ 8(?:
13388
+ 00|
13389
+ 55|
13390
+ 77|
13391
+ 99
13424
13392
  )
13425
13393
  )
13426
13394
  </leadingDigits>
@@ -13484,6 +13452,7 @@
13484
13452
  <exampleNumber>7012345678</exampleNumber>
13485
13453
  </voip>
13486
13454
  <uan>
13455
+ <!-- Prefix 18 added from numbers found online. -->
13487
13456
  <nationalNumberPattern>
13488
13457
  1(?:
13489
13458
  5(?:
@@ -13499,6 +13468,12 @@
13499
13468
  6[16]|
13500
13469
  70|
13501
13470
  88
13471
+ )|
13472
+ 8(?:
13473
+ 00|
13474
+ 55|
13475
+ 77|
13476
+ 99
13502
13477
  )
13503
13478
  )\d{4}
13504
13479
  </nationalNumberPattern>
@@ -13823,10 +13798,10 @@
13823
13798
  <exampleNumber>7123456789</exampleNumber>
13824
13799
  </fixedLine>
13825
13800
  <mobile>
13826
- <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
13801
+ <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13827
13802
  <nationalNumberPattern>
13828
13803
  7(?:
13829
- 0[01257]|
13804
+ 0[012578]|
13830
13805
  47|
13831
13806
  6[02-4]|
13832
13807
  7[15-8]|
@@ -13898,13 +13873,13 @@
13898
13873
  <exampleNumber>21212862</exampleNumber>
13899
13874
  </fixedLine>
13900
13875
  <mobile>
13901
- <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
13876
+ <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13902
13877
  <nationalNumberPattern>
13903
13878
  20(?:
13904
13879
  2[2389]|
13905
13880
  5[4-689]|
13906
13881
  7[6-8]|
13907
- 9[57-9]
13882
+ 9[15-9]
13908
13883
  )\d{6}
13909
13884
  </nationalNumberPattern>
13910
13885
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -14893,7 +14868,7 @@
14893
14868
  <availableFormats>
14894
14869
  <!-- Following formatting found online rather than in the ITU document example. -->
14895
14870
  <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14896
- <leadingDigits>[89]</leadingDigits>
14871
+ <leadingDigits>9</leadingDigits>
14897
14872
  <format>$1 $2 $3 $4</format>
14898
14873
  </numberFormat>
14899
14874
  <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
@@ -14904,6 +14879,10 @@
14904
14879
  <leadingDigits>6</leadingDigits>
14905
14880
  <format>$1 $2 $3 $4 $5</format>
14906
14881
  </numberFormat>
14882
+ <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14883
+ <leadingDigits>8</leadingDigits>
14884
+ <format>$1 $2 $3</format>
14885
+ </numberFormat>
14907
14886
  </availableFormats>
14908
14887
  <generalDesc>
14909
14888
  <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
@@ -14915,7 +14894,10 @@
14915
14894
  </noInternationalDialling>
14916
14895
  <fixedLine>
14917
14896
  <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14918
- <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
14897
+ <nationalNumberPattern>
14898
+ 870\d{5}|
14899
+ 9[2-47-9]\d{6}
14900
+ </nationalNumberPattern>
14919
14901
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
14920
14902
  <exampleNumber>99123456</exampleNumber>
14921
14903
  </fixedLine>
@@ -14923,17 +14905,15 @@
14923
14905
  <!-- 4X mobile numbers are actually used by Kosovo. -->
14924
14906
  <nationalNumberPattern>
14925
14907
  6\d{8}|
14926
- 4\d{7}
14908
+ 4(?:
14909
+ 4\d|
14910
+ 5[2-9]
14911
+ )\d{5}
14927
14912
  </nationalNumberPattern>
14928
14913
  <exampleNumber>612345678</exampleNumber>
14929
14914
  </mobile>
14930
14915
  <tollFree>
14931
- <nationalNumberPattern>
14932
- (?:
14933
- 8\d|
14934
- 90
14935
- )\d{6}
14936
- </nationalNumberPattern>
14916
+ <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14937
14917
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
14938
14918
  <exampleNumber>90123456</exampleNumber>
14939
14919
  </tollFree>
@@ -15926,7 +15906,7 @@
15926
15906
  <territory id="MR" countryCode="222" internationalPrefix="00" >
15927
15907
  <references>
15928
15908
  <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15929
- <sourceUrl>http://www.are.mr/com-1-4-1.html</sourceUrl>
15909
+ <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15930
15910
  </references>
15931
15911
  <availableFormats>
15932
15912
  <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
@@ -15945,6 +15925,10 @@
15945
15925
  </nationalNumberPattern>
15946
15926
  <exampleNumber>35123456</exampleNumber>
15947
15927
  </fixedLine>
15928
+ <!-- Added "49\d" in response to https://code.google.com/p/libphonenumber/issues/detail?id=529
15929
+ which might be overly permissive, but we don't have an official documentation for this
15930
+ and only a small number of numbers were found online. At least 492 and 495 are valid.
15931
+ -->
15948
15932
  <mobile>
15949
15933
  <nationalNumberPattern>
15950
15934
  (?:
@@ -15958,7 +15942,7 @@
15958
15942
  7[1-3]
15959
15943
  )|
15960
15944
  4(?:
15961
- 4\d|
15945
+ [49]\d|
15962
15946
  6[0457-9]|
15963
15947
  7[4-9]|
15964
15948
  8[01346-8]
@@ -17228,13 +17212,11 @@
17228
17212
  <exampleNumber>21234567</exampleNumber>
17229
17213
  </fixedLine>
17230
17214
  <mobile>
17231
- <!-- Online users have reported seeing 5500 used by Claro; until we can find actual numbers
17232
- or any documentation about it, we restrict this pattern to this prefix exactly. 57 and
17233
- 7[5-8] were added from bug reports/numbers found online. -->
17215
+ <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17234
17216
  <nationalNumberPattern>
17235
17217
  5(?:
17236
- 500\d{4}|
17237
- 7\d{6}
17218
+ 5[0-7]\d{5}|
17219
+ [78]\d{6}
17238
17220
  )|
17239
17221
  7[5-8]\d{6}|
17240
17222
  8\d{7}
@@ -17430,7 +17412,7 @@
17430
17412
  )\d{6}
17431
17413
  </nationalNumberPattern>
17432
17414
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
17433
- <exampleNumber>41234567</exampleNumber>
17415
+ <exampleNumber>40612345</exampleNumber>
17434
17416
  </mobile>
17435
17417
  <tollFree>
17436
17418
  <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
@@ -17489,6 +17471,7 @@
17489
17471
  <references>
17490
17472
  <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17491
17473
  <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17474
+ <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17492
17475
  </references>
17493
17476
  <availableFormats>
17494
17477
  <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
@@ -17510,7 +17493,8 @@
17510
17493
  <numberFormat pattern="(9\d{2})(\d{7})">
17511
17494
  <leadingDigits>
17512
17495
  9(?:
17513
- 7[45]|
17496
+ 6[013]|
17497
+ 7[245]|
17514
17498
  8
17515
17499
  )
17516
17500
  </leadingDigits>
@@ -17523,37 +17507,37 @@
17523
17507
  <nationalNumberPattern>
17524
17508
  [1-8]\d{7}|
17525
17509
  9(?:
17526
- [1-69]\d{6}|
17510
+ [1-69]\d{6,8}|
17527
17511
  7[2-6]\d{5,7}|
17528
17512
  8\d{8}
17529
17513
  )
17530
17514
  </nationalNumberPattern>
17531
17515
  <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17532
17516
  </generalDesc>
17517
+ <!-- We don't support Rural Telecommunication Service at the moment since
17518
+ we are not sure what type it is. -->
17533
17519
  <fixedLine>
17534
- <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
17535
17520
  <nationalNumberPattern>
17536
17521
  (?:
17537
- 1[0124-6]|
17538
- 2[13-79]|
17539
- 3[135-8]|
17540
- 4[146-9]|
17541
- 5[135-7]|
17542
- 6[13-9]|
17543
- 7[15-9]|
17544
- 8[1-46-9]|
17545
- 9[1-79]
17546
- )\d{6}
17522
+ 1[0-6]\d|
17523
+ 2[13-79][2-6]|
17524
+ 3[135-8][2-6]|
17525
+ 4[146-9][2-6]|
17526
+ 5[135-7][2-6]|
17527
+ 6[13-9][2-6]|
17528
+ 7[15-9][2-6]|
17529
+ 8[1-46-9][2-6]|
17530
+ 9[1-79][2-6]
17531
+ )\d{5}
17547
17532
  </nationalNumberPattern>
17548
17533
  <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17549
17534
  <exampleNumber>14567890</exampleNumber>
17550
17535
  </fixedLine>
17551
- <!-- There is no definitive source of information for mobile numbers in Nepal. The information
17552
- here is collected by searching the Internet. -->
17553
17536
  <mobile>
17554
17537
  <nationalNumberPattern>
17555
17538
  9(?:
17556
- 7[45]|
17539
+ 6[013]|
17540
+ 7[245]|
17557
17541
  8[01456]
17558
17542
  )\d{7}
17559
17543
  </nationalNumberPattern>
@@ -18063,17 +18047,14 @@
18063
18047
  <!-- Includes payphone prefixes. -->
18064
18048
  <nationalNumberPattern>
18065
18049
  4(?:
18066
- 0[45689]\d|
18067
- 4|
18068
- 99\d
18050
+ [09][45689]\d|
18051
+ 4
18069
18052
  )\d{4}
18070
18053
  </nationalNumberPattern>
18071
18054
  <exampleNumber>40412345</exampleNumber>
18072
18055
  </fixedLine>
18073
18056
  <mobile>
18074
- <nationalNumberPattern>
18075
- 8[79]\d{6}
18076
- </nationalNumberPattern>
18057
+ <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18077
18058
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
18078
18059
  <exampleNumber>87123456</exampleNumber>
18079
18060
  </mobile>
@@ -19738,9 +19719,12 @@
19738
19719
  until we find evidence that this is an error, leaving them at 10 for now. -->
19739
19720
  <nationalNumberPattern>
19740
19721
  (?:
19741
- 5[013-689]|
19742
- 811
19743
- )\d{7}
19722
+ 5(?:
19723
+ [013-689]\d|
19724
+ 7[0-26-8]
19725
+ )|
19726
+ 811\d
19727
+ )\d{6}
19744
19728
  </nationalNumberPattern>
19745
19729
  <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19746
19730
  <exampleNumber>512345678</exampleNumber>
@@ -19763,9 +19747,10 @@
19763
19747
  <references>
19764
19748
  <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19765
19749
  </references>
19766
- <!-- A single group is used to format 5-digit numbers. -->
19750
+ <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19751
+ the guidelines in the ITU document. -->
19767
19752
  <availableFormats>
19768
- <numberFormat pattern="(\d{3})(\d{4})">
19753
+ <numberFormat pattern="(\d{2})(\d{5})">
19769
19754
  <leadingDigits>[7-9]</leadingDigits>
19770
19755
  <format>$1 $2</format>
19771
19756
  </numberFormat>
@@ -19795,7 +19780,7 @@
19795
19780
  7(?:
19796
19781
  [0146-8]\d|
19797
19782
  5[025-9]|
19798
- 90
19783
+ 9[0124]
19799
19784
  )\d{4}|
19800
19785
  8[4-8]\d{5}|
19801
19786
  9(?:
@@ -20720,14 +20705,12 @@
20720
20705
  1[0-2]|
20721
20706
  80
20722
20707
  )|
20723
- 2(?:
20724
- 11|
20725
- 82
20726
- )|
20708
+ 282|
20727
20709
  3(?:
20728
20710
  8[1-9]|
20729
20711
  9[3-9]
20730
20712
  )|
20713
+ 611|
20731
20714
  90[1-5]
20732
20715
  )\d{5}
20733
20716
  </nationalNumberPattern>
@@ -20737,6 +20720,7 @@
20737
20720
  <nationalNumberPattern>
20738
20721
  7(?:
20739
20722
  [067]\d|
20723
+ 21|
20740
20724
  8[0-26]|
20741
20725
  90
20742
20726
  )\d{6}
@@ -20875,7 +20859,10 @@
20875
20859
  <format>$1-$2-$3</format>
20876
20860
  </numberFormat>
20877
20861
  <numberFormat pattern="(\d{3})(\d{4})">
20878
- <leadingDigits>[6-8]</leadingDigits>
20862
+ <leadingDigits>
20863
+ 59|
20864
+ [6-8]
20865
+ </leadingDigits>
20879
20866
  <format>$1-$2</format>
20880
20867
  </numberFormat>
20881
20868
  </availableFormats>
@@ -20899,19 +20886,21 @@
20899
20886
  <mobile>
20900
20887
  <nationalNumberPattern>
20901
20888
  (?:
20902
- 7(?:
20903
- [1-357]\d|
20904
- 4[0-5]
20905
- )|
20906
- 8[1-9]\d
20907
- )\d{4}
20889
+ 7[124-7]|
20890
+ 8[1-9]
20891
+ )\d{5}
20908
20892
  </nationalNumberPattern>
20909
20893
  <possibleNumberPattern>\d{7}</possibleNumberPattern>
20910
20894
  <exampleNumber>7412345</exampleNumber>
20911
20895
  </mobile>
20912
20896
  <voip>
20913
- <nationalNumberPattern>56\d{4}</nationalNumberPattern>
20914
- <possibleNumberPattern>\d{6}</possibleNumberPattern>
20897
+ <nationalNumberPattern>
20898
+ 5(?:
20899
+ 6\d{4}|
20900
+ 90[0-4]\d{3}
20901
+ )
20902
+ </nationalNumberPattern>
20903
+ <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20915
20904
  <exampleNumber>561234</exampleNumber>
20916
20905
  </voip>
20917
20906
  </territory>
@@ -21399,7 +21388,8 @@
21399
21388
  <exampleNumber>22212345</exampleNumber>
21400
21389
  </fixedLine>
21401
21390
  <mobile>
21402
- <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
21391
+ <!-- Prefix 93 is from an open-source bug report -->
21392
+ <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21403
21393
  <exampleNumber>90112345</exampleNumber>
21404
21394
  </mobile>
21405
21395
  </territory>
@@ -21419,8 +21409,11 @@
21419
21409
  <leadingDigits>2</leadingDigits>
21420
21410
  <format>$1 $2 $3</format>
21421
21411
  </numberFormat>
21422
- <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
21423
- <leadingDigits>[3-9]</leadingDigits>
21412
+ <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21413
+ <leadingDigits>
21414
+ 14|
21415
+ [3-9]
21416
+ </leadingDigits>
21424
21417
  <format>$1 $2 $3</format>
21425
21418
  </numberFormat>
21426
21419
  <numberFormat nationalPrefixFormattingRule="$FG"
@@ -21432,7 +21425,7 @@
21432
21425
  <generalDesc>
21433
21426
  <nationalNumberPattern>
21434
21427
  [2-9]\d{7,8}|
21435
- 1\d{3}(?:\d{6})?
21428
+ 1\d{3}(?:\d{5,6})?
21436
21429
  </nationalNumberPattern>
21437
21430
  <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21438
21431
  </generalDesc>
@@ -21457,7 +21450,17 @@
21457
21450
  <exampleNumber>21234567</exampleNumber>
21458
21451
  </fixedLine>
21459
21452
  <mobile>
21460
- <nationalNumberPattern>[89]\d{8}</nationalNumberPattern>
21453
+ <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21454
+ we couldn't find evidence of these specifically being in use but this article
21455
+ http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21456
+ talks about prefix 6 and 1 being cleared for mobile use. -->
21457
+ <nationalNumberPattern>
21458
+ (?:
21459
+ 14|
21460
+ 6[1-3]|
21461
+ [89]\d
21462
+ )\d{7}
21463
+ </nationalNumberPattern>
21461
21464
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
21462
21465
  <exampleNumber>812345678</exampleNumber>
21463
21466
  </mobile>
@@ -21562,10 +21565,10 @@
21562
21565
  </fixedLine>
21563
21566
  <mobile>
21564
21567
  <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21565
- numbers, and 501 for TCell. -->
21568
+ numbers, and 50[12] for TCell from bug reports. -->
21566
21569
  <nationalNumberPattern>
21567
21570
  (?:
21568
- 50[15]|
21571
+ 50[125]|
21569
21572
  9[0-35-9]\d
21570
21573
  )\d{6}
21571
21574
  </nationalNumberPattern>
@@ -21763,7 +21766,7 @@
21763
21766
  <nationalNumberPattern>
21764
21767
  (?:
21765
21768
  [259]\d|
21766
- 4[0-2]
21769
+ 4[0-24]
21767
21770
  )\d{6}
21768
21771
  </nationalNumberPattern>
21769
21772
  <exampleNumber>20123456</exampleNumber>
@@ -21806,7 +21809,7 @@
21806
21809
  <numberFormat pattern="(\d{3})(\d{4})">
21807
21810
  <leadingDigits>
21808
21811
  7[5-9]|
21809
- 8[7-9]
21812
+ 8[47-9]
21810
21813
  </leadingDigits>
21811
21814
  <format>$1 $2</format>
21812
21815
  </numberFormat>
@@ -21835,11 +21838,11 @@
21835
21838
  </fixedLine>
21836
21839
  <mobile>
21837
21840
  <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21838
- in their ITU document. Numbers with a prefix of "75" have also been found. -->
21841
+ in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21839
21842
  <nationalNumberPattern>
21840
21843
  (?:
21841
21844
  7[578]|
21842
- 8[7-9]
21845
+ 8[47-9]
21843
21846
  )\d{5}
21844
21847
  </nationalNumberPattern>
21845
21848
  <possibleNumberPattern>\d{7}</possibleNumberPattern>
@@ -21980,26 +21983,22 @@
21980
21983
  2[1-5]
21981
21984
  )|
21982
21985
  6(?:
21983
- 07|
21984
- 1[4-6]|
21986
+ 0[79]|
21987
+ 1[02-9]|
21985
21988
  2[1-9]|
21986
- [3-6]\d|
21987
- 7[0-79]|
21988
- 9[0-8]
21989
+ [3-69]\d|
21990
+ 7[0-79]
21989
21991
  )|
21990
- 82[12]
21992
+ 82[124]
21991
21993
  )\d{4}
21992
21994
  </nationalNumberPattern>
21993
21995
  <exampleNumber>8682211234</exampleNumber>
21994
21996
  </fixedLine>
21995
21997
  <mobile>
21996
- <!-- Adding 48X & 70X from the IR21 published by TSTT. 288 seems to be used based on numbers
21997
- found online. -->
21998
21998
  <nationalNumberPattern>
21999
21999
  868(?:
22000
22000
  2(?:
22001
- 8[5-9]|
22002
- 9\d
22001
+ [89]\d
22003
22002
  )|
22004
22003
  3(?:
22005
22004
  0[1-9]|
@@ -22013,8 +22012,9 @@
22013
22012
  8\d
22014
22013
  )|
22015
22014
  7(?:
22015
+ 0[1-9]|
22016
22016
  1[02-9]|
22017
- [02-9]\d
22017
+ [2-9]\d
22018
22018
  )
22019
22019
  )\d{4}
22020
22020
  </nationalNumberPattern>
@@ -22468,11 +22468,14 @@
22468
22468
  <mobile>
22469
22469
  <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22470
22470
  <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22471
+ <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22471
22472
  <nationalNumberPattern>
22473
+ 2030\d{5}|
22472
22474
  7(?:
22473
22475
  0[0-7]|
22474
22476
  [15789]\d|
22475
- [23]0|
22477
+ 2[03]|
22478
+ 30|
22476
22479
  [46][0-4]
22477
22480
  )\d{6}
22478
22481
  </nationalNumberPattern>
@@ -22604,7 +22607,7 @@
22604
22607
  0[1346-9]|
22605
22608
  1[02-9]|
22606
22609
  2[0589]|
22607
- 3[1678]|
22610
+ 3[01678]|
22608
22611
  4[0179]|
22609
22612
  5[12469]|
22610
22613
  7[0-3589]|
@@ -22696,7 +22699,7 @@
22696
22699
  0[1346-9]|
22697
22700
  1[02-9]|
22698
22701
  2[0589]|
22699
- 3[1678]|
22702
+ 3[01678]|
22700
22703
  4[0179]|
22701
22704
  5[12469]|
22702
22705
  7[0-3589]|