<!-- 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 -->
    <!-- www.itu.int/oth/T02020000AF -->
    <territory id="AC">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </shortCode>
      <!-- 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>911</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- United Arab Emirates -->
    <!-- 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[789]
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[789]
        </nationalNumberPattern>
      </emergency>
      <!-- As per online evidences, 4451 and 4456 are SMS-able short codes. -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4451</exampleNumber>
        <nationalNumberPattern>445[16]</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Afghanistan -->
    <!-- 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>119</exampleNumber>
        <nationalNumberPattern>
          1(?:
            02|
            19
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>119</exampleNumber>
        <nationalNumberPattern>
          1(?:
            02|
            19
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Antigua and Barbuda -->
    <!-- http://www.itu.int/oth/T0202000008/en -->
    <territory id="AG">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          176|
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Anguilla -->
    <!-- http://www.itu.int/oth/T0202000007/en -->
    <territory id="AI">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Albania -->
    <!-- http://www.itu.int/oth/T0202000002/en -->
    <territory id="AL">
      <generalDesc>
        <nationalNumberPattern>[15]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>129</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              \d|
              6(?:
                000|
                1(?:
                  06|
                  11|
                  23
                )
              )|
              8\d{2}
            )|
            2[2-9]|
            [349]\d|
            65\d|
            89[12]
          )|
          5\d{4}
        </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>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3[15]|
            41|
            16\d{3}
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>50123</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>129</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(?:
            2[56]|
            16\d{3}
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="3,5"/>
        <exampleNumber>51234</exampleNumber>
        <nationalNumberPattern>
          131|
          5\d{4}
        </nationalNumberPattern>
      </smsServices>
    </territory>

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

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

    <!-- Argentina -->
    <!-- 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>121</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            0[0-35-7]|
            1[02-5]|
            2[15]|
            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>111</exampleNumber>
        <nationalNumberPattern>
          [09]\d{2}|
          1(?:
            [02-9]\d?|
            1[0-24-9]?
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>89338</exampleNumber>
        <nationalNumberPattern>89338</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>101</exampleNumber>
        <nationalNumberPattern>
          10[017]|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>103</exampleNumber>
        <nationalNumberPattern>10[356]</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>3372</exampleNumber>
        <nationalNumberPattern>
          3372|
          89338
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- American Samoa -->
    <!-- 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|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Austria -->
    <!-- http://www.rtr.at/en/tk/E129 -->
    <territory id="AT">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  17|
                  23
                )
              )
            )|
            22|
            33|
            44
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              17|
              23
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [12]2|
            33|
            44
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              17|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Australia -->
    <!-- Country calling code shared with Cocos Islands (CC) and Christmas Islands (CX) -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            1(?:
              00|
              2|
              9[46]
            )|
            2(?:
              [23]\d|
              4\d{2,3}|
              5\d{3,4}|
              8(?:
                2|
                [013-9]\d
              )
            )|
            555|
            9\d{4,6}
          )|
          225|
          7(?:
            33|
            67
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,7"/>
        <exampleNumber>733</exampleNumber>
        <nationalNumberPattern>
          1(?:
            258885|
            555
          )|
          733
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>225</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1\d{2}|
            24733
          )|
          225|
          767
        </nationalNumberPattern>
      </standardRate>
      <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
      <premiumRate>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>191123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2(?:
              34|
              456
            )|
            9\d{4}
          )
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
      <carrierSpecific>
        <possibleLengths national="4,7"/>
        <exampleNumber>1555</exampleNumber>
        <nationalNumberPattern>
          1(?:
            258885|
            555
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="[6-8]"/>
        <exampleNumber>191123</exampleNumber>
        <nationalNumberPattern>19\d{4,6}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Aruba -->
    <!-- http://www.itu.int/oth/T020200000B/en -->
    <territory id="AW">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            76
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>911</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. -->
    <!-- Country calling code shared with Finland. -->
    <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{2}
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Azerbaijan -->
    <!-- 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[123]|
            12
          )|
          4040|
          8800
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          4040|
          8800
        </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[123]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>
          4040|
          8800
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Bosnia and Herzegovina -->
    <!-- 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(?:
            1(?:
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d{1,2}
            )|
            2(?:
              0[0-7]|
              [2-5]|
              6[0-26]|
              [78]\d{1,2}
            )|
            [3-5]\d{2}|
            7\d{3}
          )
        </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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>12[2-4]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Barbados -->
    <!-- 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>[2-689]11</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>[2359]11</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Belgium -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-8]|
            1(?:
              [027]|
              6(?:
                000|
                117
              )
            )|
            2(?:
              0[47]|
              12|
              3[0-24]|
              99
            )|
            3(?:
              0[47]|
              13|
              99
            )|
            4(?:
              0[47]|
              14|
              50|
              99
            )|
            5(?:
              1[05]|
              5[15]|
              66|
              95
            )|
            6(?:
              1[167]|
              36|
              6[16]
            )|
            7(?:
              0[07]|
              1[27-9]|
              22|
              33|
              65|
              7[017]|
              89
            )|
            81[39]
          )|
          [2-9]\d{3}
        </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>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[25-8]|
            1(?:
              0|
              6\d{3}
            )|
            7(?:
              12|
              77
            )|
            813
          )|
          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>7212</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2(?:
              12|
              34
            )|
            3(?:
              07|
              13
            )|
            414|
            \d04
          )|
          [2-79]\d{3}
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</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>116000</exampleNumber>
        <nationalNumberPattern>
          11(?:
            0|
            6000
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>2787</exampleNumber>
        <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Burkina Faso -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </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(?:
            000|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Bahrain -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          0[167]\d{3}|
          1(?:
            [02]\d|
            12|
            4[01]|
            51|
            8[18]|
            9[169]
          )|
          8[158]\d{3}|
          9(?:
            [148]\d{3}|
            9[02489]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="5"/>
        <exampleNumber>07123</exampleNumber>
        <nationalNumberPattern>
          (?:
            0[167]|
            81
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>94123</exampleNumber>
        <nationalNumberPattern>9[148]\d{3}</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>88000</exampleNumber>
        <nationalNumberPattern>
          0[67]\d{3}|
          88000|
          98555
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>[19]99</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>992</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 -->
    <!-- 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>117</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>611</exampleNumber>
        <nationalNumberPattern>611</nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>611</exampleNumber>
        <nationalNumberPattern>
          611|
          7(?:
            10|
            77
          )|
          888|
          900
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>11[237]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>119</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>900</exampleNumber>
        <nationalNumberPattern>
          710|
          900
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Benin -->
    <!-- http://www.itu.int/oth/T0202000017/en -->
    <territory id="BJ">
      <generalDesc>
        <nationalNumberPattern>[17]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            2[02-5]|
            60
          )|
          7[0-5]\d{2}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="4"/>
        <exampleNumber>7312</exampleNumber>
        <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>122</exampleNumber>
        <nationalNumberPattern>12\d</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>11[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Saint Barthélemy, French Antilles -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <territory id="BL">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>18</nationalNumberPattern>
      </shortCode>
      <!-- http://www.comstbarth.fr/urgences.asp -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>18</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bermuda -->
    <!-- http://www.itu.int/oth/T0202000018/en -->
    <territory id="BM">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          176|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Brunei Darussalam -->
    <!-- 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>
      <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>99[135]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bolivia -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[089]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Bonaire, Sint Eustatius and Saba -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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>[124-69]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>168</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[35789]|
            3(?:
              [024568]|
              3[12]
            )|
            4[12568]|
            5\d|
            6[0-8]|
            8[015]|
            9[0-4789]
          )|
          2(?:
            7(?:
              330|
              878
            )|
            85959?
          )|
          4(?:
            0404?|
            11[12]|
            57|
            828
          )|
          55555|
          6(?:
            0\d{4}|
            10000
          )|
          911
        </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>181</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            [89]\d
          )|
          4(?:
            57|
            828
          )
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,5"/>
        <exampleNumber>27330</exampleNumber>
        <nationalNumberPattern>
          102|
          27330
        </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>27878</exampleNumber>
        <nationalNumberPattern>
          151|
          27878|
          4(?:
            0404?|
            11[12]|
            57
          )|
          55555
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>190</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>168</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[06]|
            23|
            68|
            8[015]|
            9[145789]
          )
        </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="[4-6]"/>
        <exampleNumber>27878</exampleNumber>
        <nationalNumberPattern>
          2(?:
            7(?:
              330|
              878
            )|
            85959?
          )|
          4(?:
            0404|
            828
          )|
          6(?:
            0\d{4}|
            10000
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Bahamas -->
    <!-- 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>91[19]</nationalNumberPattern>
      </shortCode>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[19]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Bhutan -->
    <!-- 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>113</exampleNumber>
        <nationalNumberPattern>
          11[0-6]|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.rbp.gov.bt/requestpolice.php -->
      <!-- http://www.jdwnrh.gov.bt/sfo2011/?page_id=51 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Botswana -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          13123|
          99[789]
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>13123</exampleNumber>
        <nationalNumberPattern>13123</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>999</exampleNumber>
        <nationalNumberPattern>99[789]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>13123</exampleNumber>
        <nationalNumberPattern>13123</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Belarus -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-79]|
            1[246]|
            35|
            5[1235]|
            6[89]|
            7[5-7]|
            8[58]|
            9[1-7]
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Canada -->
    <!-- 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\d(?:
              \d(?:
                \d{2}
              )?
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5,6,8"/>
        <exampleNumber>12345</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            \d{4,5}
          )|
          [25-9](?:
            11|
            \d{4,5}
          )|
          3(?:
            \d{4,5}|
            0000\d{3}|
            11
          )|
          411
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>211</exampleNumber>
        <nationalNumberPattern>211</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>611</exampleNumber>
        <nationalNumberPattern>[23567]11</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- http://www.txt.ca/en/shortcode-search/ -->
      <!-- We also support so-called "long codes" (8 digits). Technically we know that 30000 is
           not a valid short-code but this is too complex/not worth the time to exclude here. -->
      <smsServices>
        <possibleLengths national="5,6,8"/>
        <exampleNumber>30001</exampleNumber>
        <nationalNumberPattern>
          [125-9]\d{4,5}|
          3(?:
            \d{4,5}|
            0000\d{3}
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cocos Islands -->
    <!-- Country calling code shared with Australia. -->
    <territory id="CC">
      <generalDesc>
        <nationalNumberPattern>[01]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
    <!-- 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>40404</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[348]|
            23|
            77|
            88
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</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>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Central African Republic -->
    <!-- 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>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[478]|
            220
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>1220</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            220
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>114</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Congo (Rep. of the) (Brazzaville) -->
    <territory id="CG">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>11[12678]</nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>111</exampleNumber>
        <nationalNumberPattern>111</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 -->
    <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en -->
    <!-- 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>147</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[78]\d{2}|
            1(?:
              [278]|
              45|
              6(?:
                000|
                111
              )
            )|
            4(?:
              [03457]|
              1[45]
            )|
            6(?:
              00|
              [1-46]
            )|
            8(?:
              02|
              1[189]|
              50|
              7|
              8[08]|
              99
            )
          )|
          [2-9]\d{2,4}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            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>1600</exampleNumber>
        <nationalNumberPattern>
          1(?:
            4(?:
              [035]|
              1\d
            )|
            6\d{1,2}
          )
        </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(?:
            145|
            8\d{2}
          )|
          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>
          1(?:
            16111|
            4(?:
              [0356]|
              1[45]
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>600</exampleNumber>
        <nationalNumberPattern>[2-9]\d{2,4}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Côte d'Ivoire -->
    <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4443</exampleNumber>
        <nationalNumberPattern>4443</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>4443</exampleNumber>
        <nationalNumberPattern>4443</nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Chile -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Chile -->
    <!-- http://www.clarochile.cl/wps/portal/cl/pc/personas/movil/sms-premium -->
    <!-- http://www.13.cl/concursos -->
    <territory id="CL">
      <generalDesc>
        <nationalNumberPattern>[1-9]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>139</exampleNumber>
        <nationalNumberPattern>
          1(?:
            06?0|
            21[13]|
            3(?:
              [02679]|
              13?|
              [348]0?|
              5[01]?
            )|
            4(?:
              0[02-6]|
              17|
              [379]
            )|
            560|
            818|
            9(?:
              19|
              80
            )
          )|
          2(?:
            0(?:
              01|
              122
            )|
            22[47]|
            323|
            777|
            882
          )|
          3(?:
            0(?:
              51|
              99
            )|
            132|
            3(?:
              29|
              37|
              77|
              90
            )|
            665
          )|
          4(?:
            142|
            243|
            3(?:
              42|
              656
            )|
            4(?:
              02|
              15|
              77
            )|
            554
          )|
          5(?:
            004|
            4154|
            5(?:
              66|
              77
            )|
            995
          )|
          6(?:
            0700|
            131|
            222|
            3(?:
              00|
              66
            )|
            500|
            699
          )|
          7878|
          8(?:
            011|
            11[28]|
            482|
            889
          )|
          9(?:
            011|
            1(?:
              1|
              00
            )|
            200|
            330
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/ under "Mensajería
           Ilimitada". -->
      <tollFree>
        <possibleLengths national="4"/>
        <exampleNumber>4342</exampleNumber>
        <nationalNumberPattern>
          1213|
          4342
        </nationalNumberPattern>
      </tollFree>
      <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/#04-prepago-multimedia -->
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>3337</exampleNumber>
        <nationalNumberPattern>
          2001|
          3337
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4,5"/>
        <exampleNumber>2224</exampleNumber>
        <nationalNumberPattern>
          1(?:
            060|
            211|
            3(?:
              13|
              [348]0|
              5[01]
            )|
            417|
            560|
            818|
            9(?:
              19|
              80
            )
          )|
          2(?:
            0122|
            22[47]|
            323|
            777|
            882
          )|
          3(?:
            0(?:
              51|
              99
            )|
            132|
            3(?:
              29|
              77|
              90
            )|
            665
          )|
          4(?:
            142|
            243|
            3656|
            4(?:
              02|
              15|
              77
            )|
            554
          )|
          5(?:
            004|
            4154|
            5(?:
              66|
              77
            )|
            995
          )|
          6(?:
            0700|
            131|
            222|
            3(?:
              00|
              66
            )|
            500|
            699
          )|
          7878|
          8(?:
            011|
            11[28]|
            482|
            889
          )|
          9(?:
            011|
            [12]00|
            330
          )
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=41 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>133</exampleNumber>
        <nationalNumberPattern>
          13[123]|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- http://es.wikipedia.org/wiki/Anexo:Teléfonos_de_emergencias -->
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>149</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            3[04-9]|
            4(?:
              0[02-6]|
              [379]
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>5577</exampleNumber>
        <nationalNumberPattern>
          (?:
            [137-9]|
            [2456]\d?
          )\d{3}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cameroon -->
    <!-- http://www.itu.int/oth/T0202000024/en -->
    <territory id="CM">
      <generalDesc>
        <nationalNumberPattern>[18]\d{1,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          1?1[37]|
          8711
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>8711</exampleNumber>
        <nationalNumberPattern>8711</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>113</exampleNumber>
        <nationalNumberPattern>1?1[37]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>8711</exampleNumber>
        <nationalNumberPattern>8711</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- China -->
    <!-- http://www.itu.int/oth/T020200002B/en -->
    <territory id="CN">
      <generalDesc>
        <nationalNumberPattern>
          [19]\d\d(?:
            \d{2,3}
          )?
        </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,5,6"/>
        <exampleNumber>119</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00\d{2}|
            1[09]|
            20
          )|
          95\d{3,4}
        </nationalNumberPattern>
      </shortCode>
      <!-- 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="5,6"/>
        <exampleNumber>95566</exampleNumber>
        <nationalNumberPattern>
          100\d{2}|
          95\d{3,4}
        </nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>119</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[09]|
            20
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Colombia -->
    <!-- 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>
          [148]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            06|
            1[2569]|
            2[357]|
            3[27]|
            4[467]|
            5[36]|
            6[45]|
            95
          )|
          40404|
          85432
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>40404</exampleNumber>
        <nationalNumberPattern>
          40404|
          85432
        </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>127</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [01]6|
            [23]7|
            4[47]|
            6[45]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>
          40404|
          85432
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Costa Rica -->
    <!-- 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>1022</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[789]|
              2[02]|
              [67]7
            )|
            975
          )|
          3855|
          5(?:
            0(?:
              30|
              49
            )|
            510
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>3855</exampleNumber>
        <nationalNumberPattern>
          3855|
          5(?:
            0(?:
              30|
              49
            )|
            510
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cuba -->
    <!-- www.itu.int/oth/T0202000033/en -->
    <territory id="CU">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>140</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[456]|
            1(?:
              6111|
              8
            )|
            40
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>106</exampleNumber>
        <nationalNumberPattern>10[456]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Curaçao -->
    <!-- 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>
      <!-- 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 Islands -->
    <!-- Country calling code shared with Australia. -->
    <territory id="CX">
      <generalDesc>
        <nationalNumberPattern>[01]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Cyprus -->
    <!-- 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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Czech Rep. -->
    <!-- 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>116123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}|
              8\d
            )|
            2\d{2,3}|
            3\d{3,4}|
            4\d{3}|
            5[0568]|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            111|
            123
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5[0568]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            111|
            123
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Germany -->
    <!-- http://www.itu.int/oth/T0202000051/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
    <territory id="DE">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- Public Service Number for German administration: 115. -->
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [025]|
            6(?:
              00[06]|
              1(?:
                1[17]|
                23
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[02]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              1[17]|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Djibouti -->
    <!-- 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>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Denmark -->
    <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
    <territory id="DK">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [2-48]|
              6(?:
                00[06]|
                111
              )
            )|
            8(?:
              01|
              1[0238]|
              28|
              30|
              5[13]|
              81
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            111
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[24]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

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

    <!-- Dominican Rep. -->
    <!-- http://www.itu.int/oth/T020200003C/en -->
    <territory id="DO">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Algeria -->
    <!-- http://www.itu.int/oth/T0202000003/en -->
    <!-- www.arpt.dz -->
    <territory id="DZ">
      <generalDesc>
        <nationalNumberPattern>[17]\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1[47]|
          730
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>730</exampleNumber>
        <nationalNumberPattern>730</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[47]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>730</exampleNumber>
        <nationalNumberPattern>730</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ecuador -->
    <!-- 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>911</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Egypt -->
    <!-- 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]|
            [69]\d{3}|
            80
          )|
          34400
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>34400</exampleNumber>
        <nationalNumberPattern>34400</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>34400</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Western Sahara -->
    <!-- Country calling code shared with Morocco (MA). -->
    <!-- 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>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Eritrea -->
    <territory id="ER">
      <generalDesc>
        <nationalNumberPattern>
          [12]\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[2-6]|
            2(?:
              4422|
              7799
            )
          )|
          2(?:
            0(?:
              1(?:
                606|
                917
              )|
              2(?:
                099|
                914
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[2-46]|
            2(?:
              4422|
              7799
            )
          )|
          2(?:
            0(?:
              1(?:
                606|
                917
              )|
              2(?:
                099|
                914
              )
            )
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>115</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Spain -->
    <!-- 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-26]|
            6[0-257]|
            8[058]|
            9[12]
          )|
          1(?:
            0[03-57]\d{1,3}|
            1(?:
              2|
              6(?:
                000|
                111
              )|
              8\d{2}
            )|
            2\d{1,4}|
            3(?:
              [34]|
              \d{2}
            )|
            7(?:
              7|
              \d{2}
            )|
            [4-689]\d{2}
          )|
          2(?:
            [01]\d{4}|
            2\d{1,4}|
            [357]\d{3}|
            80\d{2}
          )|
          3[357]\d{3}|
          79[57]\d{3}|
          9(?:
            0(?:
              5[124578]|
              7
            )|
            9[57]\d{3}
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- Section 5.3 and 6.2 of Guia Numeracion (link above) -->
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>
          0(?:
            16|
            6[57]|
            88
          )|
          1(?:
            006|
            16\d{3}|
            [3-7]\d{2}
          )|
          20\d{4}
        </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>211234</exampleNumber>
        <nationalNumberPattern>
          0(?:
            [16][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>23456</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18\d{2}|
            2\d{1,4}
          )|
          2(?:
            2\d{1,4}|
            [3-9]\d{3,4}
          )|
          9(?:
            0(?:
              5[124578]|
              7
            )|
            \d{4,5}
          )|
          [37]\d{4,5}
        </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>123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            2\d{1,4}|
            3[34]|
            77
          )|
          22\d{1,4}
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</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(?:
              000|
              111
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- Section 6 of Guia Numeracion (link above) -->
      <smsServices>
        <possibleLengths national="5,6"/>
        <exampleNumber>23456</exampleNumber>
        <nationalNumberPattern>[2379]\d{4,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ethiopia -->
    <!-- http://www.itu.int/oth/T0202000044/en -->
    <territory id="ET">
      <generalDesc>
        <nationalNumberPattern>9\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>991</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11?|
            [23]|
            9[17]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>991</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11?|
            [23]|
            9[17]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Finland -->
    <!-- Country calling code shared with Åland (AX) -->
    <!-- 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|
            6111
          )|
          75[12]\d{2}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>116111</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>116111</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Fiji -->
    <!-- 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|
          4(?:
            0404|
            4
          )|
          54|
          75|
          91[137]
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>91[17]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Falkland Islands (Malvinas) -->
    <!-- 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>123</exampleNumber>
        <nationalNumberPattern>
          1\d{2}|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Micronesia, Federated States of -->
    <!-- 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>
          320221|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
      <emergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          320221|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Faroe Islands -->
    <!-- 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>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[248]|
            4[124]\d|
            71\d|
            8[7-9]\d
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[24]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- France -->
    <!-- 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>1010</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0\d{2}|
            1(?:
              [02459]|
              6(?:
                000|
                111
              )|
              8\d{3}
            )|
            9[167]|
            [578]
          )|
          2(?:
            0(?:
              000|
              20
            )|
            24
          )|
          3\d{3,4}|
          6(?:
            1[14]|
            34|
            \d{4}
          )|
          7(?:
            0[06]|
            22|
            40|
            \d{4}
          )|
          [458]\d{4}
        </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="[3-6]"/>
        <exampleNumber>3010</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              07|
              13
            )|
            1(?:
              [0459]|
              [68]\d{3}
            )|
            9[167]
          )|
          224|
          3(?:
            [01]\d{2}|
            3700
          )|
          740
        </nationalNumberPattern>
      </tollFree>
      <!-- 3646 is listed as being the same as a local call on www.ameli.fr. -->
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>1023</exampleNumber>
        <nationalNumberPattern>
          10(?:
            14|
            2[23]|
            34|
            6[14]|
            99
          )|
          2020|
          3(?:
            646|
            9[07]0
          )|
          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. -->
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>42000</exampleNumber>
        <nationalNumberPattern>
          36665|
          [4-8]\d{4}
        </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>118777</exampleNumber>
        <nationalNumberPattern>
          118777|
          2(?:
            0(?:
              000|
              20
            )|
            24
          )|
          6(?:
            1[14]|
            34
          )|
          7\d{2}
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [578]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [459]|
              6(?:
                000|
                111
              )
            )|
            9[167]
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://clients.txtnation.com/entries/22523777-France-Premium-SMS-Short-Code-Regulations -->
      <smsServices>
        <possibleLengths national="3,5"/>
        <exampleNumber>33700</exampleNumber>
        <nationalNumberPattern>
          (?:
            114|
            [3-8]\d{4}
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Gabon -->
    <!-- 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>1730</exampleNumber>
        <nationalNumberPattern>
          1(?:
            730|
            8|
            3\d{2}
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="2,4"/>
        <exampleNumber>1730</exampleNumber>
        <nationalNumberPattern>
          1(?:
            730|
            8|
            3\d{2}
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- United Kingdom -->
    <territory id="GB">
      <generalDesc>
        <nationalNumberPattern>[1-46-9]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>150</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[015]|
            1(?:
              [12]|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d{3}
            )|
            2(?:
              [123]|
              50
            )|
            33|
            4(?:
              1|
              7\d
            )|
            5(?:
              \d|
              71
            )|
            7(?:
              0\d|
              [56]0
            )|
            800\d|
            9[15]
          )|
          2(?:
            02(?:
              02
            )?|
            1300|
            2(?:
              02|
              11|
              2
            )|
            3(?:
              02|
              336|
              45
            )|
            4(?:
              25|
              8
            )
          )|
          3[13]3|
          4(?:
            0[02]|
            35[01]|
            44[45]|
            5\d
          )|
          6(?:
            50|
            \d{4}
          )|
          7(?:
            0\d{3}|
            8(?:
              9|
              \d{3}
            )|
            9\d{3}
          )|
          8\d{4}|
          9(?:
            01|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            16\d{3}|
            7[56]0|
            8000
          )|
          2(?:
            202|
            48
          )|
          4444
        </nationalNumberPattern>
      </tollFree>
      <!-- 1250: White Mobile balance check. -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>1571</exampleNumber>
        <nationalNumberPattern>
          1(?:
            250|
            571|
            7[56]0
          )|
          2(?:
            02(?:
              02
            )?|
            1300|
            3336|
            48
          )|
          4444|
          901
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            01|
            16(?:
              000|
              1(?:
                11|
                23
              )
            )
          )
        </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>20202</exampleNumber>
        <nationalNumberPattern>
          1250|
          2(?:
            0202|
            1300
          )|
          7\d{4}|
          8[01]\d{3}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Grenada -->
    <!-- http://www.itu.int/oth/T0202000057/en -->
    <territory id="GD">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Georgia -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11|
            22|
            33
          )|
          1(?:
            1[123]|
            22
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</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>112</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11|
            22|
            33
          )|
          1(?:
            1[123]|
            22
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- French Guiana (French Dept. of) -->
    <!-- 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>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guernsey -->
    <!-- Country calling code shared with the UK. -->
    <!-- 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>155</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1(?:
              [12]|
              [68]\d{3}
            )|
            23|
            4(?:
              1|
              7\d
            )|
            55|
            800\d|
            9[05]
          )|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Ghana -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          19[123]|
          40404|
          (?:
            54|
            83
          )00|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>5400</exampleNumber>
        <nationalNumberPattern>
          40404|
          (?:
            54|
            83
          )00
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          19[123]|
          999
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>5400</exampleNumber>
        <nationalNumberPattern>
          40404|
          (?:
            54|
            83
          )00
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Gibraltar -->
    <!-- http://www.gra.gi/communications/numbering-plan -->
    <territory id="GI">
      <generalDesc>
        <nationalNumberPattern>[158]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d{2}
            )|
            23|
            4(?:
              1|
              7[014]
            )|
            5[015]|
            9[02349]
          )|
          555|
          8(?:
            0(?:
              0|
              \d{2}
            )|
            [1-35-79]\d{2}|
            4(?:
              [0-2]|
              \d{2}
            )|
            8[1-589]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            16\d{3}|
            23|
            4(?:
              1|
              7\d
            )|
            5[15]|
            9[2-4]
          )|
          555|
          80\d{2}
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="3,4"/>
        <exampleNumber>150</exampleNumber>
        <nationalNumberPattern>
          150|
          87\d{2}
        </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>8112</exampleNumber>
        <nationalNumberPattern>8[1-69]\d{2}</nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="3,5"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            18\d{2}|
            23|
            51|
            9[2-4]
          )|
          555|
          8(?:
            00|
            88
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[09]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>
          116\d{3}|
          8008
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

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

    <!-- Gambia -->
    <!-- http://www.itu.int/oth/T020200004F/en -->
    <territory id="GM">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>1?1[678]</nationalNumberPattern>
      </shortCode>
      <!-- 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>117</exampleNumber>
        <nationalNumberPattern>1?1[678]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guinea -->
    <territory id="GN">
      <generalDesc>
        <nationalNumberPattern>4\d{4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <!-- No national emergency numbers were located for Guinea. -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Guadeloupe -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
    <territory id="GP">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Greece -->
    <!-- http://www.itu.int/oth/T0202000055/en -->
    <!-- http://en.wikipedia.org/wiki/%2B30 -->
    <territory id="GR">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )
            )|
            66|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            00|
            12|
            66|
            99
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Guatemala -->
    <!-- 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>123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            10|
            2\d|
            [57]\d{2}
          )|
          40404
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</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>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Guam -->
    <!-- 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>911</nationalNumberPattern>
      </shortCode>
      <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Guinea-Bissau -->
    <!-- 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>
      <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[378]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Hong Kong -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [013]\d{0,4}|
              2[14]\d{0,3}|
              6\d{1,4}|
              8[138]|
              9
            )|
            12|
            2(?:
              [0-3]\d{0,4}|
              58\d{0,3}|
              8[13]\d{0,3}
            )|
            7(?:
              [135-9]\d{0,4}|
              219\d{0,2}
            )|
            8(?:
              0(?:
                [13]\d|
                60\d{2}|
                8
              )|
              1(?:
                0\d|
                [2-8]
              )|
              2(?:
                0[5-9]|
                182|
                22|
                3|
                8[128]
              )|
              3[0-689]\d{3}|
              50[138]|
              6(?:
                1(?:
                  11|
                  86
                )|
                8
              )|
              7(?:
                2[1-389]|
                8[0235-9]|
                93
              )\d{2}|
              8\d
            )
          )|
          99[29]
        </nationalNumberPattern>
      </shortCode>
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>1088</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              8\d|
              9
            )|
            850\d
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          112|
          99[29]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="5"/>
        <exampleNumber>18205</exampleNumber>
        <nationalNumberPattern>1820[5-9]</nationalNumberPattern>
      </expandedEmergency>
      <!-- 992 is an SMS service short code for emergency. -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>992</exampleNumber>
        <nationalNumberPattern>992</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Honduras -->
    <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Croatia -->
    <!-- http://www.itu.int/oth/T0202000032/en -->
    <!-- http://en.wikipedia.org/wiki/%2B385 -->
    <territory id="HR">
      <generalDesc>
        <nationalNumberPattern>[19]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d{2}
            )|
            3977|
            9(?:
              [2-5]|
              87
            )
          )|
          9[34]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="5,6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            3977
          )
        </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="5"/>
        <exampleNumber>11812</exampleNumber>
        <nationalNumberPattern>118\d{2}</nationalNumberPattern>
      </premiumRate>
      <!-- Bonbon users can send free SMS to 13977 short code.
           http://www.bonbon.hr/ponuda/pretplata/paketi/ -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>13977</exampleNumber>
        <nationalNumberPattern>13977</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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )|
          9[34]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>195</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            9(?:
              5|
              87
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>13977</exampleNumber>
        <nationalNumberPattern>13977</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Haiti -->
    <!-- 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>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>118</exampleNumber>
        <nationalNumberPattern>11[48]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Hungary -->
    <!-- http://www.itu.int/oth/T0202000061/en -->
    <territory id="HU">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[457]|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[457]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

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

    <!-- Ireland -->
    <!-- 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>
          1(?:
            1(?:
              2|
              6(?:
                00[06]|
                1(?:
                  1[17]|
                  23
                )
              )|
              8\d{2}
            )|
            9\d{2}
          )|
          5[0137]\d{3}|
          999
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5"/>
        <exampleNumber>51012</exampleNumber>
        <nationalNumberPattern>51\d{3}</nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>53012</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(?:
            00[06]|
            1(?:
              1[17]|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>51210</exampleNumber>
        <nationalNumberPattern>
          118\d{2}|
          5(?:
            [037]\d{3}|
            1210
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Isle of Man -->
    <!-- Country calling code shared with the UK. -->
    <!-- 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>150</exampleNumber>
        <nationalNumberPattern>
          1\d{2}(?:
            \d{3}
          )?|
          8(?:
            6444|
            9887
          )|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>86444</exampleNumber>
        <nationalNumberPattern>
          8(?:
            6444|
            9887
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- India -->
    <!-- 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. -->
      <shortCode>
        <possibleLengths national="[3-9]"/>
        <exampleNumber>108</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [01248]|
              3[39]|
              5(?:
                010|
                6|
                [79]\d{2}
              )|
              6[3468]|
              7(?:
                [013578]|
                20?|
                4[01]|
                80
              )|
              9[0135-9]
            )|
            1(?:
              00|
              [289]|
              [67][0-2]\d{3}
            )|
            2(?:
              1|
              98
            )|
            3(?:
              11|
              2[0-2]|
              63|
              [89]
            )|
            4[01]|
            5(?:
              1(?:
                0[0-36]|
                [127]
              )|
              5(?:
                [23]\d{2}|
                4
              )
            )|
            6(?:
              1|
              6[01]?
            )|
            7000|
            8(?:
              02\d{3}|
              [12]
            )|
            9(?:
              0[013-59]|
              12|
              25|
              4[4-9]\d?|
              50|
              6[1347]|
              [89]
            )
          )|
          2611|
          5(?:
            0(?:
              0(?:
                0\d{1}(?:
                  \d{2}
                )?|
                1(?:
                  \d{2}
                )?|
                20?
              )|
              325|
              40\d{1,2}|
              5(?:
                0\d{1,4}|
                1\d{2,5}|
                [2-79]\d{3,5}
              )
            )|
            1(?:
              0[12]\d|
              234|
              4[2-4]\d|
              555|
              717|
              818|
              96[49]
            )|
            2(?:
              0(?:
                0[01]|
                [14]0
              )|
              151|
              2(?:
                [0267]\d{1,2}|
                1\d{1,4}|
                [3589]\d
              )|
              3(?:
                1(?:
                  \d{1,2}|
                  \d{4}
                )|
                2\d|
                6\d{1,2}
              )|
              4[04]\d|
              555|
              666|
              7[78]\d|
              888|
              9(?:
                06|
                99\d?
              )
            )|
            3(?:
              0(?:
                [01]0|
                3\d{1,4}|
                4\d{4}
              )|
              131|
              3[23]\d{1,4}|
              553|
              666|
              776
            )|
            4(?:
              04|
              1[04]\d?|
              2(?:
                0\d?|
                4
              )|
              3(?:
                0\d?|
                2(?:
                  \d|
                  \d{4}
                )?
              )|
              4[04]|
              64(?:
                \d{1,2}
              )?|
              99
            )\d|
            5(?:
              1[25]|
              3(?:
                [16]\d?|
                5
              )|
              4[45]|
              5[05](?:
                \d{1,2}
              )?|
              6(?:
                5|
                7\d?
              )|
              93
            )\d|
            6(?:
              0(?:
                6\d{1,2}|
                70
              )|
              16\d{4}|
              3[68]|
              43|
              [67]\d{2,3}
            )|
            7(?:
              17(?:
                \d{3}
              )?|
              [27]7|
              57\d{2}|
              8(?:
                7\d?|
                8
              )
            )\d|
            8(?:
              3[4-69]|
              4[01]|
              5[58]|
              8(?:
                0\d?|
                8(?:
                  8\d{2}|
                  9
                )
              )|
              99
            )\d|
            9(?:
              00|
              55|
              6(?:
                4\d?|
                [67]
              )|
              77|
              88|
              90\d?
            )\d
          )|
          777|
          800
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>105010</exampleNumber>
        <nationalNumberPattern>
          1\d{2,5}|
          777|
          800
        </nationalNumberPattern>
      </tollFree>
      <!-- Cost of SMS to 5142[5-9], 514[34]\d and 5757555 is of standard rate. -->
      <standardRate>
        <possibleLengths national="5,7"/>
        <exampleNumber>5757555</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>1160530</exampleNumber>
        <nationalNumberPattern>
          11[67][0-2]\d{3}|
          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>53000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [67][0-2]\d{3}|
              [89]
            )|
            21|
            4[01]|
            55330|
            7\d{3}|
            9(?:
              [89]|
              09
            )
          )|
          5(?:
            3000|
            6161(?:
              17[89]|
              561
            )
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>108</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0128]|
            12|
            298
          )|
          2611
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>1090</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              56|
              9[016]
            )|
            81|
            55200
          )
        </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>51431</exampleNumber>
        <nationalNumberPattern>
          1(?:
            39|
            90[019]
          )|
          5(?:
            14(?:
              2[5-9]|
              [34]\d
            )|
            6161(?:
              17[89]|
              561
            )|
            757555
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Iran, Islamic Republic of -->
    <!-- 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>[0-29]\d{2,5}</nationalNumberPattern>
      </generalDesc>
      <!-- As per http://118.tct.ir/necnum.htm and http://www.ictna.ir/id/030363/ 096XX and 096XXX
           short codes are valid. Note: '0' is part of shortcode and not national prefix here.
           Able to connect to 09691 but not to 9691. -->
      <shortCode>
        <possibleLengths national="[3-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          096(?:
            0[12]|
            2[16-8]|
            3(?:
              08|
              [14]5|
              [23]|
              66
            )|
            4(?:
              0|
              80
            )|
            5[01]|
            6[89]|
            86|
            9[19]
          )|
          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(?:
            00|
            1(?:
              [038]|
              1[079]|
              26|
              9[69]
            )|
            2[01]|
            90
          )|
          9(?:
            11|
            9(?:
              90|
              0009
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 11X, 12X and 19X are toll-free as these are public and government services. -->
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>1[129]\d</nationalNumberPattern>
      </tollFree>
      <!-- 15XX, 18XX and 096XX 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,5"/>
        <exampleNumber>09612</exampleNumber>
        <nationalNumberPattern>
          (?:
            096|
            1[58]
          )\d{2}
        </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>9990</exampleNumber>
        <nationalNumberPattern>
          1[58]\d{2}|
          99(?:
            90|
            0009
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</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>990009</exampleNumber>
        <nationalNumberPattern>990009</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Iceland -->
    <!-- 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]|
              6(?:
                1(?:
                  23|
                  16
                )
              )
            )|
            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="4"/>
        <exampleNumber>1717</exampleNumber>
        <nationalNumberPattern>1717</nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1441</exampleNumber>
        <nationalNumberPattern>
          14(?:
            00|
            41
          )
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>116123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16(?:
              1(?:
                23|
                16
              )
            )|
            770
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>1415</exampleNumber>
        <nationalNumberPattern>
          1(?:
            415|
            900
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Italy -->
    <!-- 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>114</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0\d{2,3}|
            1(?:
              [2-5789]|
              6(?:
                000|
                111
              )
            )|
            2\d{2}|
            3[39]|
            4(?:
              82|
              9\d{1,3}
            )|
            5(?:
              00|
              1[58]|
              2[25]|
              3[03]|
              44|
              [59]
            )|
            60|
            8[67]|
            9(?:
              [01]|
              2(?:
                [01]\d{2}|
                [2-9]
              )|
              4\d|
              696
            )
          )|
          4(?:
            2323|
            3(?:
              [01]|
              [45]\d{2}
            )\d{2}|
            [478](?:
              [0-4]|
              [5-9]\d{2}
            )\d{2}|
            5(?:
              045|
              5\d{2}
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,6"/>
        <exampleNumber>187</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            87
          )
        </nationalNumberPattern>
      </tollFree>
      <!-- http://clients.txtnation.com/attachments/token/di5kfblvubttvlw/?name=Italy_CASP_EN.pdf -->
      <premiumRate>
        <possibleLengths national="[4-7]"/>
        <exampleNumber>1254</exampleNumber>
        <nationalNumberPattern>
          (?:
            12|
            4(?:
              [478]\d{1,3}|
              55
            )
          )\d{2}
        </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]|
              6(?:
                000|
                111
              )
            )|
            5(?:
              15|
              2[25]|
              3[03]|
              44
            )|
            9696
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="[5-7]"/>
        <exampleNumber>43000</exampleNumber>
        <nationalNumberPattern>4[3-578]\d{3,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Jersey -->
    <!-- Country calling code shared with the UK. -->
    <!-- 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>150</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[234]|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Jamaica -->
    <!-- http://www.itu.int/oth/T020200006C/en -->
    <territory id="JM">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[029]|
            76
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          11[029]|
          911
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="3"/>
        <exampleNumber>176</exampleNumber>
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Jordan -->
    <!-- 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>111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            09|
            1[0-2]|
            9[0-24-79]
          )|
          9(?:
            0903|
            11|
            8788
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>90903</exampleNumber>
        <nationalNumberPattern>
          9(?:
            0903|
            8788
          )
        </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>190</exampleNumber>
        <nationalNumberPattern>190</nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>90903</exampleNumber>
        <nationalNumberPattern>
          9(?:
            0903|
            8788
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Japan -->
    <!-- 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>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[09]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[09]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Kenya -->
    <!-- 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>116</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [07-9]|
              1[0-25]|
              400
            )|
            1(?:
              [02456]|
              9[0-579]
            )|
            2[123]|
            3[01]|
            4[14]|
            5(?:
              [01][01]|
              2[0-24-79]|
              33|
              4[05]|
              5[59]|
              6(?:
                00|
                29|
                6[67]
              )
            )|
            6[035]\d{2}|
            [78]\d|
            9(?:
              [02-9]\d{2}|
              19
            )
          )|
          (?:
            2[0-79]|
            3[0-29]|
            4[0-4]
          )\d{3}|
          5(?:
            [0-7]\d|
            99
          )\d{2}|
          (?:
            6[2357]|
            7[0-29]
          )\d{3}|
          8(?:
            [0-9]\d{3}|
            988
          )|
          9(?:
            09\d{2}|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>1501</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              6|
              9\d
            )|
            5(?:
              01|
              2[127]|
              6(?:
                29|
                6[67]
              )
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>90912</exampleNumber>
        <nationalNumberPattern>909\d{2}</nationalNumberPattern>
      </premiumRate>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>90912</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0400|
            3[01]|
            4[14]|
            5(?:
              1[01]|
              2[25]
            )|
            6[35]\d{2}
          )|
          (?:
            2[0-79]|
            3[0-29]|
            4[0-4]
          )\d{3}|
          5(?:
            [0-7]\d|
            99
          )\d{2}|
          (?:
            6[2357]|
            7[0-29]
          )\d{3}|
          8(?:
            988|
            [0-9]\d{3}
          )|
          909\d{2}
        </nationalNumberPattern>
      </carrierSpecific>
      <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          112|
          114|
          999
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>1197</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [06]|
            9\d
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>8988</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0400|
            4[14]|
            5(?:
              01|
              55|
              6(?:
                29|
                6[67]
              )
            )|
            6[035]\d{2}
          )|
          40404|
          8988|
          909\d{2}
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kyrgyzstan -->
    <!-- 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[123]|
          4040
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>4040</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>101</exampleNumber>
        <nationalNumberPattern>10[123]</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4040</exampleNumber>
        <nationalNumberPattern>4040</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Cambodia -->
    <!-- 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[789]|
          40404|
          666
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</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[789]|
          666
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Kiribati -->
    <!-- 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(?:
            0(?:
              [0-8]|
              5[01259]
            )|
            88|
            9[2-5]
          )|
          777|
          99[2349]
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
      <!-- ITU 30.VIII.2013 still listed 9XX emergency numbers (not yet 1XX).
           Newer ITU updates (2016) no longer mention 9XX but list 1XX.
           9XX might no longer be in use, but some websites (Wikipedia) still
           list them.
           TODO(b/33193822): Remove after confirming with government. -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>192</exampleNumber>
        <nationalNumberPattern>
          19[2-5]|
          99[2349]
        </nationalNumberPattern>
      </emergency>
      <!-- See comment for emergency section. -->
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>188</exampleNumber>
        <nationalNumberPattern>188</nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Comoros -->
    <!-- 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>
      <!-- http://www.comstbarth.fr/urgences.asp -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Korea, Dem. People's Rep. of -->
    <!-- http://north-korea.emergencynumbers.org/ -->
    <territory id="KP">
      <generalDesc>
        <nationalNumberPattern>[18]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            19
          )|
          819
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            19
          )|
          819
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Korea (Rep. of) -->
    <!-- http://www.itu.int/oth/T0202000072/en -->
    <!-- http://en.wikipedia.org/wiki/%2B82 -->
    <territory id="KR">
      <generalDesc>
        <nationalNumberPattern>1\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [01]|
              114
            )|
            1(?:
              [0247-9]|
              114
            )|
            2[01389]|
            3(?:
              2|
              3[039]|
              45|
              66|
              88|
              9[18]
            )|
            [679]114|
            8(?:
              114|
              2
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3,4"/>
        <exampleNumber>118</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            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]|
              114
            )|
            1(?:
              114|
              4
            )|
            [6-9]114
          )
        </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>1339</exampleNumber>
        <nationalNumberPattern>
          1(?:
            17|
            2[139]|
            3(?:
              3[09]|
              66|
              88|
              9[18]
            )|
            82
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Kuwait -->
    <!-- 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>177</exampleNumber>
        <nationalNumberPattern>
          1[0-7]\d|
          89887
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>89887</exampleNumber>
        <nationalNumberPattern>89887</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Cayman Islands -->
    <!-- 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>911</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Lao People's Dem. Rep. -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            40|
            75
          )|
          999
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Saint Lucia -->
    <!-- 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|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
    </territory>

    <!-- Liechtenstein -->
    <!-- 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>1145</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [278]|
              45
            )|
            4[3-57]|
            50|
            75|
            81[18]
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Sri Lanka -->
    <!-- http://en.wikipedia.org/wiki/%2B94 -->
    <!-- http://www.itu.int/oth/T02020000C3/en -->
    <territory id="LK">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>119</exampleNumber>
        <nationalNumberPattern>11[024-9]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>119</exampleNumber>
        <nationalNumberPattern>11[02689]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Lesotho -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[123]|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Luxembourg -->
    <!-- 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>12123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [23]|
              6(?:
                000|
                111
              )|
              8\d{2}
            )|
            [25]\d{3}|
            3\d{2}
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\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(?:
            000|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Latvia -->
    <!-- http://en.wikipedia.org/wiki/+371 -->
    <territory id="LV">
      <generalDesc>
        <nationalNumberPattern>[018]\d{1,5}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[2-6]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          0[1-4]|
          1(?:
            1(?:
              [02-4]|
              6(?:
                000|
                111
              )|
              8[0189]
            )|
            55|
            655|
            77
          )|
          821[57]4
        </nationalNumberPattern>
      </shortCode>
      <!-- http://116000.lv/en/about -->
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\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|
          8(?:
            2\d{3}|
            [89]\d{2}
          )
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1655</exampleNumber>
        <nationalNumberPattern>16\d{2}</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          0[123]|
          11[023]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>155</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16(?:
              000|
              111
            )|
            55
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
    <territory id="LY">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>193</exampleNumber>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
      </shortCode>
      <!-- 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>193</exampleNumber>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Morocco -->
    <!-- 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>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Moldova, Rep. of -->
    <!-- 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>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d{1,2}|
              99
            )|
            4\d{3}|
            6[0-389]\d|
            9(?:
              0[04-9]|
              [1-4]\d
            )
          )|
          90[1-3]
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          90[1-3]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Montenegro -->
    <!-- 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>1011</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [03]\d{2}|
            1(?:
              [013-57-9]\d|
              2|
              6\d{3}
            )|
            2\d{1,3}|
            4\d{2,3}|
            5(?:
              \d{2}|
              999
            )|
            60[06]|
            700|
            8(?:
              0[089]|
              1[0-8]|
              888
            )|
            9\d{3}
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            2[234]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Saint-Martin, French Antilles -->
    <!-- http://www.itu.int/oth/T0202000058/en -->
    <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
    <territory id="MF">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </shortCode>
      <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>18</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Marshall Islands -->
    <!-- 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>
      <!-- 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>

    <!-- Macedonia, Former Yugoslav Rep. of -->
    <!-- http://www.itu.int/oth/T02020000CE/en -->
    <territory id="MK">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[234]
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[234]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Mali -->
    <!-- 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>1210</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              [013-9]\d
            )|
            2(?:
              1[02-469]|
              2[13]
            )|
            [578]
          )|
          3(?:
            5(?:
              0(?:
                35|
                57
              )|
              2\d{2}
            )|
            [67]\d{3}
          )|
          67(?:
            0[09]|
            59|
            77|
            8[89]|
            99
          )|
          74(?:
            0[02]|
            44|
            55
          )|
          800[012][12]
        </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="4,5"/>
        <exampleNumber>35200</exampleNumber>
        <nationalNumberPattern>
          35200|
          67(?:
            00|
            77
          )|
          74(?:
            02|
            44
          )|
          8000[12]
        </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[12]
        </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>35211</exampleNumber>
        <nationalNumberPattern>
          122[13]|
          3(?:
            52(?:
              11|
              2[02]|
              3[04-6]|
              99
            )|
            7574
          )|
          8002[12]
        </nationalNumberPattern>
      </premiumRate>
      <!-- 35035 found on http://www.malitel.ml/Pages/News.aspx?IdNews=4 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>35035</exampleNumber>
        <nationalNumberPattern>
          3(?:
            5035|
            [67]\d{3}
          )|
          800[012][12]
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="4,5"/>
        <exampleNumber>37575</exampleNumber>
        <nationalNumberPattern>
          3(?:
            6\d{3}|
            7(?:
              4(?:
                0[24-9]|
                [1-9]\d
              )|
              5\d{2}
            )
          )|
          7400
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Myanmar -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>199</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Macao, China -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Northern Mariana Islands -->
    <!-- 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>911</nationalNumberPattern>
      </shortCode>
      <!-- http://www.dps.gov.mp/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Martinique (French Dept. of) -->
    <!-- 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>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>15</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Mauritania -->
    <!-- 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>
      <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Malta -->
    <!-- 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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Mauritius -->
    <!-- http://www.icta.mu/telecommunications/numbering.htm -->
    <territory id="MU">
      <generalDesc>
        <nationalNumberPattern>[189]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>995</exampleNumber>
        <nationalNumberPattern>
          1\d{2,4}|
          8\d{3}|
          99\d
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          11[45]|
          99[59]
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Maldives -->
    <territory id="MV">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [0-37-9]\d|
            [45](?:
              1|
              \d{2}
            )|
            6\d{2}
          )|
          4040
        </nationalNumberPattern>
      </shortCode>
      <!-- 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 -->
    <!-- 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>997</exampleNumber>
        <nationalNumberPattern>
          199|
          80400|
          99[789]
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>80400</exampleNumber>
        <nationalNumberPattern>80400</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>997</exampleNumber>
        <nationalNumberPattern>
          199|
          99[789]
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>80400</exampleNumber>
        <nationalNumberPattern>80400</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Mexico -->
    <!-- http://en.wikipedia.org/wiki/%2B52 -->
    <territory id="MX">
      <generalDesc>
        <nationalNumberPattern>[0579]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>030</exampleNumber>
        <nationalNumberPattern>
          0(?:
            [249]0|
            3[01]|
            5[015]|
            6[01568]|
            7[0-578]|
            8[089]
          )|
          53053|
          7766|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>7766</exampleNumber>
        <nationalNumberPattern>
          53053|
          7766
        </nationalNumberPattern>
      </premiumRate>
      <!-- http://en.wikipedia.org/wiki/%2B52#Other_service_numbers -->
      <!-- http://en.wikipedia.org/wiki/Emergency_telephone_number -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>066</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 -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [01348]|
              [569]\d
            )|
            1(?:
              [02]|
              1[128]|
              311
            )|
            2(?:
              0[125]|
              [13-6]|
              2\d{0,2}
            )|
            3(?:
              09\d|
              [1-39]\d{1,2}|
              6|
              [5-7]\d{0,2}
            )|
            5(?:
              [12]\d|
              454|
              5\d{1,2}|
              77|
              888|
              999?
            )|
            7(?:
              [136-9]\d|
              [45]\d{1,2}
            )|
            8(?:
              18?|
              2|
              8[18]
            )|
            9(?:
              [03]\d|
              [124]\d?|
              68|
              71|
              9[0679]
            )
          )|
          3[23679]\d{3}|
          66628|
          99[1-469]
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>66628</exampleNumber>
        <nationalNumberPattern>66628</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</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>36000</exampleNumber>
        <nationalNumberPattern>
          3[23679]\d{3}|
          66628
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Mozambique -->
    <!-- http://www.itu.int/oth/T0202000091/en -->
    <territory id="MZ">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>1011</exampleNumber>
        <nationalNumberPattern>
          1(?:
            [02-5]\d{2}|
            1[79]|
            9[78]
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>119</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[79]|
            9[78]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Namibia -->
    <!-- http://www.itu.int/oth/T0202000093/en -->
    <territory id="NA">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>93111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0111|
            \d{3}
          )|
          9(?:
            3111|
            \d{2}
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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 (Territoire français d'outre-mer) -->
    <!-- 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>1000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              0[06]|
              1[02-46]|
              20|
              3[0125]|
              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="3,4"/>
        <exampleNumber>1000</exampleNumber>
        <nationalNumberPattern>
          10(?:
            00|
            1[23]|
            3[0-2]|
            88
          )|
          3631|
          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 -->
    <territory id="NE">
      <generalDesc>
        <nationalNumberPattern>
          [1-3578]\d(?:
            \d(?:
              \d{3}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[12]|
            2[034]|
            3[013]|
            40|
            55?|
            60|
            7|
            8
          )|
          222|
          333|
          555|
          723141|
          888
        </nationalNumberPattern>
      </shortCode>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[01]|
            1[12]|
            2[034]|
            3[013]|
            40|
            55|
            60
          )|
          222|
          333|
          555|
          888
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2,6"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          723141
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Norfolk Island -->
    <!-- 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>
      <!-- http://www.discovernorfolkisland.com/norfolk/ -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            55|
            77
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Nigeria -->
    <!-- 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>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40700</exampleNumber>
        <nationalNumberPattern>40700</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>40700</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Nicaragua -->
    <!-- http://www.itu.int/oth/T020200009A/en -->
    <territory id="NI">
      <generalDesc>
        <nationalNumberPattern>[12467]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>118</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[58]|
            2(?:
              [158]|
              00?
            )|
            900
          )|
          2100|
          4878|
          6100|
          7(?:
            010|
            100|
            373
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="4"/>
        <exampleNumber>7373</exampleNumber>
        <nationalNumberPattern>7373</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>118</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[58]|
            2[08]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Netherlands -->
    <!-- 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>1833</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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1202</exampleNumber>
        <nationalNumberPattern>120[0-4]</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            00[06]|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- 3000 and 4000 are SMS only shortcodes as per online evidence. -->
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>4000</exampleNumber>
        <nationalNumberPattern>[34]000</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Norway -->
    <!-- Country calling code shared with Svalbard. -->
    <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
    <!-- http://www.nkom.no/npt/numsys/E.1643sifret_en.pdf -->
    <territory id="NO">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <!-- 143 is assigned but not visible to end users, no other online evidence
           found, hence not included -->
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [0239]|
              61(?:
                1[17]|
                23
              )
            )|
            2[048]|
            4(?:
              12|
              [59]
            )|
            7[57]|
            90
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116117</exampleNumber>
        <nationalNumberPattern>
          1161(?:
            1[17]|
            23
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="4,6"/>
        <exampleNumber>116117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            161(?:
              1[17]|
              23
            )|
            412
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Nepal -->
    <!-- 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\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-3]|
            12
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Nauru -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[0-2]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Niue -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          01[05]|
          101|
          999
        </nationalNumberPattern>
      </shortCode>
      <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 -->
    <!-- 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>111</exampleNumber>
        <nationalNumberPattern>
          018|
          1(?:
            11|
            234|
            371|
            7[03]7|
            944
          )|
          [2-57-9]\d{2,3}|
          6(?:
            161|
            26[0-3]|
            742
          )
        </nationalNumberPattern>
      </shortCode>
      <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>4098</exampleNumber>
        <nationalNumberPattern>
          018|
          1(?:
            234|
            371|
            7[03]7|
            944
          )|
          [2-57-9]\d{2,3}|
          6(?:
            161|
            26[0-3]|
            742
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Oman -->
    <!-- http://www.itu.int/oth/T020200009F/en -->
    <territory id="OM">
      <generalDesc>
        <nationalNumberPattern>9\d{3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="4"/>
        <exampleNumber>9999</exampleNumber>
        <nationalNumberPattern>9999</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="4"/>
        <exampleNumber>9999</exampleNumber>
        <nationalNumberPattern>9999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Panama -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Peru -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>105</exampleNumber>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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{2}|
            6\d{2,5}
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>1612</exampleNumber>
        <nationalNumberPattern>16\d{2,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Philippines -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Pakistan -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              22?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="[2-4]"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              22?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Poland -->
    <!-- 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|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8(?:
                000|
                91[23]
              )
            )|
            9\d{3}
          )|
          9(?:
            8[4-7]|
            9[1-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="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          112|
          99[789]
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>984</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )|
          9(?:
            8[4-6]|
            9[56]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
    <!-- http://www.itu.int/oth/T02020000B2/en -->
    <territory id="PM">
      <generalDesc>
        <nationalNumberPattern>
          [13]\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,4"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>
          1[578]|
          3103
        </nationalNumberPattern>
      </shortCode>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>3103</exampleNumber>
        <nationalNumberPattern>3103</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Puerto Rico -->
    <!-- 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>911</nationalNumberPattern>
      </shortCode>
      <!-- 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>
    </territory>

    <!-- Palestinian Authority -->
    <!-- http://en.wikipedia.org/wiki/%2B970 -->
    <!-- http://www.paltel.ps/ -->
    <territory id="PS">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>199</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            44|
            66|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>166</exampleNumber>
        <nationalNumberPattern>166</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>100</exampleNumber>
        <nationalNumberPattern>10[0-2]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Portugal -->
    <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
    <territory id="PT">
      <generalDesc>
        <nationalNumberPattern>
          1\d\d(?:
            \d{3}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [2578]|
            6(?:
              000|
              111
            )
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[25]</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Palau -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Paraguay -->
    <territory id="PY">
      <generalDesc>
        <nationalNumberPattern>[19]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>123</exampleNumber>
        <nationalNumberPattern>
          1[1-4]\d|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Qatar -->
    <territory id="QA">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,4}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="[3-5]"/>
        <exampleNumber>2012</exampleNumber>
        <nationalNumberPattern>
          (?:
            1|
            20|
            9[27]\d
          )\d{2}|
          999
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
    <!-- 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>
      <!-- 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 -->
    <!-- http://www.itu.int/oth/T02020000AC/en -->
    <!-- https://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
    <territory id="RO">
      <generalDesc>
        <nationalNumberPattern>
          [18]\d\d(?:
            \d(?:
              \d{2}
            )?
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4,6"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                111
              )|
              8(?:
                300|
                932
              )
            )|
            [24]\d{2}|
            9(?:
              21|
              3[02]|
              5[178]
            )
          )|
          8[48]\d{2}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="4,6"/>
        <exampleNumber>8844</exampleNumber>
        <nationalNumberPattern>
          (?:
            1(?:
              18(?:
                300|
                932
              )|
              [24]\d{2}
            )|
            8[48]\d{2}
          )
        </nationalNumberPattern>
      </premiumRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            111
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="4"/>
        <exampleNumber>8844</exampleNumber>
        <nationalNumberPattern>
          (?:
            1[24]|
            8[48]
          )\d{2}
        </nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Russian Federation -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          0[1-4]|
          1(?:
            0[1-4]|
            12
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="2,3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          0[1-3]|
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Rwanda -->
    <!-- http://en.wikipedia.org/wiki/+250 -->
    <territory id="RW">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Saudi Arabia -->
    <!-- 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>937</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              00|
              2|
              6111
            )|
            410|
            9(?:
              00|
              1[89]|
              9(?:
                099|
                22|
                91
              )
            )
          )|
          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>116111</exampleNumber>
        <nationalNumberPattern>
          116111|
          937|
          998
        </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>1410</nationalNumberPattern>
      </standardRate>
      <!-- 1410 is the Mobily voicemail number. -->
      <carrierSpecific>
        <possibleLengths national="3,4"/>
        <exampleNumber>902</exampleNumber>
        <nationalNumberPattern>
          1(?:
            100|
            410
          )|
          90[24679]
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</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(?:
            37|
            66|
            87|
            9[68]
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Solomon Islands -->
    <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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Sudan -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Sweden -->
    <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf -->
    <!-- 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>11313</exampleNumber>
        <nationalNumberPattern>
          11(?:
            [25]|
            313|
            4\d{2}|
            6(?:
              00[06]|
              11[17]|
              123
            )|
            7[0-8]|
            8(?:
              1(?:
                [02-9]\d|
                1[013-9]
              )|
              [02-46-9]\d{2}
            )
          )|
          2(?:
            2[02358]|
            33|
            4[01]|
            50|
            6[1-4]
          )|
          32[13]|
          7\d{4}|
          8(?:
            22|
            88
          )|
          9(?:
            0(?:
              000|
              1(?:
                [02-9]\d|
                1[013-9]
              )|
              [2-4]\d{2}|
              510
            )|
            12
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>118118</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>222</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="6"/>
        <exampleNumber>116111</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <!-- http://www.etiskaradet.se/sidor/om-sms-tjanster.aspx -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>72123</exampleNumber>
        <nationalNumberPattern>7\d{4}</nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Saint Helena and Tristan da Cunha -->
    <territory id="SH">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>1234</exampleNumber>
        <nationalNumberPattern>
          1\d{2,3}|
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- http://www.sthelenatourism.com/pages/fast_facts.html#Emergencies -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Svalbard -->
    <!-- Country calling code shared with Norway. -->
    <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
    <territory id="SJ">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </shortCode>
      <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Slovakia -->
    <!-- http://www.itu.int/oth/T02020000BD/en -->
    <!-- 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]
            )|
            [24]\d{3}|
            5[0589]|
            8\d{3}
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
      </tollFree>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5[058]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            59
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Sierra Leone -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          (?:
            01|
            99
          )9|
          60400
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>60400</exampleNumber>
        <nationalNumberPattern>60400</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>
          (?:
            01|
            99
          )9
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>60400</exampleNumber>
        <nationalNumberPattern>60400</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- San Marino -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Senegal -->
    <!-- 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>17</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[69]|
            2(?:
              \d{2}
            )?|
            [46]\d{2}|
            51\d|
            [78]
          )|
          2(?:
            0[0-246]|
            [12468]
          )\d{3}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="[4-6]"/>
        <exampleNumber>200133</exampleNumber>
        <nationalNumberPattern>
          1515|
          2(?:
            00|
            1
          )\d{3}
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>201202</exampleNumber>
        <nationalNumberPattern>
          2(?:
            01|
            2
          )\d{3}
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>202222</exampleNumber>
        <nationalNumberPattern>
          2(?:
            0[246]|
            [468]
          )\d{3}
        </nationalNumberPattern>
      </premiumRate>
      <carrierSpecific>
        <possibleLengths national="4"/>
        <exampleNumber>1415</exampleNumber>
        <nationalNumberPattern>1[46]\d{2}</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>1221</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[69]|
            221|
            515
          )
        </nationalNumberPattern>
      </expandedEmergency>
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>24123</exampleNumber>
        <nationalNumberPattern>2[468]\d{3}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Somalia -->
    <territory id="SO">
      <generalDesc>
        <nationalNumberPattern>[57-9]\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>777</exampleNumber>
        <nationalNumberPattern>
          555|
          777|
          888|
          999
        </nationalNumberPattern>
      </shortCode>
      <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 -->
    <territory id="SR">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>1234</exampleNumber>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>115</exampleNumber>
        <nationalNumberPattern>115</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Sao Tome and Principe -->
    <!-- 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>
      <!-- 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 -->
    <!-- http://www.itu.int/oth/T020200003F/en -->
    <territory id="SV">
      <generalDesc>
        <nationalNumberPattern>
          [49]\d\d(?:
            \d{2}
          )?
        </nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,5"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          40404|
          911
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.twitter.com/articles/20170024 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
      <!-- https://support.twitter.com/articles/20170024 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>40404</exampleNumber>
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Sint Maarten -->
    <!-- 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>919</nationalNumberPattern>
      </shortCode>
      <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>919</exampleNumber>
        <nationalNumberPattern>919</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Syrian Arab Republic -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Swaziland -->
    <!-- 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>
      <!-- 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 and Caicos Islands -->
    <!-- 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|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
    </territory>

    <!-- Chad -->
    <!-- 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>
      <emergency>
        <possibleLengths national="2"/>
        <exampleNumber>17</exampleNumber>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Togo -->
    <!-- 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>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            011|
            1[078]|
            7[127]
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>117</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[78]|
            7[127]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3,4"/>
        <exampleNumber>1011</exampleNumber>
        <nationalNumberPattern>
          1(?:
            011|
            10
          )
        </nationalNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Thailand -->
    <!-- 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>191</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-79]
            )|
            2(?:
              22|
              3[89]
            )|
            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(?:
              19|
              7[27]|
              90
            )|
            888|
            9[19]
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="4"/>
        <exampleNumber>1669</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              00|
              2[03]|
              3[3479]|
              55|
              7[67]|
              9[0246]
            )|
            5(?:
              55|
              78
            )|
            6(?:
              44|
              6[79]|
              88|
              9[16]
            )|
            888
          )
        </nationalNumberPattern>
      </tollFree>
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1149</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              03|
              1[15]|
              2[58]|
              3[056]|
              4[02-49]|
              5[046-9]|
              6[04-79]|
              7[03-589]|
              8[02789]|
              9[579]
            )|
            3(?:
              18|
              2[23]|
              3[013]|
              5[4-6]
            )|
            5(?:
              0[0-8]|
              4[0-378]|
              5[1-478]|
              6[01679]|
              7[156]|
              8[0-24589]|
              9[013589]
            )|
            6(?:
              0[0-29]|
              20|
              4[356]|
              6[1-68]|
              7[05789]|
              8[015]|
              9[0457-9]
            )|
            7(?:
              19|
              7[27]
            )
          )
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="4"/>
        <exampleNumber>1509</exampleNumber>
        <nationalNumberPattern>
          1(?:
            113|
            2(?:
              22|
              3[89]
            )|
            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 -->
    <!-- http://www.itu.int/oth/T02020000CA/en -->
    <territory id="TJ">
      <generalDesc>
        <nationalNumberPattern>1\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

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

    <!-- Turkmenistan -->
    <!-- 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>03</exampleNumber>
        <nationalNumberPattern>0[1-3]</nationalNumberPattern>
      </shortCode>
      <!-- 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>03</exampleNumber>
        <nationalNumberPattern>0[1-3]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tunisia -->
    <!-- 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>197</exampleNumber>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>197</exampleNumber>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tonga -->
    <!-- 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>
      <!-- http://www.tongaholiday.com/?page_id=2034 -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Turkey -->
    <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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              [0239]|
              811
            )|
            2[126]|
            3(?:
              [126]|
              37?|
              [58]6|
              65
            )|
            4(?:
              [014]|
              71
            )|
            5(?:
              [135-9]|
              07|
              78
            )|
            6(?:
              [02]6|
              [1389]|
              99
            )|
            7[0-79]|
            8(?:
              \d|
              63|
              95
            )
          )|
          2(?:
            077|
            268|
            4(?:
              17|
              23
            )|
            5(?:
              7[26]|
              82
            )|
            6[14]4|
            8\d{2}|
            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{2}|
            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
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>183</exampleNumber>
        <nationalNumberPattern>
          1(?:
            22|
            3[126]|
            4[04]|
            5[16-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>5420</exampleNumber>
        <nationalNumberPattern>
          2850|
          5420
        </nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[02]|
            55
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>187</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>5420</exampleNumber>
        <nationalNumberPattern>
          1(?:
            3(?:
              37|
              [58]6|
              65
            )|
            4(?:
              4|
              71
            )|
            5(?:
              07|
              78
            )|
            6(?:
              [02]6|
              99
            )|
            8(?:
              3|
              63|
              95
            )
          )|
          2(?:
            077|
            268|
            4(?:
              17|
              23
            )|
            5(?:
              7[26]|
              82
            )|
            6[14]4|
            8\d{2}|
            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{2}|
            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
          )
        </nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Trinidad and Tobago -->
    <!-- http://www.itu.int/oth/T02020000D4/en -->
    <territory id="TT">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>99[09]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>99[09]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tuvalu -->
    <!-- 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>911</exampleNumber>
        <nationalNumberPattern>
          1\d{2}|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Taiwan, China -->
    <!-- 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\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[029]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>110</exampleNumber>
        <nationalNumberPattern>11[029]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Tanzania -->
    <!-- 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>111</exampleNumber>
        <nationalNumberPattern>
          11[12]|
          46400|
          999
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>46400</exampleNumber>
        <nationalNumberPattern>46400</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>111</exampleNumber>
        <nationalNumberPattern>
          11[12]|
          999
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>46400</exampleNumber>
        <nationalNumberPattern>46400</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Ukraine -->
    <!-- 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>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              [1-49]|
              6\d{2}
            )|
            1(?:
              2|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d{1,2}
            )|
            [278]\d|
            4\d{3}|
            5(?:
              1|
              \d{2}
            )|
            6\d{2}
          )|
          [89]00\d{1,2}
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="6"/>
        <exampleNumber>116000</exampleNumber>
        <nationalNumberPattern>
          116(?:
            000|
            1(?:
              11|
              23
            )
          )
        </nationalNumberPattern>
      </tollFree>
      <carrierSpecific>
        <possibleLengths national="4,5"/>
        <exampleNumber>11812</exampleNumber>
        <nationalNumberPattern>
          (?:
            118|
            [89]00
          )\d{1,2}
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[1-3]|
            12
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Uganda -->
    <!-- http://www.itu.int/oth/T02020000F1/en -->
    <!-- http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf -->
    <territory id="UG">
      <generalDesc>
        <nationalNumberPattern>9\d\d</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>999</exampleNumber>
        <nationalNumberPattern>999</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- United States -->
    <!-- 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>911</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              5[1-47]|
              [68]\d|
              7[0-57]|
              98
            )
          )|
          [2-9](?:
            11|
            \d{3,5}
          )
        </nationalNumberPattern>
      </shortCode>
      <tollFree>
        <possibleLengths national="3"/>
        <exampleNumber>611</exampleNumber>
        <nationalNumberPattern>611</nationalNumberPattern>
      </tollFree>
      <!-- 29002 is standard rate as per test results. -->
      <standardRate>
        <possibleLengths national="5,6"/>
        <exampleNumber>73822</exampleNumber>
        <nationalNumberPattern>
          2(?:
            3333|
            42242|
            56447|
            6688|
            75622|
            9002
          )|
          3(?:
            1010|
            2665|
            7404
          )|
          40404|
          560560|
          6(?:
            0060|
            22639|
            5246|
            7622
          )|
          7(?:
            0701|
            3822|
            4666
          )|
          8(?:
            38255|
            4816|
            72265
          )|
          99099
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>24280</exampleNumber>
        <nationalNumberPattern>
          2(?:
            4280|
            5209|
            7(?:
              449|
              663
            )
          )|
          3(?:
            2340|
            3786|
            5564|
            8(?:
              135|
              254
            )
          )|
          4(?:
            1(?:
              366|
              463
            )|
            3355|
            6(?:
              157|
              327
            )|
            7553|
            8(?:
              221|
              277
            )
          )|
          5(?:
            2944|
            4892|
            5928|
            9(?:
              187|
              342
            )
          )|
          69388|
          7(?:
            2(?:
              078|
              087
            )|
            3(?:
              288|
              909
            )|
            6426
          )|
          8(?:
            6234|
            9616
          )|
          9(?:
            5297|
            6(?:
              040|
              835
            )|
            7(?:
              294|
              688
            )|
            9(?:
              689|
              796
            )
          )
        </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>33669</exampleNumber>
        <nationalNumberPattern>
          [2-9]\d{3}|
          33669|
          [2356]11
        </nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
      </emergency>
      <smsServices>
        <possibleLengths national="5,6"/>
        <exampleNumber>20566</exampleNumber>
        <nationalNumberPattern>[2-9]\d{4,5}</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Uruguay -->
    <!-- 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,3}</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="3,4"/>
        <exampleNumber>104</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0[4-9]|
            1[2368]|
            2[0-3568]|
            787
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <standardRate>
        <possibleLengths national="4"/>
        <exampleNumber>1787</exampleNumber>
        <nationalNumberPattern>1787</nationalNumberPattern>
      </standardRate>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Uzbekistan -->
    <!-- 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[123]|
            [123]|
            50
          )|
          45400
        </nationalNumberPattern>
      </shortCode>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <carrierSpecific>
        <possibleLengths national="5"/>
        <exampleNumber>45400</exampleNumber>
        <nationalNumberPattern>45400</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[123]|
            [123]|
            50
          )
        </nationalNumberPattern>
      </emergency>
      <!-- https://support.google.com/plus/answer/1304917 -->
      <smsServices>
        <possibleLengths national="5"/>
        <exampleNumber>45400</exampleNumber>
        <nationalNumberPattern>45400</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Vatican City -->
    <!-- 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>113</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Saint Vincent and the Grenadines -->
    <!-- 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|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
    </territory>

    <!-- Venezuela -->
    <!-- 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>171</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>171</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Virgin Islands, British -->
    <!-- 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|
            99
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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>
    </territory>

    <!-- Virgin Islands, United States -->
    <!-- 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>911</nationalNumberPattern>
      </shortCode>
      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>911</exampleNumber>
        <nationalNumberPattern>911</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Viet Nam (Vietnam) -->
    <!-- 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[345]</nationalNumberPattern>
      </shortCode>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>113</exampleNumber>
        <nationalNumberPattern>11[345]</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Vanuatu -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>112</nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
    <!-- 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>
      <!-- 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 -->
    <!-- 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>994</exampleNumber>
        <nationalNumberPattern>
          1(?:
            1[12]|
            2[0-6]
          )|
          9(?:
            11|
            9[4-79]
          )
        </nationalNumberPattern>
      </shortCode>
      <carrierSpecific>
        <possibleLengths national="3"/>
        <exampleNumber>121</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>994</exampleNumber>
        <nationalNumberPattern>
          9(?:
            11|
            9[4-69]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Kosovo -->
    <!-- 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>
      <emergency>
        <possibleLengths national="3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )
        </nationalNumberPattern>
      </emergency>
    </territory>

    <!-- Yemen -->
    <!-- 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>
      <!-- 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 -->
    <territory id="YT">
      <generalDesc>
        <nationalNumberPattern>1\d\d?</nationalNumberPattern>
      </generalDesc>
      <shortCode>
        <possibleLengths national="2,3"/>
        <exampleNumber>112</exampleNumber>
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
      </shortCode>
      <!-- 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 -->
    <!-- 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>10111</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>
      <!-- 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>47751</exampleNumber>
        <nationalNumberPattern>
          3(?:
            078[23]|
            7(?:
              064|
              567
            )|
            8126
          )|
          4(?:
            2699|
            3(?:
              699|
              94[16]
            )|
            7751|
            8837
          )
        </nationalNumberPattern>
      </standardRate>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>41851</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>10111</exampleNumber>
        <nationalNumberPattern>
          1(?:
            0(?:
              1(?:
                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>47751</exampleNumber>
        <nationalNumberPattern>[34]\d{4}</nationalNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Zimbabwe -->
    <!-- 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>999</exampleNumber>
        <nationalNumberPattern>
          11[2469]|
          3\d{4}|
          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>961</exampleNumber>
        <nationalNumberPattern>
          9(?:
            5[023]|
            61
          )
        </nationalNumberPattern>
      </tollFree>
      <premiumRate>
        <possibleLengths national="5"/>
        <exampleNumber>30123</exampleNumber>
        <nationalNumberPattern>3\d{4}</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>999</exampleNumber>
        <nationalNumberPattern>
          (?:
            112|
            99[3-59]
          )
        </nationalNumberPattern>
      </emergency>
      <expandedEmergency>
        <possibleLengths national="3"/>
        <exampleNumber>114</exampleNumber>
        <nationalNumberPattern>114</nationalNumberPattern>
      </expandedEmergency>
    </territory>

  </territories>
</phoneNumberMetadata>
