<!-- Copyright (C) 2013 The Libphonenumber Authors

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.

     @author: David Yonge-Mallo
     @author: Shaopeng Jia
     @author: Lara Rennie

     Metadata on Short Number patterns, containing information for classifying short numbers by
     type and cost. Note that this is used in addition to the information provided by the
     PhoneNumberMetadata.xml file - patterns should not be duplicated between these files.

     Emergency numbers Wikipedia source:
     http://en.wikipedia.org/wiki/Emergency_telephone_number
-->

<!DOCTYPE phoneNumberMetadata [
    <!ELEMENT phoneNumberMetadata (territories)>
    <!ELEMENT territories (territory+)>
    <!ELEMENT territory (generalDesc, shortCode, tollFree?, standardRate?, premiumRate?,
        carrierSpecific?, emergency?, expandedEmergency?, smsServices?)>
    <!ELEMENT generalDesc (nationalNumberPattern)>
    <!ELEMENT shortCode (possibleLengths, exampleNumber, nationalNumberPattern)>

    <!-- The following cost categories are mutually exclusive. Emergency numbers are implicitly
         considered toll free and do not need to be repeated here. Otherwise, a short number which
         does not fall into one of these categories is considered to have unknown cost. -->
    <!ELEMENT tollFree (possibleLengths, exampleNumber, nationalNumberPattern)>
    <!ELEMENT standardRate (possibleLengths, exampleNumber, nationalNumberPattern)>
    <!ELEMENT premiumRate (possibleLengths, exampleNumber, nationalNumberPattern)>

    <!-- The following tags are currently used to classify numbers as a particular type and need not
         be mutually exclusive. The names are provisionary only and may be revised in the future.
         -->
    <!-- carrierSpecific numbers are numbers for which the endpoint can vary by carrier. The number
         may connect to a different endpoint on another carrier, or may not work at all. -->
    <!ELEMENT carrierSpecific (possibleLengths, exampleNumber, nationalNumberPattern)>
    <!ELEMENT emergency (possibleLengths, exampleNumber, nationalNumberPattern)>
    <!-- Emergency numbers beyond the traditional fire-police-ambulance trio. This includes things
         like rescue helicopters and help-lines that include "emergency" in their description. -->
    <!ELEMENT expandedEmergency (possibleLengths, exampleNumber, nationalNumberPattern)>
    <!-- Used for numbers where the primary or only intended usage is to receive and/or send text
         messages (SMSs). -->
    <!ELEMENT smsServices (possibleLengths, exampleNumber, nationalNumberPattern)>

    <!ELEMENT nationalNumberPattern (#PCDATA)>
    <!ELEMENT exampleNumber (#PCDATA)>
    <!ELEMENT possibleLengths EMPTY>

    <!ATTLIST territory id CDATA #REQUIRED>
    <!ATTLIST possibleLengths national CDATA #REQUIRED>
    <!ATTLIST possibleLengths localOnly CDATA #IMPLIED>
]>

<phoneNumberMetadata>
  <territories>
    <!-- Ascension Island (AC) -->
    <!-- www.itu.int/oth/T02020000AF -->
    <territory id="AC">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
           http://www.noonsite.com/Countries/AscensionIsland/?rc=GeneralInfo
           Note the 4-digit emergency numbers fit the fixed-line pattern, therefore are not
           included. This is consistent with how we handle such numbers in other countries. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Andorra (AD) -->
    <!-- http://www.itu.int/oth/T0202000005/en -->
    <territory id="AD">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0268]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0268]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.fco.gov.uk/en/travel-and-living-abroad/travel-advice-by-country/europe/andorra -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0268]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- United Arab Emirates (AE) -->
    <!-- http://www.itu.int/oth/T02020000DC/en -->
    <territory id="AE">
      <generalDesc>
        <nationalNumberPattern>[149]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          445[16]|
          99[7-9]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[7-9]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[7-9]
        </nationalNumberPattern>
      </emergency>
      <!-- As per online evidences, 4451 and 4456 are SMS-able short codes. -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4450</exampleNumber>
        <nationalNumberPattern>445\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Afghanistan (AF) -->
    <!-- http://www.itu.int/oth/T0202000001/en -->
    <territory id="AF">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[02]|
            19
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[02]|
            19
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[02]|
            19
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Antigua & Barbuda (AG) -->
    <!-- http://www.itu.int/oth/T0202000008/en -->
    <territory id="AG">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>
          176|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://barbados.usembassy.gov/emergency-antigua_barbuda.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Anguilla (AI) -->
    <!-- http://www.itu.int/oth/T0202000007/en -->
    <territory id="AI">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>
          176|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Albania (AL) -->
    <!-- http://www.itu.int/oth/T0202000002/en -->
    <territory id="AL">
      <generalDesc>
        <nationalNumberPattern>[15]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              6(?:
                000|
                1(?:
                  06|
                  11|
                  23
                )
              )|
              8\d\d
            )|
            65\d|
            89[12]
          )|
          5\d{4}|
          1(?:
            [1349]\d|
            2[2-9]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- All 116XXX, "European harmonized services of social" value are toll-free.
           See: https://ec.europa.eu/digital-single-market/116-helplines. -->
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6[01]\d\d
            )|
            2[7-9]|
            3[15]|
            41
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>50000</exampleNumber>
        <nationalNumberPattern>5\d{4}</nationalNumberPattern>
      </premiumRate>
      <!-- 123 is a ALBtelecom customer service number. -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>123</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            2[7-9]
          )
        </nationalNumberPattern>
      </emergency>
      <!-- According to http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx this is for
           sea emergencies and 126 for traffic emergencies. -->
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>125</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16(?:
              000|
              1(?:
                06|
                11|
                23
              )
            )|
            2[56]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="3,5"/>
        <exampleNumber>131</exampleNumber>
        <nationalNumberPattern>
          131|
          5\d{4}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Armenia (AM) -->
    <!-- http://www.itu.int/oth/T020200000A/en -->
    <territory id="AM">
      <generalDesc>
        <nationalNumberPattern>[148]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          (?:
            1|
            8[1-7]
          )\d\d|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>10[1-3]</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>10[1-3]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Angola (AO) -->
    <!-- http://www.itu.int/oth/T0202000006/en -->
    <territory id="AO">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[235]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[235]</nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1096.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[235]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Argentina (AR) -->
    <!-- http://www.itu.int/oth/T0202000009/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Argentina#Public_utility_numbers -->
    <territory id="AR">
      <generalDesc>
        <nationalNumberPattern>[01389]\d{1,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-5]"/>
        <exampleNumber>19</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            0[0-35-7]|
            1[02-5]|
            2[015]|
            3[47]|
            4[478]|
            9
          )|
          3372|
          89338|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- According to http://wikitravel.org/en/Argentina all 2 and 3 digit numbers are free,
           except for 113. -->
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>19</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            0[0-35-7]|
            1[0245]|
            2[015]|
            3[47]|
            4[478]|
            9
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>89300</exampleNumber>
        <nationalNumberPattern>893\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Argentina#Public_utility_numbers -->
      <!-- 911 is only available in some places. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          10[017]|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>103</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[356]|
            20|
            3[47]|
            4[478]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>3370</exampleNumber>
        <nationalNumberPattern>
          (?:
            337|
            893\d
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- American Samoa (AS) -->
    <!-- http://www.itu.int/oth/T0202000004/en -->
    <territory id="AS">
      <generalDesc>
        <nationalNumberPattern>
          [49]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          40404|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
           http://www.airportairport.com/American-Samoa.html
           http://www.frommers.com/destinations/americansamoa/3038020157.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Austria (AT) -->
    <!-- http://www.rtr.at/en/tk/E129 -->
    <territory id="AT">
      <generalDesc>
        <nationalNumberPattern>[1268]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  17|
                  23
                )
              )
            )|
            2[0238]|
            3[03]|
            4(?:
              [0-247]|
              5[05]|
              84
            )
          )|
          (?:
            2(?:
              066|
              20
            )|
            61|
            8108[1-3]
          )0
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            2[0238]|
            3[03]|
            4[0-247]
          )|
          1(?:
            16\d\d|
            4[58]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <!-- Added yesss! numbers 810810 , 810820 and 810830 based on their website. 
           Added Georg number 610 based on their website. -->
      <carrierSpecific>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>610</exampleNumber>
        <nationalNumberPattern>
          220\d|
          610|
          (?:
            206|
            810\d
          )\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [12]2|
            33|
            44
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            2[038]|
            30|
            4(?:
              [0-27]|
              [58]\d
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>20600</exampleNumber>
        <nationalNumberPattern>206\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Australia (AU) -->
    <!-- http://www.itu.int/oth/T020200000D/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
    <!-- Note 200[1-3] are ignored, despite being mentioned in the ITU document, because no
         evidence that these numbers really exist could be found online, and it is unclear what
         they actually are. -->
    <territory id="AU">
      <generalDesc>
        <nationalNumberPattern>[0-27]\d{2,7}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-8]"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            1(?:
              00|
              2|
              9[46]
            )|
            2(?:
              014[1-3]|
              [23]\d|
              (?:
                4|
                5\d
              )\d{2,3}|
              68[689]|
              72(?:
                20|
                3\d\d
              )|
              8(?:
                [013-9]\d|
                2
              )
            )|
            555|
            9\d{4,6}
          )|
          225|
          7(?:
            33|
            67
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,7"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            12|
            258885|
            55\d
          )|
          733
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>225</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[09]\d|
            24733
          )|
          225|
          767
        </nationalNumberPattern>
      </standardRate>
      <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
      <premiumRate>
        <possibleLengths national="[4-8]"/>
        <exampleNumber>1234</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2(?:
              34|
              456
            )|
            9\d{4,6}
          )
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
      <carrierSpecific>
        <possibleLengths national="4,7"/>
        <exampleNumber>1550</exampleNumber>
        <nationalNumberPattern>
          1(?:
            258885|
            55\d
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="[6-8]"/>
        <exampleNumber>190000</exampleNumber>
        <nationalNumberPattern>19\d{4,6}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Aruba (AW) -->
    <!-- http://www.itu.int/oth/T020200000B/en -->
    <territory id="AW">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            18|
            76
          )|
          91[13]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          100|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          100|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Åland Islands (AX) -->
    <territory id="AX">
      <generalDesc>
        <nationalNumberPattern>
          [17]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- Most service numbers are included under UAN in PhoneNumberMetadata.xml (and also in
           the no-international-dialling block) but prefixes 75[12] are always short and used for
           directory services, hence we consider them to be short numbers. -->
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          75[12]\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </tollFree>
      <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Azerbaijan (AZ) -->
    <!-- http://www.itu.int/oth/T020200000F/en -->
    <territory id="AZ">
      <generalDesc>
        <nationalNumberPattern>[148]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )|
          (?:
            404|
            880
          )0
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            404|
            880
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_978.html
           http://wikitravel.org/en/Azerbaijan#Emergency_contact_numbers -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            404|
            880
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Bosnia & Herzegovina (BA) -->
    <!-- https://www.itu.int/dms_pub/itu-t/oth/02/02/T020200001B0001PDFE.pdf -->
    <!-- http://www.rak.ba/eng/index.php?uid=1272016657 (accessible from
         http://www.cra.ba/en/telecom/numbering/) -->
    <!-- http://en.wikipedia.org/wiki/+387 -->
    <territory id="BA">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16(?:
              00[06]|
              1(?:
                1[17]|
                23
              )
            )|
            2(?:
              0[0-7]|
              [2-5]|
              6[0-26]
            )|
            (?:
              [3-5]|
              7\d
            )\d\d
          )|
          1(?:
            18|
            2[78]
          )\d\d?
        </nationalNumberPattern>
      </shortCode>
      <!-- All 116XXX, "European harmonized services of social" value are toll-free.
           See: https://ec.europa.eu/digital-single-market/116-helplines. -->
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            2[2-4]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>12[2-4]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Barbados (BB) -->
    <!-- http://www.itu.int/oth/T0202000013/en -->
    <territory id="BB">
      <generalDesc>
        <nationalNumberPattern>[2-689]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>
          988|
          [2-689]11
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>
          988|
          [2359]11
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>411</exampleNumber>
        <nationalNumberPattern>[468]11</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>[2359]11</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Bangladesh (BD) -->
    <!-- http://www.itu.int/oth/T0202000012/en -->
    <territory id="BD">
      <generalDesc>
        <nationalNumberPattern>[1579]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [0-369]|
              5[1-4]|
              7[0-4]|
              8[0-29]
            )|
            1[16-9]|
            2(?:
              [134]|
              2[0-5]
            )|
            3(?:
              1\d?|
              6[3-6]
            )|
            5[2-9]
          )|
          5012|
          786|
          9594|
          [19]99|
          1(?:
            0(?:
              50|
              6\d
            )|
            33|
            4(?:
              0|
              1\d
            )
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          10[0-26]|
          [19]99
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3,4"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            11|
            2[13]
          )|
          (?:
            501|
            959
          )\d|
          786
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          10[0-2]|
          [19]99
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>9590</exampleNumber>
        <nationalNumberPattern>959\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Belgium (BE) -->
    <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
    <!-- http://www.mobileweb.be/en/mobileweb/sms-numberplan.asp -->
    <territory id="BE">
      <generalDesc>
        <nationalNumberPattern>
          [1-9]\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-8]|
            16117|
            2(?:
              12|
              3[0-24]
            )|
            313|
            414|
            5(?:
              1[05]|
              5[15]|
              66|
              95
            )|
            6(?:
              1[167]|
              36|
              6[16]
            )|
            7(?:
              [07][017]|
              1[27-9]|
              22|
              33|
              65
            )|
            81[39]
          )|
          [2-9]\d{3}|
          11[02679]|
          1(?:
            1600|
            45
          )0|
          1(?:
            [2-4]9|
            78
          )9|
          1[2-4]0[47]
        </nationalNumberPattern>
      </shortCode>
      <!-- Documentation from www.childfocus.be says that 110 and 116000 are both free. Other
           information comes from the website of each number. -->
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-35-8]|
            1[0269]|
            7(?:
              12|
              77
            )|
            813
          )|
          (?:
            116|
            8
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <!-- For the numbers starting with 2-7 or 9, in practice, there is a range of rates; but the
           maximum is at least half a Euro, and in some cases 31 Euros (for mobile payments) so we
           consider them all premium rate for now. Other numbers have been assigned here because
           operators have listed them as being more expensive than normal numbers, e.g.
           http://www.voo.be/fr/telephone/tarifs-speciaux/ -->
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>1204</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2[03]|
            40
          )4|
          (?:
            1(?:
              [24]1|
              3[01]
            )|
            [2-79]\d\d
          )\d
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- http://www.childfocus.be/fr/accueil/ lists this as being an emergency number. -->
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[235-8]|
            1(?:
              [09]|
              6000
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>2000</exampleNumber>
        <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Burkina Faso (BF) -->
    <!-- http://www.itu.int/oth/T0202000021/en -->
    <!-- http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf -->
    <territory id="BF">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bulgaria (BG) -->
    <!-- http://www.itu.int/oth/T0202000020/en -->
    <territory id="BG">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                111
              )
            )|
            50|
            6[06]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}
            )|
            50|
            6[06]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            50|
            6[06]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Bahrain (BH) -->
    <!-- http://www.itu.int/oth/T0202000011/en -->
    <!-- http://www.tra.org.bh/media/document/National%20Numbering%20Plan.pdf -->
    <territory id="BH">
      <generalDesc>
        <nationalNumberPattern>
          [0189]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- As per official numbering plan, 85xxx shortcodes are shared cost numbers. As the cost
           details are not clear, categorized them as unknown cost numbers. -->
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [02]\d|
            12|
            4[01]|
            51|
            8[18]|
            9[169]
          )|
          99[02489]|
          (?:
            0[167]|
            8[158]|
            9[148]
          )\d{3}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,5"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          (?:
            0[167]|
            81
          )\d{3}|
          [19]99
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>91000</exampleNumber>
        <nationalNumberPattern>9[148]\d{3}</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>06000</exampleNumber>
        <nationalNumberPattern>
          0[67]\d{3}|
          88000|
          98555
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>[19]99</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[0248]
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>88000</exampleNumber>
        <nationalNumberPattern>
          88000|
          98555
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Burundi (BI) -->
    <!-- http://www.itu.int/oth/T0202000022/en -->
    <territory id="BI">
      <generalDesc>
        <nationalNumberPattern>[16-9]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1\d|
            5[2-9]|
            6[0-256]
          )|
          611|
          7(?:
            10|
            77|
            979
          )|
          8[28]8|
          900
        </nationalNumberPattern>
      </shortCode>
      <!-- Leo call centre (marked as free on their website) -->
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[237]|
          611
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>611</exampleNumber>
        <nationalNumberPattern>
          611|
          7(?:
            10|
            77
          )|
          888|
          900
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[237]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[014-689]</nationalNumberPattern>
      </expandedEmergency>
      <!-- 900 is used by Leo to buy a certain package, 710 by Tempo. -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>710</exampleNumber>
        <nationalNumberPattern>
          (?:
            71|
            90
          )0
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Benin (BJ) -->
    <!-- http://www.itu.int/oth/T0202000017/en -->
    <territory id="BJ">
      <generalDesc>
        <nationalNumberPattern>[17]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1[24-8]|
            2[02-5]|
            3[126-8]|
            5[05]|
            6[06]|
            89
          )|
          7[0-5]\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[246-8]|
            3[68]|
            6[06]
          )|
          7[3-5]\d\d
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>12[02-5]</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[246-8]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>136</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3[68]|
            6[06]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- St. Barthélemy (BL) -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <territory id="BL">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d\d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4,6"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>
          18|
          3(?:
            00[0-79]|
            1[0-689]\d
          )|
          (?:
            118[02-9]|
            3[2469]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>
          18|
          3(?:
            00|
            1[0-689]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <!-- http://www.comstbarth.fr/urgences.asp -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>18</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bermuda (BM) -->
    <!-- http://www.itu.int/oth/T0202000018/en -->
    <territory id="BM">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>
          176|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Brunei (BN) -->
    <!-- http://www.itu.int/oth/T020200001F/en -->
    <territory id="BN">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>99[135]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>99[135]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>99[135]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bolivia (BO) -->
    <!-- http://www.itu.int/oth/T020200001A/en -->
    <!-- http://www.bolivia.com/Servicios/Plandenumeracion.pdf -->
    <territory id="BO">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[089]|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[089]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[089]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Caribbean Netherlands (BQ) -->
    <!-- http://www.itu.int/oth/T02020000F8/en -->
    <territory id="BQ">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            76
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Brazil (BR) -->
    <!-- http://en.wikipedia.org/wiki/%2B55#Public_utility -->
    <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=32 -->
    <!-- http://www.anatel.gov.br/Portal/exibirPortalPaginaEspecial.do?codItemCanal=746&codCanal=277 -->
    <territory id="BR">
      <generalDesc>
        <nationalNumberPattern>[1-69]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [02]|
              3(?:
                1[2-579]|
                2[13-9]|
                3[124-9]|
                4[1-3578]|
                5[1-468]|
                6[139]|
                8[149]|
                9[168]
              )|
              5[0-35-9]|
              6(?:
                0|
                1[0-35-8]?|
                2[0145]|
                3[0137]?|
                4[37-9]?|
                5[0-35]|
                6[016]?|
                7[137]?|
                8[5-8]|
                9[1359]
              )
            )|
            1[25-8]|
            2[357-9]|
            3[024-68]|
            4[12568]|
            5\d|
            6[0-8]|
            8[015]|
            9[0-47-9]
          )|
          2(?:
            7(?:
              330|
              878
            )|
            85959?
          )|
          (?:
            32|
            91
          )1|
          4(?:
            0404?|
            57|
            828
          )|
          55555|
          6(?:
            0\d{4}|
            10000
          )|
          (?:
            133|
            411
          )[12]
        </nationalNumberPattern>
      </shortCode>
      <!-- The plan says all numbers marked as SERVIÇOS PÚBLICOS DE EMERGÊNCIA are toll-free. The
           18X and 19X ranges seem to be allocated for these kinds of numbers based on the last
           numbering plan. -->
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            12|
            28|
            8[015]|
            9[0-47-9]
          )|
          4(?:
            57|
            82\d
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,5"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          102|
          273\d\d|
          321
        </nationalNumberPattern>
      </standardRate>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- For unsubscribing to SMS short code campaigns: 457 is Vivo, 4112 is Tim, 55555 is Oi,
           4040 is Claro. For example, see
           http://www.tim.com.br/sp/sobre-a-tim/regulatorio/mensagens-publicitarias. Note this
           also mentions 4111 as the TIM short-code to sign up.
           151 is listed here since it isn't available throughout the country; e.g. not in Rio
           Grande do Sul. -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>151</exampleNumber>
        <nationalNumberPattern>
          151|
          (?:
            278|
            555
          )\d\d|
          4(?:
            04\d\d?|
            11\d|
            57
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            28|
            9[023]
          )|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- 195 from https://www9.sabesp.com.br/agenciavirtual/ is limited to the state of São
           Paulo. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>116</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16|
            23|
            68|
            8[015]|
            9[147-9]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- Added short codes 28595, 285959 and 4828 after a report that it is used for SMS
           services. We can't find range-related information, despite emailing Anatel. -->
      <smsServices>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>321</exampleNumber>
        <nationalNumberPattern>
          285\d{2,3}|
          321|
          40404|
          (?:
            27[38]\d|
            482
          )\d|
          6(?:
            0\d|
            10
          )\d{3}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Bahamas (BS) -->
    <!-- http://www.itu.int/oth/T0202000010/en -->
    <territory id="BS">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            1[19]|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            1[19]|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[19]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Bhutan (BT) -->
    <!-- http://www.itu.int/oth/T0202000019/en -->
    <territory id="BT">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[0-6]|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.rbp.gov.bt/requestpolice.php -->
      <!-- http://www.jdwnrh.gov.bt/sfo2011/?page_id=51 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Botswana (BW) -->
    <!-- http://www.itu.int/oth/T020200001C/en -->
    <territory id="BW">
      <generalDesc>
        <nationalNumberPattern>
          [19]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[26]|
            3123
          )|
          9(?:
            1[14]|
            9[1-57-9]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            9[7-9]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>13100</exampleNumber>
        <nationalNumberPattern>131\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.gov.bw/en/Ministries%2D%2DAuthorities/Ministries/State-President/Botswana-Police-Service-/About-the-BPS/Toll-Free-Numbers/ -->
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1071.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            9[7-9]
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>13100</exampleNumber>
        <nationalNumberPattern>131\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Belarus (BY) -->
    <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
    <territory id="BY">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <!-- Wikipedia notes not all numbers are active everywhere. -->
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-79]|
            1[246]|
            35|
            5[1-35]|
            6[89]|
            7[5-7]|
            8[58]|
            9[1-7]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Belize (BZ) -->
    <!-- http://www.itu.int/oth/T0202000016/en -->
    <territory id="BZ">
      <generalDesc>
        <nationalNumberPattern>9\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>90</exampleNumber>
        <nationalNumberPattern>
          9(?:
            0|
            11|
            22|
            66|
            77|
            9[09]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>90</exampleNumber>
        <nationalNumberPattern>
          9(?:
            0|
            11|
            22|
            66|
            77|
            9[09]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>90</exampleNumber>
        <nationalNumberPattern>
          9(?:
            0|
            11|
            90
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>922</exampleNumber>
        <nationalNumberPattern>
          9(?:
            22|
            66|
            77|
            99
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Canada (CA) -->
    <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
    <!-- Excluding local normal numbers from the general description (and indeed from being possible
         short numbers, since they definitely are not). -->
    <territory id="CA">
      <generalDesc>
        <nationalNumberPattern>
          [1-9]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          [1-35-9]\d{4,5}|
          112|
          [2-8]11|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          988|
          [29]11
        </nationalNumberPattern>
      </tollFree>
      <!-- https://en.wikipedia.org/wiki/6-1-1 says it is only partially supported, similar to
           articles on these other numbers. 7-1-1 is required to be supported by all carriers in
           the US, but in Canada it is up to individual communities it seems. -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>[235-7]11</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- http://www.txt.ca/en/shortcode-search/ -->
      <smsServices>
        <possibleLengths national="5,6"/>
        <exampleNumber>10000</exampleNumber>
        <nationalNumberPattern>[1-35-9]\d{4,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cocos (Keeling) Islands (CC) -->
    <territory id="CC">
      <generalDesc>
        <nationalNumberPattern>[01]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </tollFree>
      <!-- We assume this is the same as for Australia, since they have the same country code and
           share their police force, and no better information can be found. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Congo - Kinshasa (CD) -->
    <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=47&pg_size=50 -->
    <territory id="CD">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[348]|
            23|
            77|
            88
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[348]|
            77|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- No national emergency numbers were located for Congo. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[348]|
            77|
            88
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>123</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Central African Republic (CF) -->
    <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=37&pg_size=50 -->
    <territory id="CF">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[478]|
            220
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            22\d
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            220
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>114</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Congo - Brazzaville (CG) -->
    <territory id="CG">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>11[126-8]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>11[178]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>11[78]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[26]</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Switzerland (CH) -->
    <!-- https://www.bakom.admin.ch/en/numbering-and-telephony -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Switzerland#Short_numbers -->
    <!-- http://csi.sunrise.ch/smartzone/_privat -->
    <territory id="CH">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- According to the "E.164 national numbering plan of Switzerland", some short numbers
           may be accessible from abroad. However, it does not specify which ones. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[78]\d\d|
            1(?:
              [278]|
              45|
              6(?:
                000|
                111
              )
            )|
            4(?:
              [03-57]|
              1[0145]
            )|
            6(?:
              00|
              [1-46]
            )|
            8(?:
              02|
              1[189]|
              [25]0|
              7|
              8[08]|
              99
            )
          )|
          [2-9]\d{2,4}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [278]|
              6\d{3}
            )|
            4[47]
          )|
          5200
        </nationalNumberPattern>
      </tollFree>
      <!-- These are priced by the mobile companies at just under the rate they charge for calls
           to fixed-line and mobile phones, so we consider them standard rate. 143 is actually
           free for Sunrise. -->
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>140</exampleNumber>
        <nationalNumberPattern>
          1(?:
            4[035]|
            6[1-46]
          )|
          1(?:
            41|
            60
          )\d
        </nationalNumberPattern>
      </standardRate>
      <!-- http://www.zouk88.com/switzerland/index.htm -->
      <!-- http://aonebill.com/coverage&tariffs#Switzerland -->
      <!-- Swisscom and Sunrise refer to 18XY as being premium rate. 1145 is priced similarly. -->
      <premiumRate>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>543</exampleNumber>
        <nationalNumberPattern>
          1(?:
            14|
            8[0-2589]
          )\d|
          543|
          83111
        </nationalNumberPattern>
      </premiumRate>
      <!-- 5200, 535 are both used by Orange for SMSs. -->
      <carrierSpecific>
        <possibleLengths national="3,4"/>
        <exampleNumber>535</exampleNumber>
        <nationalNumberPattern>
          5(?:
            200|
            35
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>140</exampleNumber>
        <nationalNumberPattern>
          14[0357]|
          1(?:
            161\d|
            41
          )\d
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>200</exampleNumber>
        <nationalNumberPattern>[2-9]\d{2,4}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Côte d’Ivoire (CI) -->
    <!-- http://www.itu.int/oth/T0202000031/en -->
    <territory id="CI">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[01]|
            [78]0
          )|
          4443
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[01]|
            [78]0
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4440</exampleNumber>
        <nationalNumberPattern>444\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[01]|
            [78]0
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4440</exampleNumber>
        <nationalNumberPattern>444\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cook Islands (CK) -->
    <!-- http://www.itu.int/oth/T020200002F/en -->
    <territory id="CK">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>996</exampleNumber>
        <nationalNumberPattern>99[689]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>996</exampleNumber>
        <nationalNumberPattern>99[689]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
           sites agree on the following numbers. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>996</exampleNumber>
        <nationalNumberPattern>99[689]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Chile (CL) -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Chile -->
    <!-- http://www.clarochile.cl/wps/portal/cl/pc/personas/movil/sms-premium -->
    <territory id="CL">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            21[13]|
            3(?:
              13|
              [348]0|
              5[01]
            )|
            4(?:
              0[02-6]|
              17|
              [379]
            )|
            818|
            919
          )|
          2(?:
            0(?:
              01|
              122
            )|
            22[47]|
            323|
            777|
            882
          )|
          3(?:
            0(?:
              51|
              99
            )|
            132|
            3(?:
              29|
              [37]7
            )|
            665
          )|
          43656|
          5(?:
            (?:
              00|
              415
            )4|
            5(?:
              66|
              77
            )|
            995
          )|
          6(?:
            131|
            222|
            366|
            699
          )|
          7878|
          8(?:
            011|
            11[28]|
            482|
            889
          )|
          9(?:
            01|
            1
          )1|
          13\d|
          4(?:
            [13]42|
            243|
            4(?:
              02|
              15|
              77
            )|
            554
          )|
          (?:
            1(?:
              [05]6|
              98
            )|
            339|
            6(?:
              07|
              [35]
            )0|
            9(?:
              [12]0|
              33
            )
          )0
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/ under "Mensajería
           Ilimitada". -->
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>131</exampleNumber>
        <nationalNumberPattern>
          1(?:
            213|
            3[1-3]
          )|
          434\d|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/#04-prepago-multimedia -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>2000</exampleNumber>
        <nationalNumberPattern>
          (?:
            200|
            333
          )\d
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>1060</exampleNumber>
        <nationalNumberPattern>
          1(?:
            211|
            3(?:
              13|
              [348]0|
              5[01]
            )
          )|
          (?:
            1(?:
              [05]6|
              [48]1|
              9[18]
            )|
            2(?:
              01\d|
              [23]2|
              77|
              88
            )|
            3(?:
              0[59]|
              13|
              3[279]|
              66
            )|
            4(?:
              [12]4|
              36\d|
              4[017]|
              55
            )|
            5(?:
              00|
              41\d|
              5[67]|
              99
            )|
            6(?:
              07\d|
              13|
              22|
              3[06]|
              50|
              69
            )|
            787|
            8(?:
              [01]1|
              [48]8
            )|
            9(?:
              01|
              [12]0|
              33
            )
          )\d
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://www.13.cl/concursos -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>131</exampleNumber>
        <nationalNumberPattern>
          13[1-3]|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- http://es.wikipedia.org/wiki/Anexo:Teléfonos_de_emergencias -->
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            3[04-9]|
            4(?:
              0\d|
              [379]
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>1060</exampleNumber>
        <nationalNumberPattern>
          13(?:
            13|
            [348]0|
            5[01]
          )|
          (?:
            1(?:
              [05]6|
              [28]1|
              4[01]|
              9[18]
            )|
            2(?:
              0(?:
                0|
                1\d
              )|
              [23]2|
              77|
              88
            )|
            3(?:
              0[59]|
              13|
              3[2379]|
              66
            )|
            436\d|
            5(?:
              00|
              41\d|
              5[67]|
              99
            )|
            6(?:
              07\d|
              13|
              22|
              3[06]|
              50|
              69
            )|
            787|
            8(?:
              [01]1|
              [48]8
            )|
            9(?:
              01|
              [12]0|
              33
            )
          )\d|
          4(?:
            [1-3]4|
            4[017]|
            55
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cameroon (CM) -->
    <!-- http://www.itu.int/oth/T0202000024/en -->
    <territory id="CM">
      <generalDesc>
        <nationalNumberPattern>[18]\d{1,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>13</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[37]|
            [37]
          )|
          8711
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>13</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[37]|
            [37]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>8710</exampleNumber>
        <nationalNumberPattern>871\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/cameroun_12221/index.html -->
      <!-- Numbers must be prefixed with a 1 when dialled from a mobile. -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>13</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[37]|
            [37]
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>8710</exampleNumber>
        <nationalNumberPattern>871\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- China (CN) -->
    <!-- http://www.itu.int/oth/T020200002B/en -->
    <territory id="CN">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- 100xx numbers are mainly used for carrier services. They can be dialed nationwide and
           are always routed to the local provider.  Note they can also be used with area codes
           when one specifically wants to reach an operator in a different region. That case is
           more like fixed-line and is covered under the fixed-line pattern in
           PhoneNumberMetadata.xml. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1[0249]|
            2395|
            6[08]
          )|
          9[56]\d{3,4}|
          12[023]|
          1(?:
            0(?:
              [0-26]\d|
              8
            )|
            21\d
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,5"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[09]|
            2(?:
              [02]|
              1\d\d|
              395
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- 100xx numbers are free if called from a phone by the same carrier, or charged at local
           rate if called from a phone by a different carrier.
           95xxx(x) numbers are covered by the ITU doc, but the following doc contains more info:
           http://baike.baidu.com/view/3269670.htm. They can be dialed nationwide and are always
           routed to the local provider. Note they can also be used with area codes when one
           specifically wants to reach an operator in a different region. That case is more like
           fixed-line and is covered under the fixed-line pattern in PhoneNumberMetadata.xml. -->
      <standardRate>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [0-26]\d|
              8
            )\d|
            1[24]|
            23|
            6[08]
          )|
          9[56]\d{3,4}|
          100
        </nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[09]|
            20
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,5"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          12(?:
            1\d\d|
            2|
            395
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>12110</exampleNumber>
        <nationalNumberPattern>12110</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Colombia (CO) -->
    <!-- Information primarily obtained from:
           http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia
         and:
           http://en.wikipedia.org/wiki/Emergency_telephone_number
         The "civil defense" line (144) was found in:
           http://www.icsu.unal.edu.co/ciudad.html

         The Wikipedia page states:
           "More specialized three-digit numbers are available; check the local Yellow Pages for
            more information". See: http://sites.paginasamarillas.com/directorio/colombia.html

         For examples of local Yellow Pages information see:
         * http://images.paginasamarillas.com/flipping/colombia/bogota/Book/index.html#/20/
         * http://images.paginasamarillas.com/flipping/colombia/amazonia/index.html#/2/
         * http://images.paginasamarillas.com/flipping/colombia/cali/index.html#/18/

         Currently not all short numbers from all local Yellow Pages have been included and we don't
         know the cost for any of them. Current local short numbers are (* = urgent services):
         Child Helpline:      106 *
         Energy (Claims):     115 (the description for this is not very clear)
         Water pipes (leaks): 116 *
         Health Secretary     125
         Hospital (Urgent)    137 *
         Cooperation Network: 146
         Gaula (Military)     147 *
         Dept. of Security:   153
         Gas emergencies:     164 *
         Information:         195 -->
    <territory id="CO">
      <generalDesc>
        <nationalNumberPattern>
          [1-589]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>106</exampleNumber>
        <nationalNumberPattern>
          1(?:
            06|
            1[2-9]|
            2[35-7]|
            3[27]|
            4[467]|
            5[36]|
            6[4-7]|
            95
          )|
          (?:
            29002|
            39003
          )9|
          40404|
          5930\d\d|
          85432|
          (?:
            [2359][57]|
            8(?:
              7|
              9\d
            )
          )\d{3}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[29]|
            23|
            32|
            56
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- 85432 is used for customer complaints - found on mobile websites - and will go to your
           carrier specifically. -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>
          (?:
            40|
            85
          )4\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- Police, medical and fire plus general emergency numbers (112,123). -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[29]|
            23|
            32|
            56
          )
        </nationalNumberPattern>
      </emergency>
      <!-- Traffic accidents, civil defense, GAULA and urgent local short numbers from above. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>106</exampleNumber>
        <nationalNumberPattern>
          1(?:
            06|
            1[467]|
            [23]7|
            4[47]|
            6[4-6]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>
          (?:
            40|
            85
          )4\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Costa Rica (CR) -->
    <!-- http://www.itu.int/oth/T0202000030/en -->
    <territory id="CR">
      <generalDesc>
        <nationalNumberPattern>[1359]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <!-- This pattern excludes 4-digit SMS content numbers for now. -->
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              00|
              15|
              2[2-4679]
            )|
            1(?:
              1[0-35-9]|
              2|
              37|
              [46]6|
              7[57]|
              8[79]|
              9[0-379]
            )|
            2(?:
              00|
              [12]2|
              34|
              55
            )|
            3(?:
              21|
              33
            )|
            4(?:
              0[06]|
              1[4-6]
            )|
            5(?:
              15|
              5[15]
            )|
            693|
            7(?:
              00|
              1[7-9]|
              2[02]|
              [67]7
            )|
            975
          )|
          3855|
          5(?:
            0(?:
              30|
              49
            )|
            510
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>3850</exampleNumber>
        <nationalNumberPattern>
          (?:
            385|
            5(?:
              0[34]|
              51
            )
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cuba (CU) -->
    <!-- www.itu.int/oth/T0202000033/en -->
    <territory id="CU">
      <generalDesc>
        <nationalNumberPattern>
          [12]\d\d(?:
            \d{3,4}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6,7"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[4-7]|
            1(?:
              6111|
              8
            )|
            40
          )|
          2045252
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6,7"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          10[4-7]|
          (?:
            116|
            204\d
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>10[4-6]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6,7"/>
        <exampleNumber>107</exampleNumber>
        <nationalNumberPattern>
          107|
          (?:
            116|
            204\d
          )\d{3}
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Cape Verde (CV) -->
    <!-- http://www.itu.int/oth/T0202000026/en -->
    <territory id="CV">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>130</exampleNumber>
        <nationalNumberPattern>13[0-2]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>130</exampleNumber>
        <nationalNumberPattern>13[0-2]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.capeverde.com/travel-tips/safety.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>130</exampleNumber>
        <nationalNumberPattern>13[0-2]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Curaçao (CW) -->
    <!-- http://www.itu.int/oth/T02020000F5/en -->
    <territory id="CW">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            76
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Christmas Island (CX) -->
    <territory id="CX">
      <generalDesc>
        <nationalNumberPattern>[01]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </tollFree>
      <!-- We assume this is the same as for Australia, since they have the same country code and
           share their police force, and no better information can be found. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Cyprus (CY) -->
    <!-- http://www.itu.int/oth/T0202000034/en -->
    <territory id="CY">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                111
              )
            )|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}
            )|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Czechia (CZ) -->
    <!-- http://www.itu.int/oth/T0202000035/en -->
    <!-- http://en.wikipedia.org/wiki/%2B420 -->
    <territory id="CZ">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              8\d
            )|
            (?:
              2|
              3\d
            )\d{2,3}|
            5\d|
            99
          )|
          1(?:
            16|
            4
          )\d{3}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  11|
                  23
                )
              )
            )|
            5\d
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5\d
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Germany (DE) -->
    <!-- http://www.itu.int/oth/T0202000051/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
    <territory id="DE">
      <generalDesc>
        <nationalNumberPattern>[1-46-8]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- 118xx short numbers are used for directory services and 1180xx are used for call
           connect services. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [025]|
            6(?:
              00[06]|
              1(?:
                1[167]|
                23
              )
            )|
            800\d
          )|
          22(?:
            044|
            5(?:
              43|
              80
            )|
            7700|
            922
          )|
          33(?:
            11|
            3[34]
          )|
          44844|
          600\d\d|
          7(?:
            0\d{3}|
            464
          )|
          80808|
          118\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [02]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>3310</exampleNumber>
        <nationalNumberPattern>
          (?:
            33[13]|
            746
          )\d|
          (?:
            22(?:
              [059]|
              7\d
            )|
            (?:
              44|
              80
            )8|
            600|
            70\d
          )\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>3330</exampleNumber>
        <nationalNumberPattern>
          (?:
            333|
            746
          )\d|
          (?:
            22(?:
              [059]|
              7\d
            )|
            (?:
              44|
              80
            )8|
            600|
            70\d
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Djibouti (DJ) -->
    <!-- http://www.itu.int/oth/T020200003A/en -->
    <territory id="DJ">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Denmark (DK) -->
    <!-- https://www.klimadatastyrelsen.dk/digital-infrastruktur/telefoni/numre/den-samlede-danske-nummerplan -->
    <!-- https://nummerregister.sdfi.dk -->
    <territory id="DK">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [248]|
              6(?:
                00[06]|
                111
              )
            )|
            619[0-2]|
            8(?:
              01|
              1[0238]|
              28|
              30|
              5[13]|
              8[18]
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [24]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[24]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Dominica (DM) -->
    <!-- http://www.itu.int/oth/T020200003B/en -->
    <territory id="DM">
      <generalDesc>
        <nationalNumberPattern>[39]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://barbados.usembassy.gov/emergency-dominica.html -->
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1102.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Dominican Republic (DO) -->
    <!-- http://www.itu.int/oth/T020200003C/en -->
    <territory id="DO">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Algeria (DZ) -->
    <!-- http://www.itu.int/oth/T0202000003/en -->
    <!-- www.arpt.dz -->
    <territory id="DZ">
      <generalDesc>
        <nationalNumberPattern>[17]\d{1,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>14</exampleNumber>
        <nationalNumberPattern>
          1(?:
            055|
            12|
            [47]|
            548
          )|
          730
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>14</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [47]|
            54\d
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>730</exampleNumber>
        <nationalNumberPattern>730</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>14</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [47]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4"/>
        <exampleNumber>1050</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            54
          )\d
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>730</exampleNumber>
        <nationalNumberPattern>730</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ecuador (EC) -->
    <!-- http://en.wikipedia.org/wiki/+593 -->
    <!-- http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&view=category&layout=blog&id=52&Itemid=153 -->
    <!-- http://www.itu.int/oth/T020200003D/en -->
    <territory id="EC">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Estonia (EE) -->
    <!-- http://www.itu.int/oth/T0202000043/en -->
    <territory id="EE">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [02-579]|
              6(?:
                000|
                111
              )|
              8(?:
                [09]\d|
                [1-8]
              )
            )|
            2[36-9]|
            3[7-9]|
            4[05-7]|
            5[6-8]|
            6[05]|
            7[3-6]|
            8[02-7]|
            9[3-9]
          )|
          1(?:
            2[0-245]|
            3[0-6]|
            4[1-489]|
            5[0-59]|
            6[1-46-9]|
            7[0-27-9]|
            8[189]|
            9[0-2]
          )\d\d?
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [02]|
              6\d{3}
            )|
            2(?:
              05|
              28
            )|
            3(?:
              014|
              3(?:
                21|
                5\d?
              )|
              660
            )|
            492|
            5(?:
              1[03]|
              410|
              501
            )|
            6(?:
              112|
              333|
              644
            )|
            7(?:
              012|
              127|
              89
            )|
            8(?:
              10|
              8[57]
            )|
            9(?:
              0[134]|
              14
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18(?:
              00|
              [12458]\d?
            )|
            2(?:
              0(?:
                [02-46-8]\d?|
                1[0-36]
              )|
              1(?:
                [0-4]\d?|
                6[06]
              )|
              2(?:
                [0-4]\d?|
                5[25]
              )|
              [367]|
              4(?:
                0[04]|
                [12]\d?|
                4[24]|
                54
              )|
              55[12457]
            )|
            3(?:
              0(?:
                [02]\d?|
                1[13578]|
                3[356]
              )|
              1[1347]|
              2[02-5]|
              3(?:
                [01347]\d?|
                2[023]|
                88
              )|
              4(?:
                [35]\d?|
                4[34]
              )|
              5(?:
                3[134]|
                5[035]
              )|
              666
            )|
            4(?:
              2(?:
                00|
                4\d?
              )|
              4(?:
                0[01358]|
                1[024]|
                50|
                7\d?
              )|
              900
            )|
            5(?:
              0[0-35]|
              1(?:
                [1267]\d?|
                5[0-7]|
                82
              )|
              2(?:
                [014-6]\d?|
                22
              )|
              330|
              4(?:
                [35]\d?|
                44
              )|
              5(?:
                00|
                [1-69]\d?
              )|
              9(?:
                [159]\d?|
                [38]0|
                77
              )
            )|
            6(?:
              1(?:
                00|
                1[19]|
                [35-9]\d?
              )|
              2(?:
                2[26]|
                [68]\d?
              )|
              3(?:
                22|
                36|
                6[36]
              )|
              5|
              6(?:
                [0-359]\d?|
                6[0-26]
              )|
              7(?:
                00|
                55|
                7\d?|
                8[89]
              )|
              9(?:
                00|
                1\d?|
                69
              )
            )|
            7(?:
              0(?:
                [023]\d?|
                1[0578]
              )|
              1(?:
                00|
                2[034]|
                [4-9]\d?
              )|
              2(?:
                [07]\d?|
                20|
                44
              )|
              7(?:
                [0-57]\d?|
                9[79]
              )|
              8(?:
                0[08]|
                2\d?|
                8[0178]
              )|
              9(?:
                00|
                97
              )
            )|
            8(?:
              1[127]|
              8[1268]|
              9[269]
            )|
            9(?:
              0(?:
                [02]\d?|
                69|
                9[0269]
              )|
              1[1-3689]|
              21
            )
          )
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>126</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18[1258]|
            2(?:
              0(?:
                1[036]|
                [46]\d?
              )|
              166|
              21|
              4(?:
                0[04]|
                1\d?|
                5[47]
              )|
              [67]
            )|
            3(?:
              0(?:
                1[13-578]|
                2\d?|
                3[56]
              )|
              1[15]|
              2[045]|
              3(?:
                [13]\d?|
                2[13]
              )|
              43|
              5(?:
                00|
                3[34]|
                53
              )
            )|
            44(?:
              0[0135]|
              14|
              50|
              7\d?
            )|
            5(?:
              05|
              1(?:
                [12]\d?|
                5[1246]|
                8[12]
              )|
              2(?:
                [01]\d?|
                22
              )|
              3(?:
                00|
                3[03]
              )|
              4(?:
                15|
                5\d?
              )|
              500|
              9(?:
                5\d?|
                77|
                80
              )
            )|
            6(?:
              1[35-8]|
              226|
              3(?:
                22|
                3[36]|
                66
              )|
              644|
              7(?:
                00|
                7\d?|
                89
              )|
              9(?:
                00|
                69
              )
            )|
            7(?:
              01[258]|
              1(?:
                00|
                [15]\d?
              )|
              2(?:
                44|
                7\d?
              )|
              8(?:
                00|
                87|
                9\d?
              )
            )|
            8(?:
              1[128]|
              8[56]|
              9(?:
                [26]\d?|
                77
              )
            )|
            90(?:
              2\d?|
              69|
              92
            )
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Egypt (EG) -->
    <!-- http://www.itu.int/oth/T020200003E/en -->
    <territory id="EG">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2[23]|
            [679]\d{3}|
            80
          )|
          34400
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2[23]|
            80
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>34400</exampleNumber>
        <nationalNumberPattern>344\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2[23]|
            80
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>34400</exampleNumber>
        <nationalNumberPattern>344\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Western Sahara (EH) -->
    <!-- http://www.itu.int/oth/T0202000090/en -->
    <territory id="EH">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Eritrea (ER) -->
    <territory id="ER">
      <generalDesc>
        <nationalNumberPattern>
          [12]\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[2-6]|
            24422
          )|
          20(?:
            1(?:
              606|
              917
            )|
            2914
          )|
          (?:
            1277|
            2020
          )99
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[2-46]|
          (?:
            12[47]|
            20[12]
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[2-46]|
            24422
          )|
          20(?:
            1(?:
              606|
              917
            )|
            2914
          )|
          (?:
            1277|
            2020
          )99
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>115</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Spain (ES) -->
    <!-- https://avance.digital.gob.es/es-ES/Servicios/Numeracion/Documents/Presentation_NNP_Spain.pdf -->
    <!-- http://www.minetur.gob.es/telecomunicaciones/es-ES/Servicios/Numeracion/Documents/2012_09_10_Presentation_E164_Numbering_plan_Spain.pdf -->
    <!-- http://www.minetur.gob.es/telecomunicaciones/es-ES/Servicios/Numeracion/Documents/Descripcion_plan_20101216.pdf -->
    <!-- http://www.minetur.gob.es/telecomunicaciones/es-ES/Servicios/Numeracion/Documents/13-01-11_Gu%C3%ADa_Numeracion.pdf -->
    <territory id="ES">
      <generalDesc>
        <nationalNumberPattern>[0-379]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- 133, 134 and 177 aren't in the numbering plan but on vodafone's homepage as short
           numbers. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>010</exampleNumber>
        <nationalNumberPattern>
          0(?:
            1[0-267]|
            2[0148]|
            6[0-257]|
            8[058]|
            9[12]
          )|
          1(?:
            0[03-57]\d{1,3}|
            1(?:
              2|
              6(?:
                000|
                111
              )|
              8\d\d
            )|
            2\d{1,4}|
            [3-9]\d\d
          )|
          2(?:
            2\d{1,4}|
            80\d\d
          )|
          90(?:
            5[124578]|
            7
          )|
          1(?:
            3[34]|
            77
          )|
          (?:
            2[01]\d|
            [79]9[57]
          )\d{3}|
          [23][357]\d{3}
        </nationalNumberPattern>
      </shortCode>
      <!-- Section 5.3 and 6.2 of Guia Numeracion (link above) -->
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>016</exampleNumber>
        <nationalNumberPattern>
          0(?:
            16|
            20|
            6[57]|
            8[58]
          )|
          1(?:
            006|
            12|
            [3-7]\d\d
          )|
          (?:
            116|
            20\d
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <!-- Section 6.2 of Guia Numeracion (link above).
           Section 2 and 3 specify that the standard rate from mobile phones is 18-20 cents/min,
           using this as a guideline the numbers having a cost in the doc have been placed either
           as standard or premium rate. -->
      <standardRate>
        <possibleLengths national="3,6"/>
        <exampleNumber>010</exampleNumber>
        <nationalNumberPattern>
          0(?:
            1[0-27]|
            2[148]|
            6[0-2]|
            80|
            9[12]
          )|
          21\d{4}
        </nationalNumberPattern>
      </standardRate>
      <!-- Section 5.2 and 6.3 of Guia Numeracion (link above) -->
      <premiumRate>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>
          [12]2\d{1,4}|
          90(?:
            5\d|
            7
          )|
          (?:
            118|
            2(?:
              [357]\d|
              80
            )|
            3[357]\d
          )\d\d|
          [79]9[57]\d{3}
        </nationalNumberPattern>
      </premiumRate>
      <!-- Network internal services in the numbering plan are actually carrier specific services.
           The maximum length is specified as 'any' but here they're limited to 6 since that's
           the maximum of any other short number for Spain. -->
      <carrierSpecific>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3[34]|
            77
          )|
          [12]2\d{1,4}
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>085</exampleNumber>
        <nationalNumberPattern>
          08[58]|
          112
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>016</exampleNumber>
        <nationalNumberPattern>
          0(?:
            16|
            [69][12]|
            80
          )|
          1(?:
            006|
            16\d{3}
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- Section 6 of Guia Numeracion (link above) -->
      <smsServices>
        <possibleLengths national="5,6"/>
        <exampleNumber>22000</exampleNumber>
        <nationalNumberPattern>
          (?:
            2[0-2]\d|
            3[357]|
            [79]9[57]
          )\d{3}|
          2(?:
            [2357]\d|
            80
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ethiopia (ET) -->
    <!-- http://www.itu.int/oth/T0202000044/en -->
    <territory id="ET">
      <generalDesc>
        <nationalNumberPattern>9\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>91</exampleNumber>
        <nationalNumberPattern>
          9(?:
            07|
            11?|
            2|
            39?|
            45|
            9[17]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>91</exampleNumber>
        <nationalNumberPattern>
          9(?:
            07|
            11?|
            2|
            39?|
            9[17]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.addisculturetourism.gov.et/en/component/k2/itemlist/category/64.html?layout=category -->
      <!-- http://www.netglobers.com/africa/ethiopia-emergency-numbers-in-ethiopia-.html -->
      <!-- http://www.addisababacity.gov.et/index.php?option=com_content&view=article&id=139&Itemid=136 -->
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <!-- The 91, 92, and 93 numbers are for the city of Addis Ababa. -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>91</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11?|
            2|
            39?|
            9[17]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>907</exampleNumber>
        <nationalNumberPattern>
          9(?:
            07|
            45
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Finland (FI) -->
    <!-- https://www.viestintavirasto.fi/internetpuhelin/puhelinverkonnumerointi.html -->
    <territory id="FI">
      <generalDesc>
        <nationalNumberPattern>
          [17]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- Most service numbers are included under UAN in PhoneNumberMetadata.xml (and also in
           the no-international-dialling block) but prefixes 75[12] are always short and used for
           directory services, hence we consider them to be short numbers. -->
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6(?:
              00[06]|
              1(?:
                1[17]|
                23
              )
            )
          )|
          (?:
            1[2-8]\d|
            75[12]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>12000</exampleNumber>
        <nationalNumberPattern>1[2-8]\d{3}</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Fiji (FJ) -->
    <!-- http://www.itu.int/oth/T0202000048/en -->
    <!-- www.tfl.com.fj -->
    <territory id="FJ">
      <generalDesc>
        <nationalNumberPattern>
          [0-579]\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- From the Emergency Numbers page on the Telecom Fiji website:
           http://www.tfl.com.fj/index.cfm?go=tfl.support&id=B5B4EDF6-05EC-069A-38162D21274B90BC&category=support -->
      <shortCode>
        <possibleLengths national="2,3,5"/>
        <exampleNumber>22</exampleNumber>
        <nationalNumberPattern>
          0(?:
            1[34]|
            8[1-4]
          )|
          1(?:
            0[1-3]|
            [25]9
          )|
          2[289]|
          30|
          40404|
          91[137]|
          [45]4|
          75
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[17]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[17]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Falkland Islands (Islas Malvinas) (FK) -->
    <!-- http://www.itu.int/oth/T0202000046/en -->
    <territory id="FK">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <!-- Service numbers use 3 digit short codes -->
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1\d\d|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Micronesia (FM) -->
    <!-- http://www.itu.int/oth/T020200008B/en -->
    <territory id="FM">
      <generalDesc>
        <nationalNumberPattern>
          [39]\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          (?:
            32022|
            91
          )1
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          320\d{3}|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
      <emergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          (?:
            32022|
            91
          )1
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Faroe Islands (FO) -->
    <!-- http://www.itu.int/oth/T0202000047/en -->
    <territory id="FO">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <!-- Includes special numbers, special services and universal services. -->
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[248]|
            819
          )|
          1(?:
            4[124]|
            71|
            8[7-9]
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[24]|
            81\d
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[24]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4"/>
        <exampleNumber>1810</exampleNumber>
        <nationalNumberPattern>181\d</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- France (FR) -->
    <!-- http://www.arcep.fr/index.php?id=8146 -->
    <!-- http://fr.wikipedia.org/wiki/Num%C3%A9ro_d'appel_d'urgence -->
    <territory id="FR">
      <generalDesc>
        <nationalNumberPattern>[1-8]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <!-- 110 is a number used for different campaigns such as Sidaction for a limited time only. -->
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0\d\d|
            1(?:
              [02459]|
              6(?:
                000|
                111
              )|
              8\d{3}
            )|
            [578]|
            9[167]
          )|
          2(?:
            0(?:
              00|
              2
            )0|
            24
          )|
          [3-8]\d{4}|
          3\d{3}|
          6(?:
            1[14]|
            34
          )|
          7(?:
            0[06]|
            22|
            40
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.appel118.fr/detail.php#histo -->
      <!-- Includes some "urgent services" numbers, plus short-codes designated as being free of
           cost and European harmonised numbers (116XXX). -->
      <!-- 740 is listed as carrier-specific and toll-free on contact.orange.fr. -->
      <tollFree>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[02459]|
            [578]|
            9[167]
          )|
          224|
          (?:
            3370|
            74
          )0|
          (?:
            116\d|
            3[01]
          )\d\d
        </nationalNumberPattern>
      </tollFree>
      <!-- 3646 is listed as being the same as a local call on www.ameli.fr. -->
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>611</exampleNumber>
        <nationalNumberPattern>
          202\d|
          6(?:
            1[14]|
            34
          )|
          70[06]
        </nationalNumberPattern>
      </standardRate>
      <!-- SMS Services [4-8]\d{4} vary in price from 0.05 euro to 4.50 euro per SMS, based on
           prefix - we consider these all premium rate for now. All 118 XYZ numbers are considered
           here as it is given "libre" which does not mean zero cost instead it is up to the
           provider http://www.telecom-infoconso.fr/les-numeros-08-et-les-numeros-courts/ -->
      <premiumRate>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>1000</exampleNumber>
        <nationalNumberPattern>
          (?:
            1(?:
              0|
              18\d
            )|
            366|
            [4-8]\d\d
          )\d\d|
          3[2-9]\d\d
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://www.appel118.fr/detail.php lists 118777 as only being accessible from SFR. 224
           is an Orange-only service. -->
      <carrierSpecific>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>224</exampleNumber>
        <nationalNumberPattern>
          118777|
          224|
          6(?:
            1[14]|
            34
          )|
          7(?:
            0[06]|
            22|
            40
          )|
          20(?:
            0\d|
            2
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [459]|
              6\d{3}
            )|
            9[167]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://clients.txtnation.com/entries/22523777-France-Premium-SMS-Short-Code-Regulations -->
      <smsServices>
        <possibleLengths national="3,5"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          114|
          [3-8]\d{4}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Gabon (GA) -->
    <!-- http://www.itu.int/oth/T020200004E/en -->
    <!-- www.arcep.ga -->
    <territory id="GA">
      <generalDesc>
        <nationalNumberPattern>
          1\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3\d\d|
            730|
            8
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>
          18|
          1(?:
            3\d|
            73
          )\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,4"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3\d\d|
            730|
            8
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- United Kingdom (GB) -->
    <territory id="GB">
      <generalDesc>
        <nationalNumberPattern>[1-46-9]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[015]|
            1(?:
              [129]|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d{3}
            )|
            2(?:
              [1-3]|
              50
            )|
            33|
            4(?:
              1|
              7\d
            )|
            571|
            7(?:
              0\d|
              [56]0
            )|
            800\d|
            9[15]
          )|
          2(?:
            0202|
            1300|
            2(?:
              02|
              11
            )|
            3(?:
              02|
              336|
              45
            )|
            4(?:
              25|
              8
            )
          )|
          3[13]3|
          4(?:
            0[02]|
            35[01]|
            44[45]|
            5\d
          )|
          (?:
            [68]\d|
            7[089]
          )\d{3}|
          15\d|
          2[02]2|
          650|
          789|
          9(?:
            01|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1(?:
              [29]|
              6\d{3}
            )|
            7[56]\d|
            8000
          )|
          2(?:
            20\d|
            48
          )|
          4444|
          999
        </nationalNumberPattern>
      </tollFree>
      <!-- 1250: White Mobile balance check. -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>202</exampleNumber>
        <nationalNumberPattern>
          1(?:
            (?:
              25|
              7[56]
            )\d|
            571
          )|
          2(?:
            02(?:
              \d{2}
            )?|
            [13]3\d\d|
            48
          )|
          4444|
          901
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            01|
            1(?:
              6\d{3}|
              9
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- http://www.short-codes.com/codes/browse/70000-70999/100_1 says that the service is not
           available as voice for any of these prefixes for at least some carriers; for carriers
           where it is listed as possible it isn't actually activated for any short-code at this
           time. This is the same for the 78, 79, 80 and 81 prefixes. -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>1250</exampleNumber>
        <nationalNumberPattern>
          (?:
            125|
            2(?:
              020|
              13\d
            )|
            (?:
              7[089]|
              8[01]
            )\d\d
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Grenada (GD) -->
    <!-- http://www.itu.int/oth/T0202000057/en -->
    <territory id="GD">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>
          176|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Georgia (GE) -->
    <!-- http://www.itu.int/oth/T0202000050/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
    <territory id="GE">
      <generalDesc>
        <nationalNumberPattern>
          [014]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>011</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11|
            33
          )|
          11[1-3]|
          40404|
          [01]22
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>011</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11|
            33
          )|
          11[1-3]|
          [01]22
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- According to Wikipedia, 011, 022 and 033 will be replaced by 111, 122, 113 and 114 in
           2011. We are not sure if that has happened, so we support both versions for now. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>011</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11|
            33
          )|
          11[1-3]|
          [01]22
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- French Guiana (GF) -->
    <!-- http://www.itu.int/oth/T020200004C/en -->
    <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION -->
    <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf -->
    <territory id="GF">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d\d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          300[0-79]|
          (?:
            118[02-9]\d|
            3(?:
              0[1-9]|
              1[0-689]|
              [2469]\d
            )
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3(?:
            0\d|
            1[0-689]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guernsey (GG) -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
    <territory id="GG">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- Taken from numbers listed explicitly as Public Telephone Network Numbers in
           http://stakeholders.ofcom.org.uk/binaries/telecoms/numbering/numplan201210.pdf -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[12]|
            23|
            41|
            55|
            9[05]
          )|
          999|
          1(?:
            1[68]\d\d|
            47|
            800
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </tollFree>
      <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Ghana (GH) -->
    <!-- http://www.itu.int/oth/T0202000052/en -->
    <!-- http://www.nca.org.gh/index.php?option=com_content&view=article&id=90&Itemid=65 -->
    <territory id="GH">
      <generalDesc>
        <nationalNumberPattern>[14589]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>
          19[1-3]|
          40404|
          (?:
            54|
            83
          )00|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>
          19[1-3]|
          999
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>5400</exampleNumber>
        <nationalNumberPattern>
          404\d\d|
          (?:
            54|
            83
          )0\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>
          19[1-3]|
          999
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>5400</exampleNumber>
        <nationalNumberPattern>
          404\d\d|
          (?:
            54|
            83
          )0\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Gibraltar (GI) -->
    <!-- http://www.gra.gi/communications/numbering-plan -->
    <territory id="GI">
      <generalDesc>
        <nationalNumberPattern>[158]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- Supporting all Type B short codes (used to access services of other carriers as well) as
           the status is not clear in GRA's doc. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              [25]|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d\d
            )|
            23|
            4(?:
              1|
              7[014]
            )|
            5[015]|
            9[02-49]
          )|
          555|
          8[0-79]\d\d|
          8(?:
            00|
            4[0-2]|
            8[0-589]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1[25]|
            23|
            4(?:
              1|
              7\d
            )|
            5[15]|
            9[02-49]
          )|
          555|
          (?:
            116\d|
            80
          )\d\d
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>150</exampleNumber>
        <nationalNumberPattern>
          150|
          87\d\d
        </nationalNumberPattern>
      </standardRate>
      <!-- Prefix 88 is not included here as it inconsistent in the doc provided by www.gra.gi.
           Hence we will continue to treat it as 8 digit premiumRate number in
           PhoneNumberMetadata.xml unless we hear otherwise. -->
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>8100</exampleNumber>
        <nationalNumberPattern>8[1-69]\d\d</nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="3,5"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              5|
              8\d\d
            )|
            23|
            51|
            9[2-4]
          )|
          555|
          8(?:
            00|
            4[0-2]|
            8[0-589]
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[09]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>8008</exampleNumber>
        <nationalNumberPattern>
          116\d{3}|
          8008
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Greenland (GL) -->
    <!-- http://www.itu.int/oth/T0202000056/en -->
    <territory id="GL">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>1[1-8]\d</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Gambia (GM) -->
    <!-- http://www.itu.int/oth/T020200004F/en -->
    <territory id="GM">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>16</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[6-8]|
            [6-8]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>16</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[6-8]|
            [6-8]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1121.html -->
      <!-- http://www.netglobers.com/africa/gambia-emergency-numbers-in-the-gambia.html -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>16</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[6-8]|
            [6-8]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guinea (GN) -->
    <territory id="GN">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>
          12\d|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- No national emergency numbers were located for Guinea. -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Guadeloupe (GP) -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
    <territory id="GP">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d\d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3(?:
            00[0-79]|
            1[0-689]\d
          )|
          (?:
            118[02-9]|
            3[2469]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3(?:
            00|
            1[0-689]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Greece (GR) -->
    <!-- http://www.itu.int/oth/T0202000055/en -->
    <!-- http://en.wikipedia.org/wiki/%2B30 -->
    <territory id="GR">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[089]|
            1(?:
              2|
              320|
              6(?:
                000|
                1(?:
                  1[17]|
                  23
                )
              )
            )|
            (?:
              389|
              9
            )9|
            66
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[089]|
            1(?:
              2|
              6\d{3}
            )|
            66|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>11300</exampleNumber>
        <nationalNumberPattern>113\d\d</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            12|
            66|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>108</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[89]|
            16\d{3}
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Guatemala (GT) -->
    <!-- http://www.itu.int/oth/T020200005A/en -->
    <!-- http://www.sit.gob.gt/index.php?page=plan-de-numeracion -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala -->
    <territory id="GT">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          110|
          40404|
          1(?:
            2|
            [57]\d
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            10|
            2[03]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            10|
            2[03]
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Guam (GU) -->
    <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
    <territory id="GU">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Guinea-Bissau (GW) -->
    <!-- http://www.itu.int/oth/T020200005C/en -->
    <territory id="GW">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[378]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[378]</nationalNumberPattern>
      </tollFree>
      <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[378]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guyana (GY) -->
    <!-- http://www.itu.int/oth/T020200005D/en -->
    <territory id="GY">
      <generalDesc>
        <nationalNumberPattern>[019]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>002</exampleNumber>
        <nationalNumberPattern>
          0(?:
            02|
            (?:
              17|
              80
            )1|
            444|
            7(?:
              [67]7|
              9
            )|
            9(?:
              0[78]|
              [2-47]
            )
          )|
          1(?:
            443|
            5[568]
          )|
          91[1-4]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[1-4]</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1440</exampleNumber>
        <nationalNumberPattern>144\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[1-3]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>914</exampleNumber>
        <nationalNumberPattern>914</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>1440</exampleNumber>
        <nationalNumberPattern>144\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Hong Kong (HK) -->
    <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
    <!-- http://www.ofca.gov.hk/filemanager/ofca/tc/content_311/no_plan.pdf -->
    <territory id="HK">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,6}</nationalNumberPattern>
      </generalDesc>
      <!-- Short number ranges in the doc which have categories but have no assigned to/allocated
           information have not been included here, such as 1819 and 1820[0-4]. 189 is assigned to
           'Disaster recovery' and it is in the format 189+prefix
           https://zh.wikipedia.org/wiki/%E9%A6%99%E6%B8%AF%E9%9B%BB%E8%A9%B1%E8%99%9F%E7%A2%BC%E5%88%86%E9%A1%9Eas
           As we do not have much information on the prefix that needs to be used we have not
           included it. Generally all withdrawn short codes mentioned in 'Change History' section of
           ca.gov.hk's doc are not supported unless the range is is mentiond as assigned in main
           table. -->
      <shortCode>
        <possibleLengths national="[3-7]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              (?:
                [0136]\d|
                2[14]
              )\d{0,3}|
              8[138]
            )|
            12|
            2(?:
              [0-3]\d{0,4}|
              (?:
                58|
                8[13]
              )\d{0,3}
            )|
            7(?:
              [135-9]\d{0,4}|
              219\d{0,2}
            )|
            8(?:
              0(?:
                (?:
                  [13]|
                  60\d
                )\d|
                8
              )|
              1(?:
                0\d|
                [2-8]
              )|
              2(?:
                0[5-9]|
                (?:
                  18|
                  2
                )2|
                3|
                8[128]
              )|
              (?:
                (?:
                  3[0-689]\d|
                  7(?:
                    2[1-389]|
                    8[0235-9]|
                    93
                  )
                )\d|
                8
              )\d|
              50[138]|
              6(?:
                1(?:
                  11|
                  86
                )|
                8
              )
            )
          )|
          99[29]|
          10[0139]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[29]
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>109</exampleNumber>
        <nationalNumberPattern>
          109|
          1(?:
            08|
            85\d
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[29]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="5"/>
        <exampleNumber>18200</exampleNumber>
        <nationalNumberPattern>1820\d</nationalNumberPattern>
      </expandedEmergency>
      <!-- 992 is an SMS service short code for emergency. -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>992</exampleNumber>
        <nationalNumberPattern>992</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Honduras (HN) -->
    <!-- http://www.itu.int/oth/T020200005F/en -->
    <territory id="HN">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          199|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Croatia (HR) -->
    <!-- http://www.itu.int/oth/T0202000032/en -->
    <!-- http://en.wikipedia.org/wiki/%2B385 -->
    <territory id="HR">
      <generalDesc>
        <nationalNumberPattern>[016-9]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>93</exampleNumber>
        <nationalNumberPattern>
          (?:
            06|
            [6-8]\d{4}
          )\d|
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d\d
            )|
            3977|
            9(?:
              [2-5]|
              87
            )
          )|
          9[34]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3,5,6"/>
        <exampleNumber>93</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )|
          9[34]|
          1(?:
            16\d|
            39
          )\d\d
        </nationalNumberPattern>
      </tollFree>
      <!-- ITU doc says 118XX short codes are directory enquiry services and cost is standard
           / premium rate. Adding 118XX to premium rate so that products are aware of the
           possibility of premium rate numbers under 118 range. -->
      <premiumRate>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>060</exampleNumber>
        <nationalNumberPattern>
          06\d|
          (?:
            118|
            [6-8]\d{3}
          )\d\d
        </nationalNumberPattern>
      </premiumRate>
      <!-- Bonbon users can send free SMS to 13977 short code.
           http://www.bonbon.hr/ponuda/pretplata/paketi/ -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>13900</exampleNumber>
        <nationalNumberPattern>139\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- 93 (fire dep) and 94 (ambulance) don't appear in the latest ITU document, but still on
           various websites. Need to verify that they are no longer valid before removing. -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>93</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )|
          9[34]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>195</exampleNumber>
        <nationalNumberPattern>
          195|
          1(?:
            16\d\d|
            98
          )\d
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>13900</exampleNumber>
        <nationalNumberPattern>139\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Haiti (HT) -->
    <!-- http://www.itu.int/oth/T020200005E/en -->
    <territory id="HT">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          11[48]|
          40404
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>11[48]</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>11[48]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Hungary (HU) -->
    <!-- http://www.itu.int/oth/T0202000061/en -->
    <territory id="HU">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[457]|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              800
            )|
            2(?:
              0[0-4]|
              1[013489]|
              2[0-5]|
              3[0-46]|
              4[0-24-68]|
              5[0-2568]|
              6[06]|
              7[0-25-7]|
              8[028]|
              9[08]
            )|
            37(?:
              00|
              37|
              7[07]
            )|
            4(?:
              0[0-5]|
              1[013-8]|
              2[034]|
              3[23]|
              4[02-9]|
              5(?:
                00|
                41|
                67
              )
            )|
            777|
            8(?:
              1[27-9]|
              2[04]|
              40|
              [589]
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[457]|
            12|
            4[0-4]\d
          )|
          1(?:
            16\d|
            37|
            45
          )\d\d
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>1200</exampleNumber>
        <nationalNumberPattern>
          1(?:
            4[0-4]|
            77
          )\d|
          1(?:
            18|
            2|
            45
          )\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[457]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>1840</exampleNumber>
        <nationalNumberPattern>184\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Indonesia (ID) -->
    <!-- http://en.wikipedia.org/wiki/%2B62 -->
    <territory id="ID">
      <generalDesc>
        <nationalNumberPattern>
          [178]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[02389]|
            40\d\d|
            50264
          )|
          71400|
          89887
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02389]</nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>71400</exampleNumber>
        <nationalNumberPattern>
          (?:
            714|
            898
          )\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02389]</nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>71400</exampleNumber>
        <nationalNumberPattern>714\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ireland (IE) -->
    <!-- https://www.comreg.ie/csv/downloads/ComReg15136.pdf -->
    <territory id="IE">
      <generalDesc>
        <nationalNumberPattern>[159]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6(?:
              00[06]|
              1(?:
                1[17]|
                23
              )
            )
          )|
          999|
          (?:
            1(?:
              18|
              9
            )|
            5[0137]\d
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )|
          999
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>51000</exampleNumber>
        <nationalNumberPattern>51\d{3}</nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>53000</exampleNumber>
        <nationalNumberPattern>5[37]\d{3}</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>51210</exampleNumber>
        <nationalNumberPattern>51210</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>11800</exampleNumber>
        <nationalNumberPattern>
          51210|
          (?:
            118|
            5[037]\d
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Israel (IL) -->
    <!-- http://www.itu.int/oth/T020200006A/en -->
    <!-- http://en.wikipedia.org/wiki/%2B972 -->
    <territory id="IL">
      <generalDesc>
        <nationalNumberPattern>[12]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            1(?:
              [013-9]\d|
              2
            )|
            [2-9]\d\d
          )|
          2407|
          (?:
            104|
            27
          )00
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            12
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>10400</exampleNumber>
        <nationalNumberPattern>104\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>10400</exampleNumber>
        <nationalNumberPattern>104\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Isle of Man (IM) -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
    <territory id="IM">
      <generalDesc>
        <nationalNumberPattern>
          [189]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?|
          8(?:
            6444|
            9887
          )|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <!-- http://www.directory.im/directory_useful.aspx -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>86400</exampleNumber>
        <nationalNumberPattern>
          8(?:
            64|
            98
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- India (IN) -->
    <!-- http://www.itu.int/oth/T0202000063/en -->
    <!-- http://en.wikipedia.org/wiki/%2B91 -->
    <!-- http://www.dot.gov.in/access-services/national-numbering-plan-2003 -->
    <!-- https://www.telenor.in/public/upload/files/Short-Codes-list.xlsx? -->
    <territory id="IN">
      <generalDesc>
        <nationalNumberPattern>[12578]\d{2,8}</nationalNumberPattern>
      </generalDesc>
      <!-- 1802 - Virtual Card calling (VCC) codes are actually access codes for making VCC calls as
           per http://www.cdothelpline.ernet.in/documents/C-DOT_IN/INS&FDES.PDF. Not adding them to
           phone or short number metadata as there are no valid numbers online. Same is the case
           with 1804 Account Card Calling (ACC) numbers. -->
      <!-- As per telenor.in doc supporting only specific ones with length less than 5 digits.
           Simplified the ranges when short code is more than 5 digits. Not adding these short codes
           to respective categories because of maintainability. -->
      <!-- 5902XXXX short codes were supported based on user report. -->
      <shortCode>
        <possibleLengths national="[3-9]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [0-248]|
              3[39]|
              5(?:
                010|
                6
              )|
              6[3468]|
              7(?:
                [01357]|
                [28]0?|
                4[01]
              )|
              9[0135-9]
            )|
            1(?:
              00|
              [289]
            )|
            2(?:
              1|
              98
            )|
            3(?:
              11|
              2[0-2]|
              63|
              [89]
            )|
            4[01]|
            5(?:
              1(?:
                0[0-36]|
                [127]
              )|
              54
            )|
            6(?:
              1|
              6[01]?
            )|
            7000|
            8[12]|
            9(?:
              0[013-59]|
              12|
              25|
              4[4-9]\d?|
              50|
              6[1347]|
              [89]
            )
          )|
          2611|
          5(?:
            0(?:
              0(?:
                0\d|
                1|
                20?
              )|
              325|
              5[2-79]\d{3,5}
            )|
            1(?:
              234|
              555|
              717|
              818|
              96[49]
            )|
            2(?:
              0(?:
                0[01]|
                [14]0
              )|
              151|
              555|
              666|
              888|
              9(?:
                06|
                99\d?
              )
            )|
            3(?:
              0[01]0|
              131|
              553|
              (?:
                66|
                77
              )6
            )|
            (?:
              464|
              55[05]
            )\d{1,3}|
            6(?:
              070|
              3[68]|
              43
            )|
            717\d
          )|
          777|
          800|
          5(?:
            05(?:
              0|
              1\d
            )|
            221|
            3(?:
              03|
              3[23]
            )
          )\d{1,4}|
          5(?:
            (?:
              04|
              88
            )0|
            2(?:
              2[0267]|
              3[16]
            )|
            4(?:
              1[04]|
              20|
              3[02]
            )|
            5(?:
              3[16]|
              67
            )|
            6(?:
              06|
              [67]\d
            )|
            787|
            9(?:
              64|
              90
            )
          )\d\d?|
          (?:
            1(?:
              05[79]|
              (?:
                1[67][0-2]|
                802
              )\d|
              55[23]
            )\d|
            5(?:
              (?:
                00(?:
                  0\d|
                  1
                )|
                (?:
                  304|
                  616
                )\d\d
              )\d|
              1(?:
                0[12]|
                4[2-4]
              )|
              2(?:
                2[3589]|
                3(?:
                  1\d{3}|
                  2
                )|
                4[04]|
                7[78]
              )|
              4(?:
                [02]4|
                32\d{4}|
                4[04]|
                99
              )|
              5(?:
                1[25]|
                [36]5|
                4[45]|
                93
              )|
              7(?:
                (?:
                  17\d|
                  57
                )\d\d|
                [27]7|
                88
              )|
              8(?:
                3[4-69]|
                4[01]|
                5[58]|
                88(?:
                  8\d\d|
                  9
                )|
                99
              )|
              9(?:
                0(?:
                  0|
                  2\d{3}
                )|
                55|
                6[67]|
                77|
                88
              )
            )
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-248]|
            1[289]|
            21|
            [39][89]|
            4[01]|
            6(?:
              1|
              6\d?
            )|
            8[12]
          )|
          777|
          800|
          1[05]5\d|
          1(?:
            07|
            51|
            94
          )\d\d?|
          (?:
            1(?:
              [05]5\d|
              70
            )\d|
            261
          )\d|
          1(?:
            0[369]|
            10|
            29|
            3[126]|
            9[0-256]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <!-- Cost of SMS to 5142[5-9], 514[34]\d and 5757555 is of standard rate. -->
      <standardRate>
        <possibleLengths national="5,7"/>
        <exampleNumber>51425</exampleNumber>
        <nationalNumberPattern>
          5(?:
            14(?:
              2[5-9]|
              [34]\d
            )|
            757555
          )
        </nationalNumberPattern>
      </standardRate>
      <!-- As per DOT's doc 116 is for "Wakeup call Registration" and 117 for "Wakeup call
           Cancellation". Dialling format 11[67] + <hours_in_24_hours_format> + <minutes>. This
           service costs double the standard rate.
           http://delhi.mtnl.net.in/services/phonewakeup.htm -->
      <!-- Added Vodafone number 56161561 based on their website. -->
      <premiumRate>
        <possibleLengths national="7,8"/>
        <exampleNumber>1160000</exampleNumber>
        <nationalNumberPattern>
          11[67]\d{4}|
          56161561
        </nationalNumberPattern>
      </premiumRate>
      <!-- Some numbers are from https://support.twitter.com/articles/20170024. -->
      <!-- Added Vodafone numbers 5616117[89] based on user reports. -->
      <!-- Added Vodafone number 56161561 based on their website. -->
      <carrierSpecific>
        <possibleLengths national="[3-8]"/>
        <exampleNumber>118</exampleNumber>
        <nationalNumberPattern>
          1(?:
            (?:
              1[67]\d\d|
              70
            )\d\d|
            55330|
            909
          )|
          5(?:
            300\d|
            6161(?:
              17[89]|
              561
            )
          )|
          1(?:
            [19][89]|
            21|
            4[01]
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-28]|
            12|
            298
          )|
          2611
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>181</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              56|
              9[016]
            )|
            55200|
            81
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- Added Vodafone numbers 5616117[89] based on user reports. -->
      <!-- Added Vodafone number 56161561 based on their website. -->
      <smsServices>
        <possibleLengths national="[3-5],7,8"/>
        <exampleNumber>139</exampleNumber>
        <nationalNumberPattern>
          1(?:
            39|
            90[019]
          )|
          5(?:
            14(?:
              2[5-9]|
              [34]\d
            )|
            6161(?:
              17[89]|
              561
            )|
            757555
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Iraq (IQ) -->
    <territory id="IQ">
      <generalDesc>
        <nationalNumberPattern>[1479]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[04]|
            15|
            22
          )|
          4432|
          71117|
          9988
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[04]|
            15|
            22
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>4430</exampleNumber>
        <nationalNumberPattern>
          (?:
            443|
            711\d|
            998
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=112 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[04]|
            15|
            22
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>4430</exampleNumber>
        <nationalNumberPattern>
          (?:
            443|
            711\d|
            998
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Iran (IR) -->
    <!-- http://www.itu.int/oth/T0202000066/en -->
    <!-- https://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=111 -->
    <!-- http://118.tct.ir/necnum.htm -->
    <territory id="IR">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- As per http://118.tct.ir/necnum.htm and http://www.ictna.ir/id/030363/.
           Ranges with leading zero (e.g. 096XX and 096XXX) are modelled as UAN numbers. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[0-68]|
            2[0-59]|
            3[346-8]|
            4(?:
              [0147]|
              [289]0
            )|
            5(?:
              0[14]|
              1[02479]|
              2[0-3]|
              39|
              [49]0|
              65
            )|
            6(?:
              [16]6|
              [27]|
              90
            )|
            8(?:
              03|
              1[18]|
              22|
              3[37]|
              4[28]|
              88|
              99
            )|
            9[0-579]
          )|
          20(?:
            [09]0|
            1(?:
              [038]|
              1[079]|
              26|
              9[69]
            )|
            2[01]
          )|
          9(?:
            11|
            9(?:
              0009|
              90
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 11X, 12X and 19X are toll-free as these are public and government services. -->
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[0-68]|
            2[0-59]|
            9[0-579]
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- 15XX, 18XX are supported as standard rate because the cost depends only on
           calling device as per http://www.ictna.ir/id/030363/. -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1500</exampleNumber>
        <nationalNumberPattern>
          1(?:
            5[0-469]|
            8[0-489]
          )\d
        </nationalNumberPattern>
      </standardRate>
      <!-- As per http://www.ictna.ir/id/030363/, 15XX and 18XX are region specific short codes as
           the organizations either need to have office / permission code in order to be
           accessible in specific regions. -->
      <carrierSpecific>
        <possibleLengths national="4,6"/>
        <exampleNumber>1500</exampleNumber>
        <nationalNumberPattern>
          (?:
            1(?:
              5[0-469]|
              8[0-489]
            )|
            99(?:
              0\d\d|
              9
            )
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[025]|
            25
          )|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- As per http://www.ictna.ir/id/030363/, 121, 122 and 194 are emergency service numbers. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>116</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16|
            2[0-3]|
            47|
            94
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="6"/>
        <exampleNumber>990000</exampleNumber>
        <nationalNumberPattern>990\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Iceland (IS) -->
    <!-- https://www.pfs.is/english/telecom-affairs/numbering/ -->
    <territory id="IS">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [28]|
              61(?:
                16|
                23
              )
            )|
            4(?:
              00|
              1[145]|
              4[0146]
            )|
            55|
            7(?:
              00|
              17|
              7[07-9]
            )|
            8(?:
              [02]0|
              1[16-9]|
              88
            )|
            900
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71\d
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1400</exampleNumber>
        <nationalNumberPattern>
          14(?:
            0\d|
            41
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>1770</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            770
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>1415</exampleNumber>
        <nationalNumberPattern>
          1(?:
            415|
            90\d
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Italy (IT) -->
    <!-- http://www.itu.int/oth/T020200006B/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Italy -->
    <territory id="IT">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,6}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-7]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0\d{2,3}|
            1(?:
              [2-57-9]|
              6(?:
                000|
                111
              )
            )|
            3[39]|
            4(?:
              82|
              9\d{1,3}
            )|
            5(?:
              00|
              1[58]|
              2[25]|
              3[03]|
              44|
              [59]
            )|
            60|
            8[67]|
            9(?:
              [01]|
              2[2-9]|
              4\d|
              696
            )
          )|
          4(?:
            2323|
            5045
          )|
          (?:
            1(?:
              2|
              92[01]
            )|
            4(?:
              3(?:
                [01]|
                [45]\d\d
              )|
              [478](?:
                [0-4]|
                [5-9]\d\d
              )|
              55
            )
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [2358]|
              6\d{3}
            )|
            87
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://clients.txtnation.com/attachments/token/di5kfblvubttvlw/?name=Italy_CASP_EN.pdf -->
      <premiumRate>
        <possibleLengths national="4,5,7"/>
        <exampleNumber>1200</exampleNumber>
        <nationalNumberPattern>
          (?:
            12|
            4(?:
              [478](?:
                [0-4]|
                [5-9]\d\d
              )|
              55
            )
          )\d\d
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[47]|
            5(?:
              15|
              [2-4]\d
            )
          )|
          1(?:
            16\d|
            96
          )\d\d
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5,7"/>
        <exampleNumber>43000</exampleNumber>
        <nationalNumberPattern>
          4(?:
            3(?:
              [01]|
              [45]\d\d
            )|
            [478](?:
              [0-4]|
              [5-9]\d\d
            )|
            5[05]
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Jersey (JE) -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
    <territory id="JE">
      <generalDesc>
        <nationalNumberPattern>
          [129]\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              2|
              8\d{3}
            )|
            23|
            4(?:
              [14]|
              28|
              7\d
            )|
            5\d|
            7(?:
              0[12]|
              [128]|
              35?
            )|
            808|
            9[0135]
          )|
          23[2-4]|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </tollFree>
      <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Jamaica (JM) -->
    <!-- http://www.itu.int/oth/T020200006C/en -->
    <territory id="JM">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[029]|
            76
          )|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[029]|
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=116 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[029]|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Jordan (JO) -->
    <!-- http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english -->
    <!-- http://www.itu.int/oth/T020200006E/en -->
    <!-- http://en.wikipedia.org/wiki/%2B962 -->
    <territory id="JO">
      <generalDesc>
        <nationalNumberPattern>
          [19]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[2359]|
            1[0-68]|
            9[0-24-79]
          )|
          9[0-4689]\d{3}|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[235]|
            1[2-6]|
            9[127]
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>90000</exampleNumber>
        <nationalNumberPattern>9[0-4689]\d{3}</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>90000</exampleNumber>
        <nationalNumberPattern>9[0-4689]\d{3}</nationalNumberPattern>
      </carrierSpecific>
      <!-- 192 is only available in Amman, 197 in the suburbs. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[127]
          )|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            14|
            90
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>90000</exampleNumber>
        <nationalNumberPattern>9[0-4689]\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Japan (JP) -->
    <!-- http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html -->
    <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=JP -->
    <territory id="JP">
      <generalDesc>
        <nationalNumberPattern>
          [01]\d\d(?:
            \d{5,7}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,[8-10]"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          000[2569]\d{4,6}|
          1(?:
            0[24]|
            1[089]|
            44|
            89
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[089]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[09]</nationalNumberPattern>
      </emergency>
      <!-- As per confirmations from the carrier (NTTDocomo), these are SMS only short codes,
           which are used to interact with respective companies i.e. after scanning the code. -->
      <smsServices>
        <possibleLengths national="[8-10]"/>
        <exampleNumber>00020000</exampleNumber>
        <nationalNumberPattern>000[2569]\d{4,6}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kenya (KE) -->
    <!-- http://www.ca.go.ke/images/downloads/NUMBERING/Telecommunication%20Numbering%20Plan%20For%20Kenya%20Feb%202016.Pdf -->
    <!-- http://en.wikipedia.org/wiki/+254 -->
    <territory id="KE">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [07-9]|
              1[0-25]|
              400
            )|
            1(?:
              [024-6]|
              9[0-579]
            )|
            2[1-3]|
            3[01]|
            4[14]|
            5(?:
              [01][01]|
              2[0-24-79]|
              33|
              4[05]|
              5[59]|
              6(?:
                00|
                29|
                6[67]
              )
            )|
            (?:
              6[035]\d|
              [78]
            )\d|
            9(?:
              [02-9]\d\d|
              19
            )
          )|
          (?:
            (?:
              2[0-79]|
              [37][0-29]|
              4[0-4]|
              6[2357]|
              8\d
            )\d|
            5(?:
              [0-7]\d|
              99
            )
          )\d\d|
          9(?:
            09\d\d|
            99
          )|
          8988
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [246]|
              9\d
            )|
            5(?:
              01|
              2[127]|
              6[26]\d
            )
          )|
          999
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>90900</exampleNumber>
        <nationalNumberPattern>909\d\d</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>130</exampleNumber>
        <nationalNumberPattern>
          1(?:
            (?:
              04|
              6[35]
            )\d\d|
            3[01]|
            4[14]|
            5(?:
              1\d|
              2[25]
            )
          )|
          (?:
            (?:
              2[0-79]|
              [37][0-29]|
              4[0-4]|
              6[2357]|
              8\d
            )\d|
            5(?:
              [0-7]\d|
              99
            )|
            909
          )\d\d|
          898\d
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[24]|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [06]|
            9\d
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>141</exampleNumber>
        <nationalNumberPattern>
          1(?:
            (?:
              04|
              6[035]
            )\d\d|
            4[14]|
            5(?:
              01|
              55|
              6[26]\d
            )
          )|
          40404|
          8988|
          909\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kyrgyzstan (KG) -->
    <!-- http://www.itu.int/oth/T0202000074/en -->
    <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
    <territory id="KG">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          10[1-3]|
          4040
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>10[1-3]</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>404\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>10[1-3]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>404\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cambodia (KH) -->
    <!-- http://www.itu.int/oth/T0202000023/en -->
    <!-- http://en.wikipedia.org/wiki/+855 -->
    <territory id="KH">
      <generalDesc>
        <nationalNumberPattern>
          [146]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          11[7-9]|
          40404|
          666
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          11[7-9]|
          666
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.phnompenh.gov.kh/phnom-penh-city-emergency-numbers-24-hrs-169.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          11[7-9]|
          666
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kiribati (KI) -->
    <!-- http://www.itu.int/oth/T0202000071/en -->
    <!-- http://tskl.net.ki/services has others. -->
    <territory id="KI">
      <generalDesc>
        <nationalNumberPattern>[179]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <!-- http://tskl.net.ki/services/3g-4g-rates-offpeaks/quick-dial-credit-checking-codes/
           lists 777 as voicemail access. -->
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05[0-259]|
            88|
            9[2-5]
          )|
          777|
          99[2-4]|
          10[0-8]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>192</exampleNumber>
        <nationalNumberPattern>
          19[2-5]|
          99[2-4]
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.tskl.net.ki/910_operator.php - charged at $0.20 per call. -->
      <standardRate>
        <possibleLengths national="3"/>
        <exampleNumber>103</exampleNumber>
        <nationalNumberPattern>103</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>192</exampleNumber>
        <nationalNumberPattern>
          19[2-5]|
          99[2-4]
        </nationalNumberPattern>
      </emergency>
      <!-- See comment for emergency section. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>188</exampleNumber>
        <nationalNumberPattern>188</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Comoros (KM) -->
    <!-- http://www.itu.int/oth/T020200002D/en -->
    <territory id="KM">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.comstbarth.fr/urgences.asp -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- St. Kitts & Nevis (KN) -->
    <!-- http://www.itu.int/oth/T02020000B0/en -->
    <territory id="KN">
      <generalDesc>
        <nationalNumberPattern>[39]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.stkittstourism.kn/explore-st-kitts-facts.php
           http://barbados.usembassy.gov/emergency-st_kitts_nevis.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>333</exampleNumber>
        <nationalNumberPattern>
          333|
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- North Korea (KP) -->
    <!-- http://north-korea.emergencynumbers.org/ -->
    <territory id="KP">
      <generalDesc>
        <nationalNumberPattern>[18]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[29]|
          819
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[29]|
          819
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[29]|
          819
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- South Korea (KR) -->
    <!-- http://www.itu.int/oth/T0202000072/en -->
    <!-- http://en.wikipedia.org/wiki/%2B82 -->
    <territory id="KR">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d(?:
                \d{3}
              )?
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5],8"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [01679]114|
            3(?:
              0[01]|
              2|
              3[0-35-9]|
              45?|
              5[057]|
              6[569]|
              7[79]|
              8[2589]|
              9[0189]
            )|
            55[15]\d{4}|
            8(?:
              (?:
                11|
                44|
                66
              )\d{4}|
              [28]
            )
          )|
          1(?:
            0[015]|
            1\d|
            2[01357-9]|
            41|
            8114
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[27-9]|
            28|
            330|
            82
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- As per https://www.uplus.co.kr/com/main/pemain/PeMain.hpi, <Mobile carrier prefix> +
           114 connects to respective carrier customer care. Ex: 19114 for LGU+. Mobile carrier
           prefixes are taken from Wikipedia. -->
      <carrierSpecific>
        <possibleLengths national="3,5"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[4-6]|
            41|
            8114
          )|
          1(?:
            [0679]1\d|
            111
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[29]</nationalNumberPattern>
      </emergency>
      <!-- Added expandedEmergency shortcodes according to non-itu update and wiki page.
           https://en.wikipedia.org/wiki/Telephone_numbers_in_South_Korea -->
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[137]|
            2[139]|
            3(?:
              3[019]|
              66|
              8[89]|
              9[018]
            )|
            82
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="8"/>
        <exampleNumber>15500000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            55|
            8[146]
          )\d{5}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kuwait (KW) -->
    <!-- http://www.itu.int/oth/T0202000073/en -->
    <territory id="KW">
      <generalDesc>
        <nationalNumberPattern>
          [18]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1[0-7]\d|
          89887
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>89800</exampleNumber>
        <nationalNumberPattern>898\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Cayman Islands (KY) -->
    <!-- http://www.itu.int/oth/T0202000027/en -->
    <territory id="KY">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Kazakhstan (KZ) -->
    <!-- http://www.itu.int/oth/T020200006F/en -->
    <territory id="KZ">
      <generalDesc>
        <nationalNumberPattern>[1-4]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-4]|
            12
          )|
          2121|
          (?:
            3040|
            404
          )0
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )|
          212\d
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            304\d|
            404
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            304\d|
            404
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Laos (LA) -->
    <!-- http://www.itu.int/oth/T0202000075/en (Seems incomplete) -->
    <!-- http://en.wikipedia.org/wiki/+856 -->
    <territory id="LA">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[015]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[015]</nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[015]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Lebanon (LB) -->
    <!-- http://www.itu.int/oth/T0202000077/en -->
    <!-- http://en.wikipedia.org/wiki/%2B961 -->
    <territory id="LB">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            40|
            75
          )|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            40|
            75
          )|
          999
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            40|
            75
          )|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- St. Lucia (LC) -->
    <!-- http://www.itu.int/oth/T02020000B1/en -->
    <territory id="LC">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://barbados.usembassy.gov/emergency-st_lucia.html
           http://www.stlucia.org/planner/travel.asp
           Note the second source only mentions 911, so we are not sure if 999 is indeed an
           emergency number here. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Liechtenstein (LI) -->
    <!-- http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm -->
    <!-- http://www.llv.li/pdf-llv-ak-shortnumbers_20110331.pdf -->
    <territory id="LI">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [278]|
              45
            )|
            4[3-57]|
            50|
            75|
            81[18]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Sri Lanka (LK) -->
    <!-- http://en.wikipedia.org/wiki/%2B94 -->
    <!-- http://www.itu.int/oth/T02020000C3/en -->
    <territory id="LK">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[024-9]|
            3(?:
              00|
              1[2-49]|
              2[23]|
              3[1-3]|
              44|
              5[07]|
              [67]9|
              88|
              9[039]
            )|
            9(?:
              0[0-2589]|
              1[0-357-9]|
              2[0-25689]|
              3[0389]|
              4[0489]|
              5[014-69]|
              6[0-2689]|
              7[03579]|
              8[02457-9]|
              9[0-2569]
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02689]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[02689]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Liberia (LR) -->
    <!-- http://www.itu.int/oth/T0202000079/en -->
    <territory id="LR">
      <generalDesc>
        <nationalNumberPattern>[3489]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>355</exampleNumber>
        <nationalNumberPattern>
          355|
          4040|
          8(?:
            400|
            933
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>355</exampleNumber>
        <nationalNumberPattern>
          355|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            404|
            8(?:
              40|
              93
            )
          )\d
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_950.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>355</exampleNumber>
        <nationalNumberPattern>
          355|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          (?:
            404|
            8(?:
              40|
              93
            )
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Lesotho (LS) -->
    <!-- http://www.itu.int/oth/T0202000078/en -->
    <territory id="LS">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[257]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[257]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.nul.ls/students/students_Home/emergency_Nos/
           http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=160000 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[257]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Lithuania (LT) -->
    <!-- http://www.itu.int/oth/T020200007C/en -->
    <territory id="LT">
      <generalDesc>
        <nationalNumberPattern>
          [01]\d(?:
            \d(?:
              \d{3}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[1-3]|
            1(?:
              [27-9]|
              6(?:
                000|
                1(?:
                  1[17]|
                  23
                )
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[1-3]|
            1(?:
              2|
              6111
            )
          )|
          116(?:
            0\d|
            12
          )\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Luxembourg (LU) -->
    <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html -->
    <territory id="LU">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [23]|
            6(?:
              000|
              111
            )
          )|
          1(?:
            18|
            [25]\d|
            3
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [23]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[23]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Latvia (LV) -->
    <!-- http://en.wikipedia.org/wiki/+371 -->
    <territory id="LV">
      <generalDesc>
        <nationalNumberPattern>[018]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0[1-4]|
          1(?:
            1(?:
              [02-4]|
              6(?:
                000|
                111
              )|
              8[0189]
            )|
            (?:
              5|
              65
            )5|
            77
          )|
          821[57]4
        </nationalNumberPattern>
      </shortCode>
      <!-- http://116000.lv/en/about -->
      <tollFree>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0[1-3]|
          11(?:
            [023]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.ldz.lv/?object_id=2568 - 0.177 LVL per minute. -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1181</exampleNumber>
        <nationalNumberPattern>1181</nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>1180</exampleNumber>
        <nationalNumberPattern>
          1180|
          821\d\d
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1650</exampleNumber>
        <nationalNumberPattern>165\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0[1-3]|
          11[023]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>155</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            55
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Libya (LY) -->
    <territory id="LY">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
      </tollFree>
      <!-- This information may or may not apply to the new government. -->
      <!-- Most of the gov.ly domain is down (checked on 2011-11-07). -->
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_951.html -->
      <!-- http://www.lookoutlibya.com/Look_Out_Libya_%7C_Health_and_Safety_03.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Morocco (MA) -->
    <!-- Shares formatting and some metadata with Western Sahara. -->
    <!-- http://www.itu.int/oth/T0202000090/en -->
    <!-- http://en.wikipedia.org/wiki/+212 -->
    <territory id="MA">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Monaco (MC) -->
    <!-- http://www.itu.int/oth/T020200008D/en -->
    <territory id="MC">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            41|
            [578]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Moldova (MD) -->
    <!-- http://www.itu.int/oth/T020200008C/en -->
    <!-- http://en.anrceti.md -->
    <territory id="MD">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- According to ITU, all of 19xx may be assigned for access to data transport services,
           but usage is not clear so we do not include the whole range at this time. 17xx which
           is assigned to routing numbers is also not included. -->
      <!-- http://www.idknet.com/mobile/sms/ -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d\d?|
              99
            )|
            90[04-9]
          )|
          90[1-3]|
          1(?:
            4\d\d|
            6[0-389]|
            9[1-4]
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6(?:
              000|
              1(?:
                11|
                2\d
              )
            )
          )|
          90[1-3]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          90[1-3]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116006</exampleNumber>
        <nationalNumberPattern>
          116(?:
            006|
            117
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Montenegro (ME) -->
    <!-- http://www.itu.int/oth/T02020000DA/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro -->
    <!-- http://www.ekip.me/numeracija/dodijeljena.php -->
    <territory id="ME">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              (?:
                [013-57-9]|
                6\d\d
              )\d|
              2
            )|
            [249]\d{3}|
            5999|
            8(?:
              0[089]|
              1[0-8]|
              888
            )
          )|
          1(?:
            [02-5]\d\d|
            60[06]|
            700
          )|
          12\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            2[2-4]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            2[2-4]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- St. Martin (MF) -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
    <territory id="MF">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d\d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3(?:
            00[0-79]|
            1[0-689]\d
          )|
          (?:
            118[02-9]|
            3[2469]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3(?:
            00|
            1[0-689]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Madagascar (MG) -->
    <!-- http://www.itu.int/oth/T020200007F/en -->
    <territory id="MG">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            [78]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            [78]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.commerce.gov.mg/index.php/infos-services -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            [78]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Marshall Islands (MH) -->
    <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_964.html -->
    <territory id="MH">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_964.html -->
      <!-- Two fixed-line numbers (625 4111 and 625 8666) serve as emergency numbers in addition
           to the following short number. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- North Macedonia (MK) -->
    <!-- http://www.itu.int/oth/T02020000CE/en -->
    <territory id="MK">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              8\d
            )|
            3\d|
            9[2-4]
          )|
          1(?:
            16|
            2\d
          )\d{3}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}
            )|
            9[2-4]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Mali (ML) -->
    <!-- http://crt-mali.org/pdf/plan_num -->
    <!-- http://www.orangemali.com/mobile/offrespostpayees.php -->
    <!-- http://www.orangemali.com/service-clients/service-clients-orange.php -->
    <territory id="ML">
      <generalDesc>
        <nationalNumberPattern>[136-8]\d{1,4}</nationalNumberPattern>
      </generalDesc>
      <!-- Numbers have come from the pages listed above, along with the short-codes to find your
           voting location published in Mali newspapers such as www.malijet.com. These begin with
           36. -->
      <shortCode>
        <possibleLengths national="[2-5]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [013-9]\d|
              2
            )|
            2(?:
              1[02-469]|
              2[13]
            )|
            [578]
          )|
          350(?:
            35|
            57
          )|
          67(?:
            0[09]|
            [59]9|
            77|
            8[89]
          )|
          74(?:
            0[02]|
            44|
            55
          )|
          800[0-2][12]|
          3(?:
            52|
            [67]\d
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.malitel.ml/Particuliers/Mobile/Pages/Waatibe.aspx says 6700 is free,
           http://www.malitel.ml/Particuliers/Mobile/Pages/MessagerieVocale.aspx says 6777 is
           free. -->
      <tollFree>
        <possibleLengths national="2,4,5"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          (?:
            352|
            67
          )00|
          7402|
          (?:
            677|
            744|
            8000
          )\d
        </nationalNumberPattern>
      </tollFree>
      <!-- 7400 is listed by Orange as costing half the price of a normal SMS. 37433 is cheaper
           than other voice calls, with the exception of Orange network off-peak calls; it is
           roughly the same price as that. 37575 is similar to normal SMSs. -->
      <standardRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>7400</exampleNumber>
        <nationalNumberPattern>
          37(?:
            433|
            575
          )|
          7400|
          8001\d
        </nationalNumberPattern>
      </standardRate>
      <!-- Adding the codes to "services à valeur ajoutée" from http://crt-mali.org/pdf/plan_num,
           plus any other numbers found online where the prices are really high. -->
      <premiumRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>1220</exampleNumber>
        <nationalNumberPattern>
          (?:
            12|
            800
          )2\d|
          3(?:
            52(?:
              11|
              2[02]|
              3[04-6]|
              99
            )|
            7574
          )
        </nationalNumberPattern>
      </premiumRate>
      <!-- 35035 found on http://www.malitel.ml/Pages/News.aspx?IdNews=4 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>35030</exampleNumber>
        <nationalNumberPattern>
          3503\d|
          (?:
            3[67]\d|
            800
          )\d\d
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>7400</exampleNumber>
        <nationalNumberPattern>
          374(?:
            0[24-9]|
            [1-9]\d
          )|
          7400|
          3(?:
            6\d|
            75
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Myanmar (Burma) (MM) -->
    <!-- http://www.itu.int/oth/T0202000092/en -->
    <territory id="MM">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Mongolia (MN) -->
    <!-- http://www.itu.int/oth/T020200008E/en -->
    <territory id="MN">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>10[0-35]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>10[0-35]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>10[0-35]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Macao (MO) -->
    <!-- http://www.itu.int/oth/T020200007E/en -->
    <territory id="MO">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Northern Mariana Islands (MP) -->
    <!-- http://www.itu.int/oth/T02020000EE/en -->
    <!-- www.cnmiphonebook.com/ -->
    <territory id="MP">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.dps.gov.mp/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Martinique (MQ) -->
    <!-- http://www.itu.int/oth/T0202000086/en -->
    <!-- http://www.arcep.fr/index.php?id=2137&bloc=0596&CMD=RESULTS_NUMEROTATION -->
    <territory id="MQ">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d(?:
              \d(?:
                \d{2}
              )?
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-4],6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )|
          (?:
            118[02-9]|
            3[0-2469]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )|
          3[01]\d\d
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="6"/>
        <exampleNumber>118000</exampleNumber>
        <nationalNumberPattern>118\d{3}</nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Mauritania (MR) -->
    <!-- http://www.itu.int/oth/T0202000087/en -->
    <!-- http://www.are.mr/com-1-4-1.html -->
    <territory id="MR">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Montserrat (MS) -->
    <!-- http://www.itu.int/oth/T020200008F/en -->
    <territory id="MS">
      <generalDesc>
        <nationalNumberPattern>[29]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>
          211|
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Malta (MT) -->
    <!-- www.itu.int/oth/T0202000084/en -->
    <territory id="MT">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6(?:
              000|
              1(?:
                11|
                23
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Mauritius (MU) -->
    <!-- https://www.icta.mu/telecom-numbering/ -->
    <territory id="MU">
      <generalDesc>
        <nationalNumberPattern>[189]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1\d{2,4}|
          (?:
            8\d\d|
            99
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          11[45]|
          99[59]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          11[45]|
          99[59]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Maldives (MV) -->
    <territory id="MV">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [0-37-9]|
            [4-6]\d
          )\d|
          4040|
          1[45]1
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          1(?:
            02|
            1[89]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- Dhiraagu carrier uses 141 and 151 short codes.
           https://www.dhiraagu.com.mv/Personal_Mobile_Prepaid_Recharge.aspx -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>141</exampleNumber>
        <nationalNumberPattern>1[45]1</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          1(?:
            02|
            1[89]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            04|
            412|
            91
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Malawi (MW) -->
    <!-- http://www.itu.int/oth/T0202000080/en -->
    <territory id="MW">
      <generalDesc>
        <nationalNumberPattern>
          [189]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          199|
          80400|
          99[7-9]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          199|
          99[7-9]
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>80400</exampleNumber>
        <nationalNumberPattern>804\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.malawiembassy.org/visit/contact.html -->
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_959.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          199|
          99[7-9]
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>80400</exampleNumber>
        <nationalNumberPattern>804\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Mexico (MX) -->
    <!-- http://en.wikipedia.org/wiki/%2B52 -->
    <territory id="MX">
      <generalDesc>
        <nationalNumberPattern>[0579]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>010</exampleNumber>
        <nationalNumberPattern>
          0[1-9]\d|
          53053|
          7766|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>060</exampleNumber>
        <nationalNumberPattern>
          0(?:
            6[0568]|
            80
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- We have received information that 7766 is a premium rate number used to buy various
           types of services or media. -->
      <premiumRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>7760</exampleNumber>
        <nationalNumberPattern>
          (?:
            530\d|
            776
          )\d
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>020</exampleNumber>
        <nationalNumberPattern>
          0(?:
            [249]0|
            [35][01]
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://en.wikipedia.org/wiki/%2B52#Other_service_numbers -->
      <!-- http://en.wikipedia.org/wiki/Emergency_telephone_number -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>060</exampleNumber>
        <nationalNumberPattern>
          0(?:
            6[0568]|
            80
          )|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>061</exampleNumber>
        <nationalNumberPattern>
          0(?:
            61|
            8[89]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Malaysia (MY) -->
    <!-- http://en.wikipedia.org/wiki/%2B60 -->
    <!-- http://www.skmm.gov.my -->
    <territory id="MY">
      <generalDesc>
        <nationalNumberPattern>[1369]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01348]|
            1(?:
              [02]|
              1[128]|
              311
            )|
            2(?:
              0[125]|
              [13-6]|
              2\d{0,2}
            )|
            (?:
              3[1-35-79]|
              7[45]
            )\d\d?|
            5(?:
              454|
              5\d\d?|
              77|
              888|
              999?
            )|
            8(?:
              18?|
              2|
              8[18]
            )|
            9(?:
              [124]\d?|
              68|
              71|
              9[0679]
            )
          )|
          66628|
          99[1-469]|
          13[5-7]|
          (?:
            1(?:
              0[569]|
              309|
              5[12]|
              7[136-9]|
              9[03]
            )|
            3[23679]\d\d
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </tollFree>
      <!-- Maybank mentions end user pays standard SMS charges for messaging 66628:
           https://www.maybank2u.com.my/iwov-resources/pdf/personal/promotions/MUCards_TnC.pdf -->
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>66600</exampleNumber>
        <nationalNumberPattern>666\d\d</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>99[1-46]</nationalNumberPattern>
      </expandedEmergency>
      <!-- http://www.skmm.gov.my/FAQs/Mobile-Content-Services/What-is-a-common-short-code.aspx
           66628: https://www.maybank2u.com.my/iwov-resources/pdf/personal/promotions/MUCards_TnC.pdf -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>32000</exampleNumber>
        <nationalNumberPattern>
          (?:
            3[23679]\d|
            666
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Mozambique (MZ) -->
    <!-- http://www.itu.int/oth/T0202000091/en -->
    <territory id="MZ">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [02-5]\d\d|
            1[79]|
            9[78]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[79]|
            9[78]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- 11X is national, 19X is for Maputo. -->
      <!-- http://www.lonelyplanet.com/shop_pickandmix/previews/mozambique-maputo-preview.pdf -->
      <!-- http://ccmusa.online.co.mz/index.php?option=com_content&task=view&id=20&Itemid=30 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[79]|
            9[78]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Namibia (NA) -->
    <!-- http://www.itu.int/oth/T0202000093/en -->
    <territory id="NA">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>900</exampleNumber>
        <nationalNumberPattern>
          (?:
            10|
            93
          )111|
          (?:
            1\d|
            9
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="5"/>
        <exampleNumber>10111</exampleNumber>
        <nationalNumberPattern>10111</nationalNumberPattern>
      </tollFree>
      <!-- ITU doc reserves 9XX for emergency numbers. No examples found. -->
      <!-- http://www.namibia-1on1.com/information/a-emergencynos.html -->
      <emergency>
        <possibleLengths national="5"/>
        <exampleNumber>10111</exampleNumber>
        <nationalNumberPattern>10111</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- New Caledonia (NC) -->
    <!-- As there seems to be only one carrier (OPT) in New Caledonia so for now we are not
         distinguishing carrier specific numbers. -->
    <!-- http://www.itu.int/oth/T0202000098/en -->
    <!-- http://www.opt.nc -->
    <territory id="NC">
      <generalDesc>
        <nationalNumberPattern>[135]\d{1,3}</nationalNumberPattern>
      </generalDesc>
      <!-- OPT: Office des Postes et Télécommunications de Nouvelle Calédonie -->
      <!-- 3631 is listed as a short number for caller ID services by OPT and explicitly mentioned
           as toll free (despite not matching the ITU document specification for 36). Note also
           that we don't list 3651 as a short number because it's a prefix for hiding caller ID
           and is only ever dialed before another normal number.
           See: http://www.opt.nc/index.php?option=com_content&view=article&id=17&Itemid=66 -->
      <!-- 1088 is listed as a toll-free credit balance service for prepay mobiles (not in ITU).
           See: http://www.opt.nc/index.php?option=com_content&view=article&id=121&Itemid=36 -->
      <shortCode>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              0[06]|
              1[02-46]|
              20|
              3[0-25]|
              42|
              5[058]|
              77|
              88
            )|
            [5-8]
          )|
          3631|
          5[6-8]\d
        </nationalNumberPattern>
      </shortCode>
      <!-- It is entirely possible that all 1xxx short numbers are toll free but we're not found
           good evidence for this anywhere. So far there are no counter examples. -->
      <!-- 1000 is the operator, 1012 is directory enquiries and 1013 is fixed-line faults.
           1000 and 1013 are listed as free on http://1000.nc & http://1013.nc and 1012 is
           mentioned at: http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
      <!-- Note that 103[0-2] are assumed to be toll free as they are listed in regard to an "iZi"
           service that is dialable from a highly restrictive phone mode:
           http://www.opt.nc/index.php?option=com_content&view=article&id=16&Itemid=65 -->
      <tollFree>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              00|
              1[23]|
              3[0-2]|
              8\d
            )|
            [5-8]
          )|
          363\d|
          577
        </nationalNumberPattern>
      </tollFree>
      <!-- 567: http://www.opt.nc/index.php?option=com_content&view=article&id=14&Itemid=63 -->
      <!-- 588: http://www.opt.nc/index.php?option=com_content&view=article&id=15&Itemid=64 -->
      <standardRate>
        <possibleLengths national="3"/>
        <exampleNumber>567</exampleNumber>
        <nationalNumberPattern>
          5(?:
            67|
            88
          )
        </nationalNumberPattern>
      </standardRate>
      <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[5-8]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Niger (NE) -->
    <territory id="NE">
      <generalDesc>
        <nationalNumberPattern>
          [1-3578]\d(?:
            \d(?:
              \d{3}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[128]|
            2[034]|
            3[013]|
            [46]0|
            55?|
            [78]
          )|
          222|
          333|
          555|
          723141|
          888
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18|
            [578]
          )|
          723\d{3}
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[12]|
            2[034]|
            3[013]|
            [46]0|
            55
          )|
          222|
          333|
          555|
          888
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18|
            [578]
          )|
          723141
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Norfolk Island (NF) -->
    <!-- http://www.itu.int/oth/T020200009D/en -->
    <territory id="NF">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            55|
            77
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            55|
            77
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.discovernorfolkisland.com/norfolk/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            55|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Nigeria (NG) -->
    <!-- http://www.itu.int/oth/T020200009C/en -->
    <territory id="NG">
      <generalDesc>
        <nationalNumberPattern>
          [14]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          199|
          40700
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40700</exampleNumber>
        <nationalNumberPattern>407\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40700</exampleNumber>
        <nationalNumberPattern>407\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Nicaragua (NI) -->
    <!-- http://www.itu.int/oth/T020200009A/en -->
    <territory id="NI">
      <generalDesc>
        <nationalNumberPattern>[12467]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[58]|
            200
          )|
          4878|
          7(?:
            010|
            373
          )|
          12[0158]|
          (?:
            19|
            [267]1
          )00
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[58]|
            2[08]
          )|
          737\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[58]|
            2[08]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Netherlands (NL) -->
    <!-- http://en.wikipedia.org/wiki/%2B31 -->
    <!-- http://wetten.overheid.nl/BWBR0010198 -->
    <territory id="NL">
      <generalDesc>
        <nationalNumberPattern>
          [1349]\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  11|
                  23
                )
              )
            )|
            2(?:
              0[0-4]|
              3[34]|
              44
            )|
            3[03-9]\d|
            400|
            8(?:
              [02-9]\d|
              1[0-79]
            )
          )|
          [34]000|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1200</exampleNumber>
        <nationalNumberPattern>120\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <!-- 3000 and 4000 are SMS only shortcodes as per online evidence. -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>3000</exampleNumber>
        <nationalNumberPattern>[34]00\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Norway (NO) -->
    <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
    <!-- http://www.nkom.no/npt/numsys/E.1643sifret_en.pdf -->
    <territory id="NO">
      <generalDesc>
        <nationalNumberPattern>[01]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- 143 is assigned but not visible to end users, no other online evidence
           found, hence not included -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          04\d{3}|
          1(?:
            1(?:
              [0239]|
              61(?:
                1[17]|
                23
              )
            )|
            2[048]|
            4(?:
              12|
              [59]
            )|
            7[57]|
            8\d\d|
            90
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [023]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>1410</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d\d|
            41
          )\d
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>04000</exampleNumber>
        <nationalNumberPattern>04\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Nepal (NP) -->
    <!-- http://www.itu.int/oth/T0202000095/en -->
    <!-- http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php -->
    <territory id="NP">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [0-36]|
              98
            )|
            1(?:
              1[1-4]|
              2
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-36]|
            12
          )|
          1(?:
            09|
            11
          )\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>106</exampleNumber>
        <nationalNumberPattern>
          106|
          1(?:
            09|
            11
          )\d
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Nauru (NR) -->
    <!-- http://www.itu.int/oth/T0202000094/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru -->
    <territory id="NR">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[0-2]|
            23|
            92
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0-2]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0-2]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Niue (NU) -->
    <!-- http://www.itu.int/oth/T02020000EC/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
    <territory id="NU">
      <generalDesc>
        <nationalNumberPattern>[019]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>010</exampleNumber>
        <nationalNumberPattern>
          01[05]|
          101|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>010</exampleNumber>
        <nationalNumberPattern>010</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- New Zealand (NZ) -->
    <!-- http://www.itu.int/oth/T0202000099/en -->
    <!-- Includes Ross Dependency, Antarctica -->
    <!-- https://www.skinny.co.nz/assets/pdf/skinny-premium-SMS-prices-Sheet14.pdf -->
    <!-- https://www.vodafone.co.nz/cms/documents/premium-txt-codes.pdf -->
    <territory id="NZ">
      <generalDesc>
        <nationalNumberPattern>\d{3,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>018</exampleNumber>
        <nationalNumberPattern>
          018|
          1(?:
            (?:
              1|
              37
            )1|
            (?:
              23|
              94
            )4|
            7[03]7
          )|
          [2-57-9]\d{2,3}|
          6(?:
            161|
            26[0-3]|
            742
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>111</nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="3"/>
        <exampleNumber>018</exampleNumber>
        <nationalNumberPattern>018</nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>111</nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="3,4"/>
        <exampleNumber>018</exampleNumber>
        <nationalNumberPattern>
          018|
          (?:
            1(?:
              23|
              37|
              7[03]|
              94
            )|
            6(?:
              [12]6|
              74
            )
          )\d|
          [2-57-9]\d{2,3}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Oman (OM) -->
    <!-- http://www.itu.int/oth/T020200009F/en -->
    <territory id="OM">
      <generalDesc>
        <nationalNumberPattern>[19]\d{3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="4"/>
        <exampleNumber>1111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            111|
            222|
            4(?:
              4[0-5]|
              50|
              66|
              7[7-9]
            )|
            51[0-8]
          )|
          9999|
          1(?:
            2[3-5]|
            3[0-2]|
            50
          )\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="4"/>
        <exampleNumber>1444</exampleNumber>
        <nationalNumberPattern>
          1444|
          999\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="4"/>
        <exampleNumber>1444</exampleNumber>
        <nationalNumberPattern>
          1444|
          9999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Panama (PA) -->
    <!-- http://en.wikipedia.org/wiki/%2B507 -->
    <territory id="PA">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>102</exampleNumber>
        <nationalNumberPattern>
          10[2-4]|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Peru (PE) -->
    <!-- http://www.itu.int/oth/T02020000A6/en -->
    <!-- http://en.wikipedia.org/wiki/+51 -->
    <territory id="PE">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- French Polynesia (PF) -->
    <!-- http://www.itu.int/oth/T020200004D/en -->
    <territory id="PF">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Papua New Guinea (PG) -->
    <!-- http://www.itu.int/oth/T02020000A4/en -->
    <!-- http://en.wikipedia.org/wiki/%2B675 -->
    <territory id="PG">
      <generalDesc>
        <nationalNumberPattern>[01]\d{2,6}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-7]"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            1[01]|
            5\d\d|
            6\d{2,5}
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          11[01]
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>000</exampleNumber>
        <nationalNumberPattern>
          000|
          11[01]
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="[4-7]"/>
        <exampleNumber>1600</exampleNumber>
        <nationalNumberPattern>16\d{2,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Philippines (PH) -->
    <!-- http://en.wikipedia.org/wiki/%2B63 -->
    <territory id="PH">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Pakistan (PK) -->
    <!-- http://www.itu.int/oth/T02020000A1/en -->
    <!-- http://en.wikipedia.org/wiki/%2B92 -->
    <territory id="PK">
      <generalDesc>
        <nationalNumberPattern>1\d{1,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            122|
            3[014]|
            [56]
          )|
          11[2457-9]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2\d?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              22?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Poland (PL) -->
    <!-- http://en.wikipedia.org/wiki/%2B48 -->
    <!-- http://www.itu.int/oth/T02020000A8/en -->
    <!-- http://www.uke.gov.pl/tablice/home.do?execution=e1s1 -->
    <territory id="PL">
      <generalDesc>
        <nationalNumberPattern>
          [19]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- 19XXX short codes are mentioned as customer service numbers in the ITU doc. These are
           probably the same numbers as the verified "+48 <area-code> 19XXX" numbers. We follow
           the ITU doc here, but it could be wrong (we may need to remove 19XXX here or we may
           need to move it to PhoneNumberMetadata.xml (e.g. with possibleLengths localOnly=5). -->
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              61(?:
                11|
                23
              )|
              891[23]
            )|
            9\d{3}
          )|
          9(?:
            8[4-7]|
            9[1-9]
          )|
          11[68]000
        </nationalNumberPattern>
      </shortCode>
      <!-- All 116XXX, "European harmonized services of social" value are toll-free.
           See: https://ec.europa.eu/digital-single-market/116-helplines. -->
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )|
          99[7-9]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[7-9]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>984</exampleNumber>
        <nationalNumberPattern>
          116\d{3}|
          9(?:
            8[4-6]|
            9[56]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- St. Pierre & Miquelon (PM) -->
    <!-- http://www.itu.int/oth/T02020000B2/en -->
    <territory id="PM">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d\d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4,6"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          31(?:
            0[0-5]|
            [1-689]\d
          )|
          (?:
            118[02-9]|
            3[02469]
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,4"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          310[0-245]|
          3(?:
            0\d|
            1[1-689]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="6"/>
        <exampleNumber>118000</exampleNumber>
        <nationalNumberPattern>118\d{3}</nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>3200</exampleNumber>
        <nationalNumberPattern>3[2469]\d\d</nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>3103</exampleNumber>
        <nationalNumberPattern>3103</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Puerto Rico (PR) -->
    <!-- http://www.itu.int/oth/T02020000AA/en -->
    <territory id="PR">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
           http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Palestine (PS) -->
    <!-- http://en.wikipedia.org/wiki/%2B970 -->
    <!-- http://www.paltel.ps/ -->
    <territory id="PS">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            122|
            44|
            66|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            66
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- 1122 is Jawwal's customer service number -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1120</exampleNumber>
        <nationalNumberPattern>112\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>10[0-2]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Portugal (PT) -->
    <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
    <territory id="PT">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              45|
              5[01]
            )|
            1(?:
              [2578]|
              600[06]
            )|
            4(?:
              1[45]|
              4
            )|
            583|
            6(?:
              1[0236]|
              3[02]|
              9[169]
            )
          )|
          1(?:
            1611|
            59
          )1|
          1[068]78|
          1[08]9[16]|
          1(?:
            0[1-38]|
            40|
            5[15]|
            6[258]|
            82
          )0
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[257]|
          1(?:
            16\d\d|
            5[1589]|
            8[279]
          )\d
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[25]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          11(?:
            6\d{3}|
            7
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Palau (PW) -->
    <!-- http://www.itu.int/oth/T02020000A2/en -->
    <territory id="PW">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Paraguay (PY) -->
    <territory id="PY">
      <generalDesc>
        <nationalNumberPattern>
          [12459]\d\d(?:
            \d{3,4}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6,7"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          [1245][01]\d{5}|
          (?:
            1[1-9]|
            [245]0\d{3}
          )\d|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>128</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="6,7"/>
        <exampleNumber>200000</exampleNumber>
        <nationalNumberPattern>
          [1245][01]\d{5}|
          [245]0\d{4}
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>128</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="6,7"/>
        <exampleNumber>200000</exampleNumber>
        <nationalNumberPattern>
          [1245][01]\d{5}|
          [245]0\d{4}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Qatar (QA) -->
    <territory id="QA">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          9(?:
            00|
            [19]\d
          )|
          (?:
            1|
            20|
            9[27]\d
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>990</exampleNumber>
        <nationalNumberPattern>99\d</nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="3"/>
        <exampleNumber>900</exampleNumber>
        <nationalNumberPattern>900</nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>990</exampleNumber>
        <nationalNumberPattern>99[0-8]</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Réunion (RE) -->
    <!-- http://www.itu.int/oth/T020200004B/en -->
    <territory id="RE">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Romania (RO) -->
    <!-- http://www.itu.int/oth/T02020000AC/en -->
    <!-- https://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
    <territory id="RO">
      <generalDesc>
        <nationalNumberPattern>[18]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [23]|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8(?:
                (?:
                  01|
                  8[18]
                )1|
                119|
                [23]00|
                932
              )
            )|
            [24]\d\d|
            9(?:
              0(?:
                00|
                19
              )|
              1[19]|
              21|
              3[02]|
              5[178]
            )
          )|
          8[48]\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [23]|
            6\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4,6"/>
        <exampleNumber>1200</exampleNumber>
        <nationalNumberPattern>
          (?:
            1(?:
              18[39]|
              [24]
            )|
            8[48]
          )\d\d
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          11(?:
            3|
            6\d{3}
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="3,4"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          113|
          (?:
            1[24]|
            8[48]
          )\d\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Serbia (RS) -->
    <territory id="RS">
      <generalDesc>
        <nationalNumberPattern>[19]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>92</exampleNumber>
        <nationalNumberPattern>
          1[189]\d{1,4}|
          9[2-4]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>92</exampleNumber>
        <nationalNumberPattern>
          112|
          9[2-4]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>92</exampleNumber>
        <nationalNumberPattern>
          112|
          9[2-4]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Russia (RU) -->
    <!-- http://www.itu.int/oth/T02020000AD/en -->
    <!-- http://en.wikipedia.org/wiki/%2B7 -->
    <territory id="RU">
      <generalDesc>
        <nationalNumberPattern>[01]\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          112|
          (?:
            0|
            10
          )[1-4]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          112|
          (?:
            0|
            10
          )[1-3]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          112|
          (?:
            0|
            10
          )[1-3]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Rwanda (RW) -->
    <!-- http://en.wikipedia.org/wiki/+250 -->
    <territory id="RW">
      <generalDesc>
        <nationalNumberPattern>[14]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            1[0-24-6]|
            2[13]|
            70|
            99
          )|
          456
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>11[1245]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>11[12]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>11[45]</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Saudi Arabia (SA) -->
    <!-- http://www.itu.int/oth/T02020000B7/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
    <territory id="SA">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              00|
              2|
              6111
            )|
            410|
            9(?:
              00|
              1[89]|
              9(?:
                099|
                22|
                9[0-3]
              )
            )
          )|
          9(?:
            0[24-79]|
            11|
            3[379]|
            40|
            66|
            8[5-9]|
            9[02-9]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.childhelplineinternational.org/media/40652/speaker_3_-_saudi_arabia__2_.pdf
           says that 116111 is free. http://www.arabnews.com/news/451698 talks about 937 being
           toll free. -->
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            6\d{3}
          )|
          9(?:
            11|
            37|
            9[7-9]
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- This is listed on
           http://www.mobily.com.sa/portalu/wps/portal/personal/services/video-and-voice-calls/voice-mail/?lang=en
           as costing 25 per minute. The normal mobile rate for calls is 10-30. -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1410</exampleNumber>
        <nationalNumberPattern>141\d</nationalNumberPattern>
      </standardRate>
      <!-- 1410 is the Mobily voicemail number. -->
      <carrierSpecific>
        <possibleLengths national="3,4"/>
        <exampleNumber>902</exampleNumber>
        <nationalNumberPattern>
          1(?:
            10|
            41
          )\d|
          90[24679]
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          9(?:
            11|
            9[79]
          )
        </nationalNumberPattern>
      </emergency>
      <!-- 116 111 is set up for counselling and referral services in Saudi Arabia, not emergency
           cases. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>937</exampleNumber>
        <nationalNumberPattern>
          9(?:
            [38]7|
            66|
            9[68]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Solomon Islands (SB) -->
    <territory id="SB">
      <generalDesc>
        <nationalNumberPattern>[127-9]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [02]\d|
            1[12]|
            [35][01]|
            [49][1-9]|
            6[2-9]|
            7[7-9]|
            8[0-8]
          )|
          269|
          777|
          835|
          9(?:
            [01]1|
            22|
            33|
            55|
            77|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Seychelles (SC) -->
    <territory id="SC">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [06]\d|
            1[0-246-8]|
            2[0-8]|
            3[13]|
            4[0-2]|
            5[15]|
            7[124-6]|
            8[158]|
            9[015]
          )|
          9(?:
            6\d\d|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[1468]|
            60
          )|
          999
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[1468]|
            60
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Sudan (SD) -->
    <!-- http://www.itu.int/oth/T02020000C4/en -->
    <territory id="SD">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Sweden (SE) -->
    <!-- https://pts.se/en/internet-and-telephony/numbering-and-addressing/ -->
    <!-- http://www.etiskaradet.se/sidor/om-sms-tjanster.aspx -->
    <territory id="SE">
      <generalDesc>
        <nationalNumberPattern>[1-37-9]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [25]|
            313|
            6(?:
              00[06]|
              1(?:
                1[17]|
                23
              )
            )|
            7[0-8]
          )|
          2(?:
            2[02358]|
            33|
            4[01]|
            50|
            6[1-4]
          )|
          32[13]|
          8(?:
            22|
            88
          )|
          9(?:
            0(?:
              00|
              51
            )0|
            12
          )|
          (?:
            11(?:
              4|
              8[02-46-9]
            )|
            7\d\d|
            90[2-4]
          )\d\d|
          (?:
            118|
            90
          )1(?:
            [02-9]\d|
            1[013-9]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            (?:
              3|
              6\d
            )\d\d|
            414|
            77
          )|
          900\d\d
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>72000</exampleNumber>
        <nationalNumberPattern>
          11811[89]|
          72\d{3}
        </nationalNumberPattern>
      </premiumRate>
      <!-- None of the numbers are specified in the numbering plan, they
           have been found on operator homepages. -->
      <!-- http://www.bth.se/for/telefoni.nsf/bilagor/Lathund_Telenor_One_2_0_pdf/$file/Lathund_Telenor_One_2.0.pdf -->
      <!-- http://www.tele2.se/foretag/files/manual_tele2mobil_mini.pdf -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>220</exampleNumber>
        <nationalNumberPattern>
          2(?:
            2[02358]|
            33|
            4[01]|
            50|
            6[1-4]
          )|
          32[13]|
          8(?:
            22|
            88
          )|
          912
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          90000
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>1177</exampleNumber>
        <nationalNumberPattern>
          11(?:
            3\d\d|
            414|
            6(?:
              000|
              1(?:
                11|
                2\d
              )
            )|
            77
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- http://www.etiskaradet.se/sidor/om-sms-tjanster.aspx -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>70000</exampleNumber>
        <nationalNumberPattern>7\d{4}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Singapore (SG) -->
    <territory id="SG">
      <generalDesc>
        <nationalNumberPattern>[179]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            (?:
              [01368]\d|
              44
            )\d|
            [57]\d{2,3}|
            9(?:
              0[1-9]|
              [1-9]\d
            )
          )|
          77222|
          99[02-9]|
          100
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>993</exampleNumber>
        <nationalNumberPattern>99[359]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>993</exampleNumber>
        <nationalNumberPattern>99[359]</nationalNumberPattern>
      </emergency>
      <!-- 77222 is an SMS shortcode based on a user report and online results. -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>77200</exampleNumber>
        <nationalNumberPattern>772\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- St. Helena (SH) -->
    <territory id="SH">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1\d{2,3}|
          26[01]\d\d|
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.sthelenatourism.com/pages/fast_facts.html#Emergencies -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Slovenia (SI) -->
    <!-- http://www.itu.int/oth/T02020000BE/en -->
    <territory id="SI">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              00[146]|
              [23]|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8(?:
                [08]|
                99
              )
            )|
            9(?:
              059|
              1(?:
                0[12]|
                16
              )|
              5|
              70|
              87|
              9(?:
                00|
                [149]
              )
            )
          )|
          19(?:
            08|
            81
          )[09]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            (?:
              0|
              6\d
            )\d\d|
            [23]|
            8\d\d?
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[23]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>1180</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [08]|
            6\d
          )\d\d|
          118\d
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Svalbard & Jan Mayen (SJ) -->
    <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
    <territory id="SJ">
      <generalDesc>
        <nationalNumberPattern>
          [01]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          04\d{3}|
          11[023]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </tollFree>
      <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>04000</exampleNumber>
        <nationalNumberPattern>04\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Slovakia (SK) -->
    <!-- http://www.itu.int/oth/T02020000BD/en -->
    <!-- https://www.ezd.sk/dbpc/databazacisel.php -->
    <!-- http://www.teleoff.gov.sk/data/files/25211.pdf -->
    <territory id="SK">
      <generalDesc>
        <nationalNumberPattern>1\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- As per online evidence 16xxx and 17xxx short codes cannot be dailled without area code,
           so it is not included here. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                111
              )|
              8[0-8]
            )|
            [248]\d{3}|
            5[0589]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}
            )|
            5[058]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5[058]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>159</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            59
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Sierra Leone (SL) -->
    <!-- http://www.itu.int/oth/T02020000BB/en -->
    <territory id="SL">
      <generalDesc>
        <nationalNumberPattern>
          [069]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>019</exampleNumber>
        <nationalNumberPattern>
          (?:
            01|
            99
          )9|
          60400
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>019</exampleNumber>
        <nationalNumberPattern>
          (?:
            01|
            99
          )9
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>60400</exampleNumber>
        <nationalNumberPattern>604\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>019</exampleNumber>
        <nationalNumberPattern>
          (?:
            01|
            99
          )9
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>60400</exampleNumber>
        <nationalNumberPattern>604\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- San Marino (SM) -->
    <!-- http://www.itu.int/oth/T02020000B5/en -->
    <territory id="SM">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Senegal (SN) -->
    <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000B80001PDFE.pdf -->
    <!-- http://www.artpsenegal.net/images/documents/document_Structure_plan_national_de_numerotation_PNN_2012_231.pdf -->
    <territory id="SN">
      <generalDesc>
        <nationalNumberPattern>[12]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>12</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[69]|
            (?:
              [246]\d|
              51
            )\d
          )|
          2(?:
            0[0-246]|
            [12468]
          )\d{3}|
          1[278]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,[4-6]"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1(?:
            515|
            [78]
          )|
          2(?:
            00|
            1
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>22000</exampleNumber>
        <nationalNumberPattern>
          2(?:
            01|
            2
          )\d{3}
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>24000</exampleNumber>
        <nationalNumberPattern>
          2(?:
            0[246]|
            [468]
          )\d{3}
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1400</exampleNumber>
        <nationalNumberPattern>1[46]\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
      <!-- 1515 is added as expanded emergency according to official documentation at
           www.artpsenegal.net, and www.samu.sn suggesting that it's for disaster management. -->
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>116</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[69]|
            221|
            515
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>24000</exampleNumber>
        <nationalNumberPattern>2[468]\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Somalia (SO) -->
    <territory id="SO">
      <generalDesc>
        <nationalNumberPattern>[57-9]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>555</exampleNumber>
        <nationalNumberPattern>
          555|
          777|
          888|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>555</exampleNumber>
        <nationalNumberPattern>
          555|
          888|
          999
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>555</exampleNumber>
        <nationalNumberPattern>
          555|
          888|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>777</exampleNumber>
        <nationalNumberPattern>777</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Suriname (SR) -->
    <territory id="SR">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>115</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>115</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- South Sudan (SS) -->
    <territory id="SS">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- São Tomé & Príncipe (ST) -->
    <!-- http://www.itu.int/oth/T02020000B6/en -->
    <territory id="ST">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </tollFree>
      <!-- http://www.netglobers.com/africa/s%C3%A3o-tome-and-principe-emergency-numbers-in-s%C3%A3o-tome-and-principe.html -->
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1010.html -->
      <!-- http://www.tipredaktion.net/consumer/lufthansa_en/tip-ST-1.html -->
      <!-- Emergency numbers longer than 3 digits covered by fixed-line. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- El Salvador (SV) -->
    <!-- http://www.itu.int/oth/T020200003F/en -->
    <territory id="SV">
      <generalDesc>
        <nationalNumberPattern>
          [149]\d\d(?:
            \d{2,3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6111
            )|
            2[136-8]|
            3[0-6]|
            9[05]
          )|
          40404|
          9(?:
            1\d|
            29
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          116\d{3}|
          911
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[13]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40400</exampleNumber>
        <nationalNumberPattern>404\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Sint Maarten (SX) -->
    <!-- http://www.nanpa.com/pdf/PL_429.pdf -->
    <!-- http://www.itu.int/oth/T02020000F7/en -->
    <territory id="SX">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>919</exampleNumber>
        <nationalNumberPattern>
          9(?:
            19|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>919</exampleNumber>
        <nationalNumberPattern>
          9(?:
            19|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>919</exampleNumber>
        <nationalNumberPattern>919</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Syria (SY) -->
    <!-- http://www.itu.int/oth/T02020000C9/en -->
    <!-- http://en.wikipedia.org/wiki/%2B963 -->
    <territory id="SY">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Eswatini (SZ) -->
    <!-- http://www.itu.int/oth/T02020000C6/en -->
    <territory id="SZ">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
      <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Turks & Caicos Islands (TC) -->
    <!-- http://www.itu.int/oth/T02020000D8/en -->
    <territory id="TC">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <!-- http://s2.turksandcaicosyp.com/Turks-Caicos/Government/2/book -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Chad (TD) -->
    <!-- http://www.itu.int/oth/T0202000029/en -->
    <territory id="TD">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Togo (TG) -->
    <!-- http://www.itu.int/oth/T02020000D1/en -->
    <!-- https://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=212 -->
    <territory id="TG">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            011|
            1[078]|
            7[127]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            7[127]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            7[127]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            01\d|
            10
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Thailand (TH) -->
    <!-- http://www.itu.int/oth/T02020000CD/en -->
    <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
    <!-- http://en.wikipedia.org/wiki/+66 -->
    <!-- Other numbers found in online searches. -->
    <territory id="TH">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            1(?:
              0[03]|
              1[1-35]|
              2[0358]|
              3[03-79]|
              4[02-489]|
              5[04-9]|
              6[04-79]|
              7[03-9]|
              8[027-9]|
              9[02-9]
            )|
            2(?:
              22|
              3[89]|
              66
            )|
            3(?:
              18|
              2[23]|
              3[013]|
              5[56]|
              6[45]|
              73
            )|
            477|
            5(?:
              0\d|
              4[0-37-9]|
              5[1-8]|
              6[01679]|
              7[12568]|
              8[0-24589]|
              9[013589]
            )|
            6(?:
              0[0-29]|
              2[03]|
              4[3-6]|
              6[1-9]|
              7[0257-9]|
              8[0158]|
              9[014-9]
            )|
            7(?:
              [14]9|
              7[27]|
              90
            )|
            888|
            9[19]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              00|
              2[03]|
              3[3479]|
              7[67]|
              9[0246]
            )|
            578|
            6(?:
              44|
              6[79]|
              88|
              9[16]
            )|
            88\d|
            9[19]
          )|
          1[15]55
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1103</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              03|
              1[15]|
              2[58]|
              3[056]|
              4[02-49]|
              5[046-9]|
              7[03-589]|
              9[57-9]
            )|
            5(?:
              0[0-8]|
              4[0-378]|
              5[1-478]|
              7[156]
            )|
            6(?:
              20|
              4[356]|
              6[1-68]|
              7[057-9]|
              8[015]|
              9[0457-9]
            )
          )|
          1(?:
            1[68]|
            26|
            3[1-35]|
            5[689]|
            60|
            7[17]
          )\d
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>1113</exampleNumber>
        <nationalNumberPattern>
          1(?:
            113|
            2[23]\d|
            5(?:
              09|
              56
            )
          )
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1148</exampleNumber>
        <nationalNumberPattern>114[89]</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>
          1(?:
            669|
            9[19]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4"/>
        <exampleNumber>1193</exampleNumber>
        <nationalNumberPattern>
          1(?:
            193|
            691
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Tajikistan (TJ) -->
    <!-- http://www.itu.int/oth/T02020000CA/en -->
    <territory id="TJ">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Timor-Leste (TL) -->
    <territory id="TL">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[02]|
            1[25]|
            2[0138]|
            72|
            9[07]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[25]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[25]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Turkmenistan (TM) -->
    <!-- http://www.itu.int/oth/T02020000D7/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan -->
    <territory id="TM">
      <generalDesc>
        <nationalNumberPattern>0\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>0[1-49]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>0[1-49]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.netglobers.com/asia/turkmenistan-emergency-numbers-in-turkmenistan.html
           http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=301000 -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>0[1-3]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tunisia (TN) -->
    <!-- http://www.itu.int/oth/T02020000D5/en -->
    <!-- http://www.tunisietelecom.tn/tt/wcm/connect/?MOD=PDMProxy&TYPE=personalization&ID=NONE&KEY=NONE&LIBRARY=%2FcontentRoot%2Ficm%3Alibraries%5B16%5D&FOLDER=%2F&DOC_NAME=%2FcontentRoot%2Ficm%3Alibraries%5B16%5D%2FOTTI+2011.pdf -->
    <territory id="TN">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>190</exampleNumber>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tonga (TO) -->
    <!-- http://www.itu.int/oth/T02020000D3/en -->
    <!-- http://www.wtng.info/wtng-676-to.html -->
    <territory id="TO">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.tongaholiday.com/?page_id=2034 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Türkiye (TR) -->
    <territory id="TR">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <!-- We use a granularity of 2 digits for 28XX and 5[4-6]XX short codes based on those we
           have found online. Added support to individual short codes based on these docs:
           http://www.avea.com.tr/web/media/Files/Bagisservisleri/bagisservisleri.pdf?noredir=1
           and http://www.ttrehber.turktelekom.com.tr/trk-web/ozelservisnumaralari.html.
           No official short code numbering plan found for Turkey to support complete ranges. -->
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [02-79]|
              8(?:
                1[018]|
                2[0245]|
                3[2-4]|
                42|
                5[058]|
                6[06]|
                7[07]|
                8[01389]|
                9[089]
              )
            )|
            3(?:
              37|
              [58]6|
              65
            )|
            471|
            5(?:
              07|
              78
            )|
            6(?:
              [02]6|
              99
            )|
            8(?:
              63|
              95
            )
          )|
          2(?:
            077|
            268|
            4(?:
              17|
              23
            )|
            5(?:
              7[26]|
              82
            )|
            6[14]4|
            8\d\d|
            9(?:
              30|
              89
            )
          )|
          3(?:
            0(?:
              05|
              72
            )|
            353|
            4(?:
              06|
              30|
              64
            )|
            502|
            674|
            747|
            851|
            9(?:
              1[29]|
              60
            )
          )|
          4(?:
            0(?:
              25|
              3[12]|
              [47]2
            )|
            3(?:
              3[13]|
              [89]1
            )|
            439|
            5(?:
              43|
              55
            )|
            717|
            832
          )|
          5(?:
            145|
            290|
            [4-6]\d\d|
            772|
            833|
            9(?:
              [06]1|
              92
            )
          )|
          6(?:
            236|
            6(?:
              12|
              39|
              8[59]
            )|
            769
          )|
          7890|
          8(?:
            688|
            7(?:
              28|
              65
            )|
            85[06]
          )|
          9(?:
            159|
            290
          )|
          1[2-9]\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[02]|
            22|
            3[126]|
            4[04]|
            5[15-9]|
            6[18]|
            77|
            83
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- As per Vodafone's article http://www.vodafone.com.tr/Net/vodafonenet-basvuru.php#sms,
           5420 is an SMS only service and its cost is based on the end user's carrier. However it
           is charged at standard rate as per above article. -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>2850</exampleNumber>
        <nationalNumberPattern>
          (?:
            285|
            542
          )0
        </nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[02]|
            55
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>
          1(?:
            22|
            3[12]|
            5[137]|
            61|
            [78]7
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- All 28XX and 5XXX numbers found online are used for sms services. Ex: 2850, 2868, 5420,
           5560, 5664. -->
      <smsServices>
        <possibleLengths national="3,4"/>
        <exampleNumber>144</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3(?:
              37|
              [58]6|
              65
            )|
            4(?:
              4|
              71
            )|
            5(?:
              07|
              78
            )|
            6(?:
              [02]6|
              99
            )|
            8(?:
              3|
              63|
              95
            )
          )|
          (?:
            2(?:
              07|
              26|
              4[12]|
              5[78]|
              6[14]|
              8\d|
              9[38]
            )|
            3(?:
              0[07]|
              [38]5|
              4[036]|
              50|
              67|
              74|
              9[16]
            )|
            4(?:
              0[2-47]|
              3[389]|
              [48]3|
              5[45]|
              71
            )|
            5(?:
              14|
              29|
              [4-6]\d|
              77|
              83|
              9[069]
            )|
            6(?:
              23|
              6[138]|
              76
            )|
            789|
            8(?:
              68|
              7[26]|
              85
            )|
            9(?:
              15|
              29
            )
          )\d
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Trinidad & Tobago (TT) -->
    <!-- http://www.itu.int/oth/T02020000D4/en -->
    <territory id="TT">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>
          9(?:
            88|
            9[09]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>
          9(?:
            88|
            9[09]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>990</exampleNumber>
        <nationalNumberPattern>99[09]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Tuvalu (TV) -->
    <!-- http://www.itu.int/oth/T02020000D9/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
    <territory id="TV">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1\d\d|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Taiwan (TW) -->
    <!-- http://www.itu.int/oth/T02020000EB/en -->
    <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
         chosen as the preferred extension prefix. -->
    <territory id="TW">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[04-6]|
            1[0237-9]|
            3[389]|
            6[05-8]|
            7[07]|
            8(?:
              0|
              11
            )|
            9(?:
              19|
              22|
              5[057]|
              68|
              8[05]|
              9[15689]
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[0289]|
          1(?:
            81|
            92
          )\d
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>165</exampleNumber>
        <nationalNumberPattern>
          1(?:
            65|
            9(?:
              1\d|
              50|
              85|
              98
            )
          )
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="3"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>10[56]</nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[029]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tanzania (TZ) -->
    <!-- http://www.itu.int/oth/T02020000CB/en -->
    <territory id="TZ">
      <generalDesc>
        <nationalNumberPattern>
          [149]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1\d|
            9[09]
          )|
          46400|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[0-79]|
            9[09]
          )|
          999
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>46400</exampleNumber>
        <nationalNumberPattern>464\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1038.html
           http://in2eastafrica.net/emergency-numbers-in-tanzania -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>
          11[0-245]|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>116</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[67]|
            99
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>46400</exampleNumber>
        <nationalNumberPattern>464\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ukraine (UA) -->
    <!-- http://www.itu.int/oth/T02020000DB/en -->
    <!-- http://en.wikipedia.org/wiki/%2B380 -->
    <territory id="UA">
      <generalDesc>
        <nationalNumberPattern>[189]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-49]|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d\d?
            )|
            (?:
              [278]|
              5\d
            )\d
          )|
          [89]00\d\d?|
          151|
          1(?:
            06|
            4\d|
            6
          )\d\d
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            1(?:
              2|
              6\d{3}
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>1180</exampleNumber>
        <nationalNumberPattern>
          (?:
            118|
            [89]00
          )\d\d?
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Uganda (UG) -->
    <!-- http://www.itu.int/oth/T02020000F1/en -->
    <territory id="UG">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- United States (US) -->
    <!-- http://en.wikipedia.org/wiki/North_American_Numbering_Plan#Special_numbers_and_codes -->
    <!-- http://en.wikipedia.org/wiki/Vertical_service_code -->
    <!-- http://www.call811.com/how-811-works/default.aspx -->
    <territory id="US">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            2|
            5[1-47]|
            [68]\d|
            7[0-57]|
            98
          )|
          [2-9]\d{3,5}|
          [2-8]11|
          9(?:
            11|
            33|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          611|
          9(?:
            11|
            33|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- 29002 is standard rate as per test results. -->
      <standardRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>23333</exampleNumber>
        <nationalNumberPattern>
          2(?:
            3333|
            (?:
              4224|
              7562|
              900
            )2|
            56447|
            6688
          )|
          3(?:
            1010|
            2665|
            7404
          )|
          40404|
          560560|
          6(?:
            0060|
            22639|
            5246|
            7622
          )|
          7(?:
            0701|
            3822|
            4666
          )|
          8(?:
            (?:
              3825|
              7226
            )5|
            4816
          )|
          99099
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>24280</exampleNumber>
        <nationalNumberPattern>
          24280|
          (?:
            381|
            968
          )35|
          4(?:
            3355|
            7553|
            8221
          )|
          5(?:
            (?:
              489|
              934
            )2|
            5928
          )|
          72078|
          (?:
            323|
            960
          )40|
          (?:
            276|
            414
          )63|
          (?:
            2(?:
              520|
              744
            )|
            7390|
            9968
          )9|
          (?:
            693|
            732|
            976
          )88|
          (?:
            3(?:
              556|
              825
            )|
            5294|
            8623|
            9729
          )4|
          (?:
            3378|
            4136|
            7642|
            8961|
            9979
          )6|
          (?:
            4(?:
              6(?:
                15|
                32
              )|
              827
            )|
            (?:
              591|
              720
            )8|
            9529
          )7
        </nationalNumberPattern>
      </premiumRate>
      <!-- https://support.google.com/plus/answer/1304917
           611 is listed as working from "most" wireless carriers. 211 has complete coverage
           only in 38 states. -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>
          336\d\d|
          [2-9]\d{3}|
          [2356]11
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>933</exampleNumber>
        <nationalNumberPattern>
          9(?:
            33|
            88
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5,6"/>
        <exampleNumber>20000</exampleNumber>
        <nationalNumberPattern>[2-9]\d{4,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Uruguay (UY) -->
    <!-- http://www.itu.int/oth/T02020000E0/en -->
    <!-- http://www.ursec.gub.uy -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay -->
    <territory id="UY">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[4-9]|
            1[2368]|
            2[0-3568]|
            787|
            997\d?
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>128</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1780</exampleNumber>
        <nationalNumberPattern>178\d</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>128</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Uzbekistan (UZ) -->
    <!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
    <!-- http://www.itu.int/oth/T02020000E1/en -->
    <territory id="UZ">
      <generalDesc>
        <nationalNumberPattern>
          [04]\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3,5"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            0[1-3]|
            [1-3]|
            50
          )|
          45400
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            0[1-3]|
            [1-3]|
            50
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>45400</exampleNumber>
        <nationalNumberPattern>454\d\d</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1057.html
           http://www.expat.uz/index.php?/Emergency-Numbers.html
           http://www.mts.uz/en/citycodes/how_to_call_sos
           Note that the third source, for a local mobile company, comments that a '*' needs to
           be dialled before the 2-digit emergency numbers on their cell-phone. This is not
           explicitly handled here, but instead is handled by normalising input in the code. -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>01</exampleNumber>
        <nationalNumberPattern>
          0(?:
            0[1-3]|
            [1-3]|
            50
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>45400</exampleNumber>
        <nationalNumberPattern>454\d\d</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Vatican City (VA) -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
    <territory id="VA">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- St. Vincent & Grenadines (VC) -->
    <!-- http://www.itu.int/oth/T02020000B3/en -->
    <territory id="VC">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://barbados.usembassy.gov/emergency-svg.html
           http://travel.state.gov/travel/cis_pa_tw/cis/cis_1028.html?action=/travel/cis_pa_tw/cis/cis_1100.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Venezuela (VE) -->
    <!-- http://www.itu.int/oth/T02020000E3/en -->
    <!-- http://en.wikipedia.org/wiki/+58 -->
    <!-- http://wikitravel.org/en/Venezuela -->
    <territory id="VE">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- British Virgin Islands (VG) -->
    <!-- http://www.itu.int/oth/T020200001E/en -->
    <territory id="VG">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88|
            99
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://barbados.usembassy.gov/emergency-bvi.html
           http://www.britishvirginislands.com/ntk_emergency.htm -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- U.S. Virgin Islands (VI) -->
    <!-- http://www.itu.int/oth/T02020000DF/en -->
    <territory id="VI">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            88
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>988</exampleNumber>
        <nationalNumberPattern>988</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Vietnam (VN) -->
    <!-- http://www.itu.int/oth/T02020000E4/en -->
    <!-- http://en.wikipedia.org/wiki/%2B84 -->
    <territory id="VN">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[3-5]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[3-5]</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[3-5]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Vanuatu (VU) -->
    <!-- http://www.itu.int/oth/T02020000E2/en -->
    <territory id="VU">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Wallis & Futuna (WF) -->
    <!-- http://www.itu.int/oth/T02020000E6/en -->
    <territory id="WF">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </tollFree>
      <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Samoa (WS) -->
    <!-- http://www.itu.int/oth/T02020000B4/en -->
    <territory id="WS">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <!-- 608 is assigned to Adaway Publication centre, but it seems to be expired
           http://www.adaway.ws/ -->
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[12]|
            2[0-6]|
            [39]0
          )|
          9(?:
            11|
            9[4-79]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            9[4-69]
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>120</exampleNumber>
        <nationalNumberPattern>12[0-6]</nationalNumberPattern>
      </carrierSpecific>
      <!-- 911 and 99[4-6] numbers re-route to 999. Also 999 will be the only emergency numbers
           after 2 years. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            9[4-69]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Kosovo (XK) -->
    <!-- https://www.itu.int/oth/T02020000FD/en -->
    <territory id="XK">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Yemen (YE) -->
    <!-- http://www.itu.int/oth/T02020000E7/en -->
    <territory id="YE">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>19[1459]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>19[1459]</nationalNumberPattern>
      </tollFree>
      <!-- http://www.yemenypages.com/en/emergency_numbers.aspx -->
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <!-- http://www.netglobers.com/asia/yemen-emergency-numbers-in-yemen.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>191</exampleNumber>
        <nationalNumberPattern>19[1459]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Mayotte (YT) -->
    <territory id="YT">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
      <!-- http://www.sccfd.org/travel.html -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- South Africa (ZA) -->
    <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000C10001PDFE.pdf -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa -->
    <!-- https://www.icasa.org.za/Portals/0/Regulations/Regulations/NumberingPlanReg.pdf -->
    <!-- Check http://smscode.co.za/index.asp for verification of short codes and cost
         information. -->
    <territory id="ZA">
      <generalDesc>
        <nationalNumberPattern>[134]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <!-- As per ITU doc, short codes only start with 1[0124], 17[37], 3 and 4. -->
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>107</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              1(?:
                11|
                77
              )|
              20|
              7
            )|
            1[12]|
            77(?:
              3[237]|
              [45]7|
              6[279]|
              9[26]
            )
          )|
          [34]\d{4}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            01\d\d|
            12
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- 37064, 42699, 43699, 43941, 43946 and 48837 are charged at standard rate w.r.t carrier
           as per confirmation from smsportal.co.za. 3078[23] are standard rate as per test
           results. -->
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>30782</exampleNumber>
        <nationalNumberPattern>
          3(?:
            078[23]|
            7(?:
              064|
              567
            )|
            8126
          )|
          4(?:
            394[16]|
            7751|
            8837
          )|
          4[23]699
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>41348</exampleNumber>
        <nationalNumberPattern>
          41(?:
            348|
            851
          )
        </nationalNumberPattern>
      </premiumRate>
      <!-- 111 is a vodafone customer service number. -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>111</nationalNumberPattern>
      </carrierSpecific>
      <!-- 107 is a harmonized number for emergency call services. Online articles say that it
           cannot be dialled from mobile and is available only in Cape Town, such as
           https://www.westerncape.gov.za/service/calling-help-emergency and
           https://en.wikipedia.org/wiki/List_of_emergency_telephone_numbers so we omit it here. -->
      <emergency>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            01(?:
              11|
              77
            )|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- All [34]XXXX numbers found online are used for sms services. Ex: 37567, 47751, 37064
           and 43699. -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>30000</exampleNumber>
        <nationalNumberPattern>[34]\d{4}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Zambia (ZM) -->
    <!-- http://www.itu.int/oth/T02020000E8/en -->
    <territory id="ZM">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[139]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[139]
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[139]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Zimbabwe (ZW) -->
    <!-- http://www.itu.int/oth/T02020000E9/en -->
    <territory id="ZW">
      <generalDesc>
        <nationalNumberPattern>
          [139]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11[2469]|
          3[013-57-9]\d{3}|
          9(?:
            5[023]|
            6[0-25]|
            9[3-59]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 95[023] and 961 are toll-free as per official articles. -->
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          9(?:
            5[023]|
            61|
            9[3-59]
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>30000</exampleNumber>
        <nationalNumberPattern>3[013-57-9]\d{3}</nationalNumberPattern>
      </premiumRate>
      <!-- 114 emergency short code works only for NetOne subscribers. 95[023] and 96[0-25] short
           codes can be dialled only from fixed-line. So adding here to alarm that they do not
           work for all. -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          114|
          9(?:
            5[023]|
            6[0-25]
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[3-59]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>114</nationalNumberPattern>
      </expandedEmergency>
    </territory>

  </territories>
</phoneNumberMetadata>
