<!-- 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?, carrierServices?, directoryServices?, emergency?, expandedEmergency?,
        smsServices?, carrierSelectionCodes?)>
    <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern)>
    <!ELEMENT shortCode (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>

    <!-- 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 (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!ELEMENT standardRate (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!ELEMENT premiumRate (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>

    <!-- 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 (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!-- Numbers that access services operated by a particular carrier (e.g. account top-up.) -->
    <!ELEMENT carrierServices (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!ELEMENT directoryServices (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!ELEMENT emergency (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
    <!-- 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 (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>
    <!-- Used for numbers that can receive & send SMSs but are not available to be called. -->
    <!ELEMENT smsServices (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>

    <!-- Numbers dialled to select a particular carrier before making a phone call. These should be
         included in the generalDesc pattern if they connect by themselves. However, they should be
         excluded if they are dialled as a prefix only. -->
    <!ELEMENT carrierSelectionCodes (nationalNumberPattern, possibleNumberPattern?, exampleNumber)>

    <!ELEMENT nationalNumberPattern (#PCDATA)>
    <!ELEMENT possibleNumberPattern (#PCDATA)>
    <!ELEMENT exampleNumber (#PCDATA)>

    <!ATTLIST territory id CDATA #REQUIRED>
]>

<phoneNumberMetadata>
  <territories>
    <!-- Ascension Island -->
    <!-- www.itu.int/oth/T02020000AF -->
    <territory id="AC">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

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

    <!-- United Arab Emirates -->
    <!-- http://www.itu.int/oth/T02020000DC/en -->
    <territory id="AE">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          112|
          99[789]
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          99[789]
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Anguilla -->
    <!-- http://www.itu.int/oth/T0202000007/en -->
    <territory id="AI">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </smsServices>
    </territory>

    <!-- Albania -->
    <!-- http://www.itu.int/oth/T0202000002/en -->
    <territory id="AL">
      <generalDesc>
        <nationalNumberPattern>[15]\d{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6(?:
                000|
                1(?:
                  06|
                  11|
                  23
                )
              )
            )|
            2[5-9]
          )|
          5\d{4}
        </nationalNumberPattern>
        <exampleNumber>129</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            2[789]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>129</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- According to http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx this is for
             sea emergencies. -->
        <nationalNumberPattern>125</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>125</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <nationalNumberPattern>5\d{4}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>51234</exampleNumber>
      </smsServices>
    </territory>

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

    <!-- Angola -->
    <!-- http://www.itu.int/oth/T0202000006/en -->
    <territory id="AO">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[235]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1096.html -->
        <nationalNumberPattern>11[235]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </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>[0189]\d{1,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          000|
          1(?:
            0[0-35-7]|
            1[02-5]|
            2[15]|
            9
          )|
          89338|
          911
        </nationalNumberPattern>
        <exampleNumber>121</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- According to http://wikitravel.org/en/Argentina all 2 and 3 digit numbers are free,
             except for 113. -->
        <nationalNumberPattern>
          [09]\d{2}|
          1(?:
            [02-9]\d?|
            1[0-24-9]?
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
        <exampleNumber>111</exampleNumber>
      </tollFree>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            1[1-9]|
            2\d
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </carrierServices>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>89338</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <directoryServices>
        <nationalNumberPattern>110</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>110</exampleNumber>
      </directoryServices>
      <emergency>
        <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Argentina#Public_utility_numbers -->
        <!-- 911 is only available in some places. -->
        <nationalNumberPattern>
          10[017]|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>101</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>10[356]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>103</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>89338</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Austria -->
    <!-- http://www.rtr.at/en/tk/E129 -->
    <territory id="AT">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            [12]2|
            33|
            44
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            [12]2|
            33|
            44
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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 -->
    <territory id="AU">
      <!-- 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. -->
      <generalDesc>
        <nationalNumberPattern>
          [027]\d{2}|
          1\d{2,7}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,8}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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(?:
              [13-5]\d{3}|
              [679]\d{5}
            )
          )|
          225|
          7(?:
            33|
            67
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>
          1(?:
            258885|
            555
          )|
          733
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,7}</possibleNumberPattern>
        <exampleNumber>733</exampleNumber>
      </tollFree>
      <standardRate>
        <nationalNumberPattern>
          1(?:
            1\d{2}|
            24733
          )|
          225|
          767
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>225</exampleNumber>
      </standardRate>
      <premiumRate>
        <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
        <nationalNumberPattern>
          1(?:
            2(?:
              34|
              456
            )|
            9\d{4,6}
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
        <exampleNumber>191123</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- http://www.vodafone.com.au/personal/services/messaging/txt/mobilepremiumservices -->
        <nationalNumberPattern>
          1(?:
            258885|
            555
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
        <exampleNumber>1555</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            2\d{1,5}|
            555
          )|
          [27]\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,7}</possibleNumberPattern>
        <exampleNumber>1282</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>122[35]</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1223</exampleNumber>
      </directoryServices>
      <smsServices>
        <nationalNumberPattern>19\d{4,6}</nationalNumberPattern>
        <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
        <exampleNumber>191123</exampleNumber>
      </smsServices>
      <emergency>
        <nationalNumberPattern>
          000|
          1(?:
            06|
            12
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Åland Islands. -->
    <!-- Country calling code shared with Finland. -->
    <territory id="AX">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Bosnia and Herzegovina -->
    <!-- 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}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>12[234]</nationalNumberPattern>
        <exampleNumber>122</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>12[234]</nationalNumberPattern>
        <exampleNumber>122</exampleNumber>
      </emergency>
    </territory>

    <!-- Barbados -->
    <!-- http://www.itu.int/oth/T0202000013/en -->
    <territory id="BB">
      <generalDesc>
        <nationalNumberPattern>[235]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>[235]11</nationalNumberPattern>
        <exampleNumber>211</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>[235]11</nationalNumberPattern>
        <exampleNumber>211</exampleNumber>
      </emergency>
    </territory>

    <!-- Bangladesh -->
    <!-- http://www.itu.int/oth/T0202000012/en -->
    <territory id="BD">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0(?:
              [0-39]|
              5(?:
                0\d|
                [1-4]
              )|
              6\d{2}|
              7[0-4]|
              8[0-29]
            )|
            1[6-9]|
            2(?:
              2[0-5]|
              [34]
            )|
            3(?:
              1\d?|
              3\d|
              6[3-6]
            )|
            4(?:
              0\d|
              1\d{2}
            )|
            5[2-9]
          )|
          9(?:
            594|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>103</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>9594</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          10[0-2]|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>9594</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
      </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\d{2,5}|
          [2-9]\d{3}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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
            )|
            7(?:
              00|
              1[27-9]|
              33|
              65|
              7[17]|
              89
            )|
            81[39]
          )|
          [2-9]\d{3}
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- Documentation from www.childfocus.be says that 110 and 116000 are both free. Other
             information comes from the website of each number. -->
        <nationalNumberPattern>
          1(?:
            0[25-8]|
            1(?:
              0|
              6\d{3}
            )|
            7(?:
              12|
              77
            )|
            813
          )|
          8\d{3}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </tollFree>
      <premiumRate>
        <!-- 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/ -->
        <nationalNumberPattern>
          1(?:
            2(?:
              12|
              34
            )|
            3(?:
              07|
              13
            )|
            414|
            \d04
          )|
          [2-79]\d{3}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>7212</exampleNumber>
      </premiumRate>
      <directoryServices>
        <nationalNumberPattern>1[2-4]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1212</exampleNumber>
      </directoryServices>
      <smsServices>
        <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>2787</exampleNumber>
      </smsServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[01]|
            12
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- http://www.childfocus.be/fr/accueil/ lists this as being an emergency number. -->
        <nationalNumberPattern>
          11(?:
            0|
            6000
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </expandedEmergency>
      <carrierSelectionCodes>
        <nationalNumberPattern>
          1(?:
            5(?:
              1[05]|
              2[25]|
              5[15]|
              66|
              88|
              9[59]
            )|
            6(?:
              02|
              1[167]|
              36|
              6[156]
            )
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1510</exampleNumber>
      </carrierSelectionCodes>
    </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
        <nationalNumberPattern>1[78]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Bahrain -->
    <!-- http://www.itu.int/oth/T0202000011/en -->
    <territory id="BH">
      <generalDesc>
        <nationalNumberPattern>[89]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          88000|
          9(?:
            8555|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          88000|
          98555
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          88000|
          98555
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Benin -->
    <!-- http://www.itu.int/oth/T0202000017/en -->
    <territory id="BJ">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[78]</nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[78]</nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Bermuda -->
    <!-- http://www.itu.int/oth/T0202000018/en -->
    <territory id="BM">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          176|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
      </smsServices>
    </territory>

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

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

    <!-- Bonaire, Sint Eustatius and Saba -->
    <!-- http://www.itu.int/oth/T02020000F8/en -->
    <territory id="BQ">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            76
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </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>[1249]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0(?:
              0|
              [36]\d{2}|
              5\d
            )|
            [15][26]|
            2[38]|
            68|
            81|
            9[0-5789]
          )|
          27878|
          40404|
          911
        </nationalNumberPattern>
        <exampleNumber>168</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- http://www.sdh.gov.br/disque100 -->
        <!-- http://www.181.pr.gov.br/modules/conteudo/conteudo.php?conteudo=1 -->
        <nationalNumberPattern>
          1(?:
            00|
            81
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>181</exampleNumber>
      </tollFree>
      <carrierServices>
        <!-- We have conducted tests in Brazil which verified that carrier customer service numbers
             are not carrier-specific. -->
        <nationalNumberPattern>
          10(?:
            [36]\d{2}|
            5\d
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>10321</exampleNumber>
      </carrierServices>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          27878|
          40404
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>27878</exampleNumber>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            28|
            9[023]
          )|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>190</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- 195 from https://www9.sabesp.com.br/agenciavirtual/ is limited to the state of São
             Paulo. -->
        <nationalNumberPattern>
          1(?:
            16|
            23|
            68|
            9[145789]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>168</exampleNumber>
      </expandedEmergency>
      <carrierSelectionCodes>
        <!-- http://en.wikipedia.org/wiki/Brazilian_Carrier_Selection_Code -->
        <nationalNumberPattern>
          1[245]|
          2[135]|
          31|
          4[13]|
          65
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
        <exampleNumber>15</exampleNumber>
      </carrierSelectionCodes>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          27878|
          40404
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>27878</exampleNumber>
      </smsServices>
    </territory>

    <!-- Bahamas -->
    <!-- http://www.itu.int/oth/T0202000010/en -->
    <territory id="BS">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>91[19]</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
        <nationalNumberPattern>91[19]</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Botswana -->
    <!-- http://www.itu.int/oth/T020200001C/en -->
    <territory id="BW">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          13123|
          99[789]
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>13123</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- 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 -->
        <nationalNumberPattern>99[789]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>13123</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

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

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

    <!-- Canada -->
    <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
    <territory id="CA">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          112|
          21212|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>21212</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
    <territory id="CD">
      <generalDesc>
        <nationalNumberPattern>4\d{4}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>40404</exampleNumber>
      </shortCode>
      <!-- No national emergency numbers were located for Congo. -->
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
      </smsServices>
    </territory>

    <!-- Central African Republic -->
    <!-- id="CF" -->
    <!-- No emergency numbers information can be found. -->

    <!-- Congo (Rep. of the) (Brazzaville) -->
    <!-- id="CG" -->
    <!-- No emergency numbers information can be found. -->

    <!-- 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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 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. -->
        <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>
        <exampleNumber>147</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            47
          )|
          5200
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            4(?:
              [035]|
              1\d
            )|
            6\d{1,2}
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>1600</exampleNumber>
      </standardRate>
      <premiumRate>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            145|
            8\d{2}
          )|
          543|
          83111
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
        <exampleNumber>543</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- 5200, 535 are both used by Orange for SMSs. -->
        <nationalNumberPattern>
          5(?:
            200|
            35
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>535</exampleNumber>
      </carrierSpecific>
      <directoryServices>
        <nationalNumberPattern>18\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1818</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
          1(?:
            16111|
            4(?:
              [0356]|
              1[45]
            )
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>140</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <nationalNumberPattern>[2-9]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>600</exampleNumber>
      </smsServices>
      <carrierSelectionCodes>
        <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_cscAllocated.do -->
        <nationalNumberPattern>10[78]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>10742</exampleNumber>
      </carrierSelectionCodes>
    </territory>

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

    <!-- Cook Islands -->
    <!-- http://www.itu.int/oth/T020200002F/en -->
    <territory id="CK">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>99[689]</nationalNumberPattern>
        <exampleNumber>998</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
             sites agree on the following numbers. -->
        <nationalNumberPattern>99[689]</nationalNumberPattern>
        <exampleNumber>998</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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>
        <exampleNumber>139</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/ under "Mensajería
             Ilimitada". -->
        <nationalNumberPattern>
          1213|
          4342
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>4342</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/#04-prepago-multimedia -->
        <nationalNumberPattern>
          2001|
          3337
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>3337</exampleNumber>
      </standardRate>
      <premiumRate>
        <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>
        <exampleNumber>2224</exampleNumber>
      </premiumRate>
      <carrierSelectionCodes>
        <nationalNumberPattern>
          1(?:
            1[0-69]|
            2[0-57]|
            5[13-58]|
            69|
            7[0167]|
            8[018]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>1\d{2}</possibleNumberPattern>
        <exampleNumber>154</exampleNumber>
      </carrierSelectionCodes>
      <carrierServices>
        <!-- http://www.clarochile.cl/portal/cl/pc/personas/movil/prepago/ under "Mensajería
             Ilimitada". -->
        <nationalNumberPattern>
          1213|
          4342
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1213</exampleNumber>
      </carrierServices>
      <emergency>
        <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=41 -->
        <nationalNumberPattern>
           13[123]|
           911
        </nationalNumberPattern>
        <exampleNumber>133</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- http://es.wikipedia.org/wiki/Anexo:Teléfonos_de_emergencias -->
        <nationalNumberPattern>
          1(?:
            00|
            3[04-9]|
            4(?:
              0[02-6]|
              [379]
            )
          )
        </nationalNumberPattern>
        <exampleNumber>149</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <nationalNumberPattern>
          (?:
            [137-9]|
            [2456]\d?
          )\d{3}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>5577</exampleNumber>
      </smsServices>
    </territory>

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

    <!-- China -->
    <!-- http://www.itu.int/oth/T020200002B/en -->
    <territory id="CN">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            00\d{2}|
            1[09]|
            20
          )|
          95\d{3,4}
        </nationalNumberPattern>
        <exampleNumber>119</exampleNumber>
      </shortCode>
      <carrierServices>
        <!-- 100xx numbers are mainly used for carrier services. They can be dialed nationwide and
             are always routed to the local provider. They 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.
             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. -->
        <nationalNumberPattern>100\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>10000</exampleNumber>
      </carrierServices>
      <standardRate>
        <!-- 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. -->
        <nationalNumberPattern>
          100\d{2}|
          95\d{3,4}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>95566</exampleNumber>
      </standardRate>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1[09]|
            20
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>119</exampleNumber>
      </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{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            06|
            1[2569]|
            2[357]|
            3[27]|
            4[467]|
            5[36]|
            6[45]|
            95
          )|
          40404|
          85432
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <!-- 85432 is used for customer complaints - found on mobile websites - and will go to your
             carrier specifically. -->
        <nationalNumberPattern>
          40404|
          85432
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- Police, medical and fire plus general emergency numbers (112,123). -->
        <nationalNumberPattern>
          1(?:
            1[29]|
            23|
            32|
            56
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- Traffic accidents, civil defense, GAULA and urgent local short numbers from above. -->
        <nationalNumberPattern>
          1(?:
            [01]6|
            [23]7|
            4[47]|
            6[45]
          )
        </nationalNumberPattern>
        <exampleNumber>127</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          40404|
          85432
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

    <!-- Costa Rica -->
    <!-- http://www.itu.int/oth/T0202000030/en -->
    <territory id="CR">
      <generalDesc>
        <nationalNumberPattern>[1359]\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- This pattern excludes 4-digit SMS content numbers for now. -->
        <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>
        <exampleNumber>1022</exampleNumber>
      </shortCode>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            4(?:
              06|
              14
            )|
            693
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1406</exampleNumber>
      </carrierServices>
      <smsServices>
        <nationalNumberPattern>
          3855|
          5(?:
            0(?:
              30|
              49
            )|
            510
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
      </smsServices>
      <emergency>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

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

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

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

    <!-- Christmas Islands -->
    <!-- Country calling code shared with Australia. -->
    <territory id="CX">
      <generalDesc>
        <nationalNumberPattern>[01]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>
          000|
          112
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Cyprus -->
    <!-- http://www.itu.int/oth/T0202000034/en -->
    <territory id="CY">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              6\d{3}|
              8\d
            )|
            2\d{2,3}|
            3\d{3,4}|
            4\d{3}|
            5[058]|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>116123</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            5[058]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- Public Service Number for German administration: 115. -->
        <nationalNumberPattern>11[025]</nationalNumberPattern>
        <exampleNumber>115</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[02]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Denmark -->
    <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
    <territory id="DK">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Algeria -->
    <!-- http://www.itu.int/oth/T0202000003/en -->
    <!-- www.arpt.dz -->
    <territory id="DZ">
      <generalDesc>
        <nationalNumberPattern>[17]\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1[47]|
          730
        </nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>730</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>1[47]</nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>730</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[12]|
            12
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Estonia -->
    <!-- http://www.itu.int/oth/T0202000043/en -->
    <!-- http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm -->
    <territory id="EE">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <exampleNumber>116</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[02]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Egypt -->
    <!-- http://www.itu.int/oth/T020200003E/en -->
    <territory id="EG">
      <generalDesc>
        <nationalNumberPattern>[13]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            2[23]|
            80
          )|
          34400
        </nationalNumberPattern>
        <exampleNumber>122</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>34400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>34400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            2[23]|
            80
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>122</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>34400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>34400</exampleNumber>
      </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{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Eritrea -->
    <!-- id="ER" -->
    <!-- No emergency numbers information can be found. -->

    <!-- 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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 133, 134 and 177 aren't in the numbering plan but on vodafone's homepage as short
             numbers. -->
        <nationalNumberPattern>
          0(?:
            1[0-26]|
            6[0-27]|
            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]9[57]\d{3}
        </nationalNumberPattern>
        <exampleNumber>010</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- Section 5.3 and 6.2 of Guia Numeracion (link above) -->
        <nationalNumberPattern>
          0(?:
            16|
            67|
            88
          )|
          1(?:
            006|
            16\d{3}|
            [3-7]\d{2}
          )|
          20\d{4}
        </nationalNumberPattern>
        <exampleNumber>116111</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 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. -->
        <nationalNumberPattern>
          0(?:
            [16][0-2]|
            80|
            9[12]
          )|
          21\d{4}
        </nationalNumberPattern>
        <exampleNumber>211234</exampleNumber>
      </standardRate>
      <premiumRate>
        <!-- Section 5.2 and 6.3 of Guia Numeracion (link above) -->
        <nationalNumberPattern>
          1(?:
            18\d{2}|
            2\d{1,4}
          )|
          2(?:
            2\d{1,4}|
            [3-9]\d{3,4}
          )|
          [379]\d{4,5}
        </nationalNumberPattern>
        <exampleNumber>23456</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            2\d{1,4}|
            3[34]|
            77
          )|
          22\d{1,4}
        </nationalNumberPattern>
        <exampleNumber>123</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <!-- This covers the Network internal services specified in the numbering plan plus the
             numbers 133, 134 and 177 found on Vodafone's homepage. -->
        <nationalNumberPattern>
          1(?:
            004|
            2\d{1,4}|
            3[34]|
            77
          )|
          22\d{1,4}
        </nationalNumberPattern>
        <exampleNumber>121</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>118\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>11812</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          08[58]|
          112
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
          0(?:
            16|
            [69][12]|
            80
          )|
          1(?:
            006|
            16111
          )
        </nationalNumberPattern>
        <exampleNumber>016</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <!-- Section 6 of Guia Numeracion (link above) -->
        <nationalNumberPattern>[2379]\d{4,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>23456</exampleNumber>
      </smsServices>
      <carrierSelectionCodes>
        <nationalNumberPattern>10[3-57]\d{1,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
        <exampleNumber>103123</exampleNumber>
      </carrierSelectionCodes>
    </territory>

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

    <!-- Finland -->
    <!-- Country calling code shared with Åland (AX) -->
    <!-- https://www.viestintavirasto.fi/internetpuhelin/puhelinverkonnumerointi.html -->
    <territory id="FI">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Fiji -->
    <!-- http://www.itu.int/oth/T0202000048/en -->
    <!-- www.tfl.com.fj -->
    <territory id="FJ">
      <generalDesc>
        <nationalNumberPattern>[0-579]\d{1,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 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 -->
        <nationalNumberPattern>
          0(?:
           1[34]|
           8[1-4]
          )|
          1(?:
            0[1-3]|
            [25]9
          )|
          2[289]|
          30|
          4(?:
            0404|
            4
          )|
          54|
          75|
          91[137]
        </nationalNumberPattern>
        <exampleNumber>22</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>91[17]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Micronesia, Federated States of -->
    <!-- http://www.itu.int/oth/T020200008B/en -->
    <territory id="FM">
      <generalDesc>
        <nationalNumberPattern>
          3\d{5}|
          9\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}(?:\d{3})?</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          320221|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
        <nationalNumberPattern>
          320221|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Faroe Islands -->
    <!-- http://www.itu.int/oth/T0202000047/en -->
    <territory id="FO">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- Includes special numbers, special services and universal services.  -->
        <nationalNumberPattern>
          1(?:
            1[248]|
            4[124]\d|
            71\d|
            8[7-9]\d
          )
        </nationalNumberPattern>
        <exampleNumber>114</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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\d{1,5}|
          [267]\d{2,4}|
          3\d{3,4}|
          [458]\d{4}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 110 is a number used for different campaigns such as Sidaction for a limited time only.
             -->
        <nationalNumberPattern>
          1(?:
            0\d{2}|
            1(?:
              [02459]|
              6000|
              8\d{3}
            )|
            [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>
        <exampleNumber>1010</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            0(?:
              07|
              13
            )|
            1(?:
              [0459]|
              6\d{3}|
              871[03]
            )
          )|
          224|
          3(?:
            [01]\d{2}|
            3700
          )|
          740
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>3010</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 3646 is listed as being the same as a local call on www.ameli.fr. -->
        <nationalNumberPattern>
          10(?:
             14|
             2[23]|
             34|
             6[14]|
             99
          )|
          2020|
          3(?:
            646|
            9[07]0
          )|
          6(?:
            1[14]|
            34
          )|
          70[06]
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>1023</exampleNumber>
      </standardRate>
      <premiumRate>
        <!-- 118XYZ numbers are supposed to be tollfree by 2015 according to
             http://www.arcep.fr/uploads/tx_gspublication/guide-operateurs-editeurs-sva-sept2012.pdf
             but their current prices vary: according to http://www.appel118.fr/detail.php
             only two numbers are free at the moment.
             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. -->
        <nationalNumberPattern>
          118(?:
            [0-68]\d{2}|
            7(?:
              0\d|
              1[1-9]|
              [2-9]\d
            )
          )|
          36665|
          [4-8]\d{4}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>42000</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- http://www.appel118.fr/detail.php lists 118777 as only being accessible from SFR. 224
             is an Orange-only service. -->
        <nationalNumberPattern>
          118777|
          2(?:
            0(?:
              000|
              20
            )|
            24
          )|
          6(?:
            1[14]|
            34
          )|
          7\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>118777</exampleNumber>
      </carrierSpecific>
      <!-- Other services in the French plan: -->
      <carrierServices>
        <nationalNumberPattern>
          10\d{2}|
          7\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>1012</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>118\d{3}</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>118218</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            [578]|
            12
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>116111</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>116111</exampleNumber>
      </expandedEmergency>
      <!-- https://clients.txtnation.com/entries/22523777-France-Premium-SMS-Short-Code-Regulations
           -->
      <smsServices>
        <nationalNumberPattern>[3-8]\d{4}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>33700</exampleNumber>
      </smsServices>
      <carrierSelectionCodes>
        <!-- The specific carrier selection codes have not yet been assigned. -->
        <nationalNumberPattern>16\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1600</exampleNumber>
      </carrierSelectionCodes>
    </territory>

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

    <!-- United Kingdom -->
    <territory id="GB">
      <generalDesc>
        <nationalNumberPattern>[1-4679]\d{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- This is a list of the ones that can be called (as opposed to numbers used by text
             delivery or data services). -->
        <nationalNumberPattern>
          1(?:
            0[01]|
            1(?:
              [12]|
              [68]\d{3}
            )|
            2[123]|
            33|
            4(?:
              1|
              7\d
            )|
            5\d|
            70\d|
            800\d|
            9[15]
          )|
          2(?:
            02|
            2(?:
              02|
              11|
              2
            )|
            3(?:
              02|
              45
            )|
            425
          )|
          3[13]3|
          4(?:
            0[02]|
            35[01]|
            44[45]|
            5\d
          )|
          650|
          789|
          9(?:
            01|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>150</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Grenada -->
    <!-- http://www.itu.int/oth/T0202000057/en -->
    <territory id="GD">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
      </carrierSpecific>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <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>[041]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          0(?:
            11|
            22|
            33
          )|
          1(?:
            1[123]|
            22
          )|
          40404
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>
          0(?:
            11|
            22|
            33
          )|
          1(?:
            1[123]|
            22
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- Taken from numbers listed explicitly as Public Telephone Network Numbers in
             http://stakeholders.ofcom.org.uk/binaries/telecoms/numbering/numplan201210.pdf -->
        <nationalNumberPattern>
          1(?:
            0[01]|
            1(?:
              [12]|
              [68]\d{3}
            )|
            23|
            4(?:
              1|
              7\d
            )|
            55|
            800\d|
            95
          )|
          999
        </nationalNumberPattern>
        <exampleNumber>155</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          19[123]|
          40404|
          (?:
            54|
            83
          )00|
          999
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>
          40404|
          (?:
            54|
            83
          )00
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>5400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          19[123]|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          40404|
          (?:
            54|
            83
          )00
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>5400</exampleNumber>
      </smsServices>
    </territory>

    <!-- Gibraltar -->
    <!-- http://www.gra.gi/index.php?topic=numbering+plan&section=legislation&site=communications-->
    <territory id="GI">
      <generalDesc>
        <nationalNumberPattern>[158]\d{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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(?:
            008?|
            4[0-2]|
            88
          )
        </nationalNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>
          1(?:
            00|
            16\d{3}|
            23|
            47\d|
            5[15]|
            9[2-4]
          )|
          555
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>100</exampleNumber>
      </tollFree>
      <standardRate>
        <nationalNumberPattern>150</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>150</exampleNumber>
      </standardRate>
      <carrierSpecific>
        <nationalNumberPattern>
          1(?:
            18\d{2}|
            23|
            51|
            9[2-4]
          )|
          555|
          8(?:
            00|
            88
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
        <exampleNumber>123</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <nationalNumberPattern>
          123|
          555|
          8(?:
            00|
            88
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>123</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>
          1(?:
            00|
            18\d{2}
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
        <exampleNumber>11812</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            9[09]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>116111</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>116111</exampleNumber>
      </expandedEmergency>
      <!-- Type B codes in the plan. -->
      <carrierSelectionCodes>
        <nationalNumberPattern>88[467]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>884</exampleNumber>
      </carrierSelectionCodes>
    </territory>

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

    <!-- Gambia -->
    <!-- http://www.itu.int/oth/T020200004F/en -->
    <territory id="GM">
      <generalDesc>
        <nationalNumberPattern>1\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1?1[678]</nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1121.html -->
        <!-- http://www.netglobers.com/africa/gambia-emergency-numbers-in-the-gambia.html -->
        <nationalNumberPattern>1?1[678]</nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </emergency>
    </territory>

    <!-- Guinea -->
    <territory id="GN">
      <generalDesc>
        <nationalNumberPattern>4\d{4}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>40404</nationalNumberPattern>
        <exampleNumber>40404</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
      </carrierSpecific>
      <!-- No national emergency numbers were located for Guinea. -->
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>18</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>18</exampleNumber>
      </emergency>
    </territory>

    <!-- Equatorial Guinea -->
    <!-- id="GQ" -->
    <!-- No national emergency numbers were located for Equatorial Guinea. -->

    <!-- Greece -->
    <!-- http://www.itu.int/oth/T0202000055/en -->
    <!-- http://en.wikipedia.org/wiki/%2B30 -->
    <territory id="GR">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            00|
            12|
            66|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            00|
            12|
            66|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            10|
            2\d|
            [57]\d{2}
          )|
          40404
        </nationalNumberPattern>
        <exampleNumber>123</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            10|
            2[03]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>110</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

    <!-- Guam -->
    <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
    <territory id="GU">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Hong Kong -->
    <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
    <territory id="HK">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          112|
          99[29]
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          99[29]
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- Honduras -->
    <!-- http://www.itu.int/oth/T020200005F/en -->
    <territory id="HN">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          199|
          40404
        </nationalNumberPattern>
        <exampleNumber>199</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>199</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>199</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </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>
        <possibleNumberPattern>\d{2,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
         1(?:
            1[28]|
            16\d{3}|
            987|
            9[2-5]
          )|
          9[34]
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            12|
            9[2-4]
          )|
          9[34]
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
        19(?:
          5|
          87
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>195</exampleNumber>
      </expandedEmergency>
    </territory>

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

    <!-- Hungary -->
    <!-- http://www.itu.int/oth/T0202000061/en -->
    <territory id="HU">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[457]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[457]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Ireland -->
    <territory id="IE">
      <generalDesc>
        <nationalNumberPattern>[159]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          112|
          51210|
          999
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>51210</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>51210</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </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>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0(?:
              [012]|
              400
            )|
            1(?:
              [013-9]\d|
              2
            )|
            [2-9]\d{2}
          )
        </nationalNumberPattern>
        <exampleNumber>1455</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>10400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>10400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[012]|
            12
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>10400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>10400</exampleNumber>
      </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{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1\d{2}(?:\d{3})?|
          8(?:
            6444|
            9887
          )|
          999
        </nationalNumberPattern>
        <exampleNumber>150</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.directory.im/directory_useful.aspx -->
        <nationalNumberPattern>999</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          8(?:
            6444|
            9887
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </smsServices>
    </territory>

    <!-- India -->
    <!-- http://www.itu.int/oth/T0202000063/en -->
    <!-- http://en.wikipedia.org/wiki/%2B91 -->
    <territory id="IN">
      <generalDesc>
        <nationalNumberPattern>[125]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[0128]|
            12|
            298
          )|
          2611|
          53000
        </nationalNumberPattern>
        <exampleNumber>108</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>53000</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[0128]|
            12|
            298
          )|
          2611
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>108</exampleNumber>
      </emergency>
    </territory>

    <!-- British Indian Ocean Territory / Diego Garcia -->
    <!-- id="IO" -->
    <!-- It seems that there are no emergency numbers for this island. -->

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

    <!-- Iran, Islamic Republic of -->
    <!-- http://www.itu.int/oth/T0202000066/en -->
    <territory id="IR">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1[025]|
            25
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1[025]|
            25
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Iceland -->
    <!-- http://www.pta.is/default.aspx?cat_id=85 -->
    <!-- http://www.pfs.is/default.aspx?cat_id=14&module_id=210&element_id=4 -->
    <territory id="IS">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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>
        <possibleNumberPattern>\d{3,7}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0\d{2,3}|
            1(?:
              [2-5789]|
              6000
            )|
            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>
        <exampleNumber>114</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>
          1(?:
            16\d{3}|
            87
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>187</exampleNumber>
      </tollFree>
      <premiumRate>
        <!-- http://clients.txtnation.com/attachments/token/di5kfblvubttvlw/?name=Italy_CASP_EN.pdf -->
        <nationalNumberPattern>
          (?:
            12|
            4(?:
              [478]\d{3,5}|
              55
            )
          )\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
        <exampleNumber>1254</exampleNumber>
      </premiumRate>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            87|
            9(?:
              2(?:
                [01]\d{2}|
                [2-9]
              )|
              4
            )
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
        <exampleNumber>1920</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>12\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1254</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
           1(?:
             1(?:
               [47]|
               6111
             )|
             5(?:
               15|
               2[25]|
               3[03]|
               44
             )|
             9696
           )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
        <exampleNumber>114</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <nationalNumberPattern>4[3-578]\d{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
        <exampleNumber>43000</exampleNumber>
      </smsServices>
      <carrierSelectionCodes>
        <nationalNumberPattern>10\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <!-- http://www.carrieritalia.it/EN/Carrier-Selection-10164.aspx -->
        <exampleNumber>10164</exampleNumber>
      </carrierSelectionCodes>
    </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{2,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
        <nationalNumberPattern>
          1(?:
            00|
            1(?:
              2|
              8\d{3}
            )|
            23|
            4(?:
              [14]|
              28|
              7\d
            )|
            5\d|
            7(?:
              0[12]|
              [128]|
              35?
            )|
            808|
            9[135]
          )|
          23[234]|
          999
        </nationalNumberPattern>
        <exampleNumber>150</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- Jamaica -->
    <!-- http://www.itu.int/oth/T020200006C/en -->
    <territory id="JM">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1[029]|
            76
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=116 -->
        <nationalNumberPattern>
          11[029]|
          911
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>176</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </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{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            09|
            1[0-2]|
            9[0-24-79]
          )|
          9(?:
            0903|
            11|
            8788
          )
        </nationalNumberPattern>
        <exampleNumber>111</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          9(?:
            0903|
            8788
          )
          </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- 192 is only available in Amman, 197 in the suburbs. -->
        <nationalNumberPattern>
          1(?:
            12|
            9[127]
          )|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>190</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </expandedEmergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          9(?:
            0903|
            8788
          )
          </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[09]</nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[09]</nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </emergency>
    </territory>

    <!-- Kenya -->
    <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
    <!-- http://en.wikipedia.org/wiki/+254 -->
    <territory id="KE">
      <generalDesc>
        <nationalNumberPattern>[1489]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- Excluding SMS-only premium-rate short codes for now. -->
        <nationalNumberPattern>
          1(?:
            0(?:
              [079]|
              400
            )|
            1(?:
              [26]|
              9[0-259]
            )|
            2[13]|
            3[01]
          )|
          40404|
          8988|
          999
        </nationalNumberPattern>
        <exampleNumber>116</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          10400|
          40404|
          8988
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          10400|
          40404|
          8988
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
      </smsServices>
    </territory>

    <!-- Kyrgyzstan -->
    <!-- http://www.itu.int/oth/T0202000074/en -->
    <territory id="KG">
      <generalDesc>
        <nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          10[123]|
          4040
        </nationalNumberPattern>
        <exampleNumber>101</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>4040</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>10[123]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>101</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>4040</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
      </smsServices>
    </territory>

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

    <!-- Kiribati -->
    <!-- http://www.itu.int/oth/T0202000071/en - these conflict with those
         registered at
         http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=123&pg_size=50 but
         were updated later. http://tskl.net.ki/services has others. -->
    <territory id="KI">
      <generalDesc>
        <nationalNumberPattern>[179]\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- http://tskl.net.ki/services/3g-4g-rates-offpeaks/quick-dial-credit-checking-codes/
             lists 777 as voicemail access. -->
        <nationalNumberPattern>
          10(?:
            [0-8]|
            5[01259]
          )|
          777|
          99[2349]
        </nationalNumberPattern>
        <exampleNumber>100</exampleNumber>
      </shortCode>
      <standardRate>
        <!-- http://www.tskl.net.ki/910_operator.php - charged at $0.20 per call. -->
        <nationalNumberPattern>103</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>103</exampleNumber>
      </standardRate>
      <carrierServices>
        <nationalNumberPattern>777</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>777</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>103</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>103</exampleNumber>
      </directoryServices>
      <emergency>
        <!-- www.tskl.net.ki/directory.pdf -->
        <nationalNumberPattern>99[2349]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Korea, Dem. People's Rep. of -->
    <!-- id="KP" -->
    <!-- According to the following webpage, there is no emergency number in North Korea:
         http://www.netglobers.com/asia/north-korea-emergency-numbers-in-north-korea.html -->

    <!-- Korea (Rep. of) -->
    <!-- http://www.itu.int/oth/T0202000072/en -->
    <!-- http://en.wikipedia.org/wiki/%2B82 -->
    <territory id="KR">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[29]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[29]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Kuwait -->
    <!-- http://www.itu.int/oth/T0202000073/en -->
    <territory id="KW">
      <generalDesc>
        <nationalNumberPattern>[18]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1\d{2}|
          89887
        </nationalNumberPattern>
        <exampleNumber>177</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>89887</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Cayman Islands -->
    <!-- http://www.itu.int/oth/T0202000027/en -->
    <territory id="KY">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Kazakhstan -->
    <!-- http://www.itu.int/oth/T020200006F/en -->
    <territory id="KZ">
      <generalDesc>
        <nationalNumberPattern>[134]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[123]|
            12
          )|
          30400|
          4040
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          30400|
          4040
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>30400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>
          30400|
          4040
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>30400</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>19[015]</nationalNumberPattern>
        <exampleNumber>190</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
        <nationalNumberPattern>19[015]</nationalNumberPattern>
        <exampleNumber>190</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Saint Lucia -->
    <!-- http://www.itu.int/oth/T02020000B1/en -->
    <territory id="LC">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1(?:
              [278]|
              45
            )|
            4[3-57]|
            50|
            75|
            81[18]
          )
        </nationalNumberPattern>
        <exampleNumber>1145</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1[278]|
            44
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

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

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

    <!-- Lithuania -->
    <!-- http://www.itu.int/oth/T020200007C/en -->
    <territory id="LT">
      <generalDesc>
        <nationalNumberPattern>[01]\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          0(?:
            11?|
            22?|
            33?
          )|
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Luxembourg -->
    <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html -->
    <territory id="LU">
      <generalDesc>
        <nationalNumberPattern>1\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1[23]|
            2\d{3}
          )
        </nationalNumberPattern>
        <exampleNumber>12123</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[23]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
    <territory id="LY">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>19[013]</nationalNumberPattern>
        <exampleNumber>193</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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 -->
        <nationalNumberPattern>19[013]</nationalNumberPattern>
        <exampleNumber>193</exampleNumber>
      </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{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            [59]|
            77
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Monaco -->
    <!-- http://www.itu.int/oth/T020200008D/en -->
    <territory id="MC">
      <generalDesc>
        <nationalNumberPattern>1\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            41|
            [578]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- http://www.idknet.com/mobile/sms/ -->
        <nationalNumberPattern>
          1(?:
            1(?:
              [279]|
              6(?:
                000|
                1(?:
                  11|
                  23
                )
              )|
              8\d|
              99
            )|
            4\d{3}|
            5[0-3]\d|
            6[0-389]\d|
            8\d{2}|
            9(?:
              0[0-9]|
              [1-4]\d
            )
          )
        </nationalNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          90[123]
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            [035]\d{2}|
            1(?:
              [013-57-9]\d|
              2|
              6\d{3}
            )|
            2\d{1,2}|
            4\d{2,3}|
            9\d{3}
          )
        </nationalNumberPattern>
        <exampleNumber>1011</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            2[234]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>18</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>18</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Marshall Islands -->
    <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_964.html -->
    <territory id="MH">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Macedonia, Former Yugoslav Rep. of -->
    <!-- http://www.itu.int/oth/T02020000CE/en -->
    <territory id="MK">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            9[234]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            9[234]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>[1367]\d{1,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 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. -->
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              [013-9]\d
            )|
            2(?:
              1[02-469]|
              2[13]
            )|
            [578]
          )|
          3(?:
            5(?:
              0(?:
                35|
                57
              )|
              2(?:
                00|
                11|
                2[02]|
                3[04-6]
                5[0-25-8]|
                6[0-69]|
                7[0-47]|
                80|
                99
              )
            )|
            6(?:
              666|
              777
            )|
            7(?:
              4\d{2}|
              5(?:
                05|
                1[59]|
                25|
                5[57]|
                7[45]
              )
            )
          )|
          67(?:
            0[09]|
            59|
            77|
            8[89]|
            99
          )|
          74(?:
            0[02]|
            44|
            55
          )
        </nationalNumberPattern>
        <exampleNumber>1210</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- 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. -->
        <nationalNumberPattern>
          35200|
          67(?:
            00|
            77
          )|
          74(?:
            02|
            44
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>35200</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 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. -->
        <nationalNumberPattern>
          37(?:
            433|
            575
          )|
          7400
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>7400</exampleNumber>
      </standardRate>
      <premiumRate>
        <!-- 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. -->
        <nationalNumberPattern>
          122[13]|
          3(?:
            52(?:
              11|
              2[02]|
              3[04-6]|
              99
            )|
            7574
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>35211</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- 35035 found on http://www.malitel.ml/Pages/News.aspx?IdNews=4 -->
        <nationalNumberPattern>
          3(?:
            5035|
            6\d{3}
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>35035</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <nationalNumberPattern>
          67\d{2}|
          3(?:
            50|
            7[45]
          )\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>6700</exampleNumber>
      </carrierServices>
      <smsServices>
        <nationalNumberPattern>
          3(?:
            6\d{3}|
            7(?:
              4(?:
                0[24-9]|
                [1-9]\d
              )|
              5\d{2}
            )
          )|
          7400
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>37575</exampleNumber>
      </smsServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
    </territory>

    <!-- Myanmar -->
    <!-- http://www.itu.int/oth/T0202000092/en -->
    <territory id="MM">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>199</nationalNumberPattern>
        <exampleNumber>199</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>199</nationalNumberPattern>
        <exampleNumber>199</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Macao, China -->
    <!-- http://www.itu.int/oth/T020200007E/en -->
    <territory id="MO">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- Northern Mariana Islands -->
    <!-- http://www.itu.int/oth/T02020000EE/en -->
    <!-- www.cnmiphonebook.com/ -->
    <territory id="MP">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.dps.gov.mp/ -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
        <nationalNumberPattern>1[78]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Malta -->
    <!-- www.itu.int/oth/T0202000084/en -->
    <territory id="MT">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Maldives -->
    <territory id="MV">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            02|
            1[09]|
            23|
            90
          )
          </nationalNumberPattern>
        <exampleNumber>123</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            02|
            19
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>102</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Mexico -->
    <!-- http://en.wikipedia.org/wiki/%2B52 -->
    <territory id="MX">
      <generalDesc>
        <nationalNumberPattern>[0579]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          0(?:
            [24589]0|
            [37][01]|
            6[0568]|
            8[09]
          )|
          53053|
          7766|
          911
        </nationalNumberPattern>
        <exampleNumber>030</exampleNumber>
      </shortCode>
      <premiumRate>
        <!-- We have received information that 7766 is a premium rate number used to buy various
             types of services or media. -->
        <nationalNumberPattern>
          53053|
          7766
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
        <exampleNumber>7766</exampleNumber>
      </premiumRate>
      <carrierServices>
        <nationalNumberPattern>050</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>050</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>040</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>040</exampleNumber>
      </directoryServices>
      <emergency>
        <!-- http://en.wikipedia.org/wiki/%2B52#Other_service_numbers -->
        <!-- http://en.wikipedia.org/wiki/Emergency_telephone_number -->
        <nationalNumberPattern>
          0(?:
            6[0568]|
            80
          )|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>066</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- Found information online that 089 is a tip line for anonymous crime reporting. -->
        <nationalNumberPattern>089</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </expandedEmergency>
    </territory>

    <!-- Malaysia -->
    <!-- http://en.wikipedia.org/wiki/%2B60 -->
    <!-- http://www.skmm.gov.my -->
    <territory id="MY">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          999
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Namibia -->
    <!-- http://www.itu.int/oth/T0202000093/en -->
    <territory id="NA">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0111|
            \d{3}
          )|
          9(?:
            3111|
            \d{2}
          )
        </nationalNumberPattern>
        <exampleNumber>93111</exampleNumber>
      </shortCode>
      <emergency>
        <!-- ITU doc reserves 9XX for emergency numbers. No examples found. -->
        <!-- http://www.namibia-1on1.com/information/a-emergencynos.html -->
        <nationalNumberPattern>10111</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>10111</exampleNumber>
      </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>
          1\d{1,3}|
          3\d{3}|
          5\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <!-- 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 -->
        <nationalNumberPattern>
          1(?:
            0(?:
              0[06]|
              1[02-46]|
              20|
              3[0125]|
              42|
              5[058]|
              77|
              88
            )|
            [5-8]
          )|
          3631|
          5[6-8]\d
        </nationalNumberPattern>
        <exampleNumber>1000</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- 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 -->
        <nationalNumberPattern>
          10(?:
            00|
            1[23]|
            3[0-2]|
            88
          )|
          3631|
          577
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>1000</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 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 -->
        <nationalNumberPattern>
          5(?:
            67|
            88
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>567</exampleNumber>
      </standardRate>
      <directoryServices>
        <nationalNumberPattern>101[23]</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1013</exampleNumber>
      </directoryServices>
      <emergency>
        <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
        <nationalNumberPattern>1[5-8]</nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Niger -->
    <!-- id="NE" -->
    <!-- No emergency numbers information can be found. -->

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

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

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

    <!-- Netherlands -->
    <!-- http://en.wikipedia.org/wiki/%2B31 -->
    <!-- http://wetten.overheid.nl/BWBR0010198 -->
    <territory id="NL">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            833
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>1833</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Norway -->
    <!-- Country calling code shared with Svalbard. -->
    <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
    <territory id="NO">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[0-3]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[0-3]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1[0-2]|
            23|
            92
          )
        </nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[0-2]</nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </emergency>
    </territory>

    <!-- Niue -->
    <!-- http://www.itu.int/oth/T02020000EC/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
    <territory id="NU">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- New Zealand -->
    <!-- http://www.itu.int/oth/T0202000099/en -->
    <!-- Includes Ross Dependency, Antarctica -->
    <territory id="NZ">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>111</nationalNumberPattern>
        <exampleNumber>111</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>111</nationalNumberPattern>
        <exampleNumber>111</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Peru -->
    <!-- http://www.itu.int/oth/T02020000A6/en -->
    <!-- http://en.wikipedia.org/wiki/+51 -->
    <territory id="PE">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
        <exampleNumber>105</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            05|
            1[67]
          )
        </nationalNumberPattern>
        <exampleNumber>105</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Papua New Guinea -->
    <!-- http://www.itu.int/oth/T02020000A4/en -->
    <!-- http://en.wikipedia.org/wiki/%2B675 -->
    <territory id="PG">
      <generalDesc>
        <nationalNumberPattern>0\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>000</nationalNumberPattern>
        <exampleNumber>000</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers.
             -->
        <nationalNumberPattern>000</nationalNumberPattern>
        <exampleNumber>000</exampleNumber>
      </emergency>
    </territory>

    <!-- Philippines -->
    <!-- http://en.wikipedia.org/wiki/%2B63 -->
    <territory id="PH">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          11[27]|
          911
        </nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1(?:
              22?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1(?:
              22?|
              5
            )|
            [56]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Poland -->
    <!-- http://en.wikipedia.org/wiki/%2B48 -->
    <!-- http://www.itu.int/oth/T02020000A8/en -->
    <territory id="PL">
      <generalDesc>
        <nationalNumberPattern>
          1\d{2}(?:\d{3})?|
          9\d{2}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          11(?:
            2|
            6(?:
              000|
              1(?:
                11|
                23
              )
            )
          )|
          9(?:
            8[4-7]|
            9[1-9]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          112|
          99[789]
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
          9(?:
            8[4-6]|
            9[56]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>984</exampleNumber>
      </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>1\d</nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
    </territory>

    <!-- Puerto Rico -->
    <!-- http://www.itu.int/oth/T02020000AA/en -->
    <territory id="PR">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
             http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Portugal -->
    <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
    <territory id="PT">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Palau -->
    <!-- http://www.itu.int/oth/T02020000A2/en -->
    <territory id="PW">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Qatar -->
    <territory id="QA">
      <generalDesc>
        <nationalNumberPattern>[129]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          (?:
            1|
            20|
            9[27]\d
          )\d{2}|
          999
        </nationalNumberPattern>
        <exampleNumber>2012</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </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{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
        <nationalNumberPattern>
          1(?:
            12|
            [578]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Romania -->
    <!-- http://www.itu.int/oth/T02020000AC/en -->
    <territory id="RO">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Russian Federation -->
    <!-- http://www.itu.int/oth/T02020000AD/en -->
    <!-- http://en.wikipedia.org/wiki/%2B7 -->
    <territory id="RU">
      <generalDesc>
        <nationalNumberPattern>[01]\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          0[123]|
          112
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          0[123]|
          112
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Rwanda -->
    <!-- http://en.wikipedia.org/wiki/+250 -->
    <territory id="RW">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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>
        <exampleNumber>937</exampleNumber>
      </shortCode>
      <tollFree>
        <!-- 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. -->
        <nationalNumberPattern>
          116111|
          937|
          998
        </nationalNumberPattern>
        <exampleNumber>116111</exampleNumber>
      </tollFree>
      <standardRate>
        <!-- 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. -->
        <nationalNumberPattern>1410</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1410</exampleNumber>
      </standardRate>
      <emergency>
        <nationalNumberPattern>
          112|
          9(?:
            11|
            9[79]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
      <expandedEmergency>
        <!-- 116 111 is set up for counselling and referral services in Saudi Arabia, not emergency
             cases. -->
        <nationalNumberPattern>
          9(?:
            37|
            66|
            87|
            9[68]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>937</exampleNumber>
      </expandedEmergency>
      <carrierSpecific>
        <!-- 1410 is the Mobily voicemail number. -->
        <nationalNumberPattern>
          1(?:
            100|
            410
          )|
          90[24679]
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>902</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            100|
            410
          )|
          902
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
        <exampleNumber>902</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>905</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>905</exampleNumber>
      </directoryServices>
    </territory>

    <!-- Solomon Islands -->
    <territory id="SB">
      <generalDesc>
        <nationalNumberPattern>[127-9]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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>
        <exampleNumber>100</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- Seychelles -->
    <territory id="SC">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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>
        <exampleNumber>100</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

    <!-- Sudan -->
    <!-- http://www.itu.int/oth/T02020000C4/en -->
    <territory id="SD">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <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>
        <exampleNumber>11313</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>116\d{3}</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>116000</exampleNumber>
      </tollFree>
      <premiumRate>
        <nationalNumberPattern>
          11811[89]|
          72\d{3}
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>118118</exampleNumber>
      </premiumRate>
      <carrierServices>
        <!-- All numbers have been found on individual operator homepages, they are not
             specified in the numbering plan. -->
        <nationalNumberPattern>
          2(?:
            2[0238]|
            33
          )|
          32[13]|
          888
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>222</exampleNumber>
      </carrierServices>
      <carrierSpecific>
        <!-- As with carrierServices, 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 -->
        <nationalNumberPattern>
          2(?:
            2[02358]|
            33|
            4[01]|
            50|
            6[1-4]
          )|
          32[13]|
          8(?:
            22|
            88
          )|
          912
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>222</exampleNumber>
      </carrierSpecific>
      <directoryServices>
        <nationalNumberPattern>118\d{3}</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>118400</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          112|
          90000
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>116111</nationalNumberPattern>
        <possibleNumberPattern>\d{6}</possibleNumberPattern>
        <exampleNumber>116111</exampleNumber>
      </expandedEmergency>
      <smsServices>
        <!-- http://www.etiskaradet.se/sidor/om-sms-tjanster.aspx -->
        <nationalNumberPattern>7\d{4}</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>72123</exampleNumber>
      </smsServices>
    </territory>

    <!-- Singapore -->
    <territory id="SG">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            [0136]\d{2}|
            [89](?:
              [1-9]\d|
              0[1-9]
            )|
            [57]\d{2,3})|
          99[02-9]
        </nationalNumberPattern>
        <exampleNumber>1312</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>99[359]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Slovenia -->
    <!-- http://www.itu.int/oth/T02020000BE/en -->
    <territory id="SI">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[23]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[23]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Slovakia -->
    <!-- http://www.itu.int/oth/T02020000BD/en -->
    <territory id="SK">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            5[058]
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            5[058]
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- San Marino -->
    <!-- http://www.itu.int/oth/T02020000B5/en -->
    <territory id="SM">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>113</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[358]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </emergency>
    </territory>

    <!-- Senegal -->
    <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000B80001PDFE.pdf -->
    <territory id="SN">
      <generalDesc>
        <nationalNumberPattern>1\d</nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1\d</nationalNumberPattern>
        <exampleNumber>17</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>1[78]</nationalNumberPattern>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
        <exampleNumber>17</exampleNumber>
      </emergency>
    </territory>

    <!-- Somalia -->
    <!-- id="SO" -->
    <!-- According to the following webpage, there is no emergency number in Somalia:
         http://www.netglobers.com/africa/somalia-emergency-numbers-in-somalia.html -->

    <!-- Suriname -->
    <territory id="SR">
      <generalDesc>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
        <exampleNumber>1234</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>115</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>115</exampleNumber>
      </emergency>
    </territory>

    <!-- Sao Tome and Principe -->
    <!-- http://www.itu.int/oth/T02020000B6/en -->
    <territory id="ST">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>112</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- El Salvador -->
    <!-- http://www.itu.int/oth/T020200003F/en -->
    <territory id="SV">
      <generalDesc>
        <nationalNumberPattern>[49]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          40404|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </carrierSpecific>
      <emergency>
        <nationalNumberPattern>911</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.twitter.com/articles/20170024 -->
        <nationalNumberPattern>40404</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>919</nationalNumberPattern>
        <exampleNumber>919</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
        <nationalNumberPattern>919</nationalNumberPattern>
        <exampleNumber>919</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[023]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

    <!-- Swaziland -->
    <!-- http://www.itu.int/oth/T02020000C6/en -->
    <territory id="SZ">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
        <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>

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

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

    <!-- Togo -->
    <!-- http://www.itu.int/oth/T02020000D1/en -->
    <territory id="TG">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            01|
            1[78]|
            7[17]
          )
        </nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1041.html -->
        <!-- http://www.netglobers.com/africa/togo-emergency-numbers-in-togo.html -->
        <!-- http://www.mapsofworld.com/togo/information/emergency-numbers.html -->
        <nationalNumberPattern>
          1(?:
            01|
            1[78]|
            7[17]
          )
        </nationalNumberPattern>
        <exampleNumber>117</exampleNumber>
      </emergency>
    </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>
        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[0-2]|
            1(?:
              00|
              12|
              25|
              33|
              5[05]|
              7[58]|
              9[37]
            )|
            3(?:
              18|
              31|
              56|
              73
            )|
            5(?:
              5[45]|
              66|
              72|
              8[01]|
              9[59]
            )|
            6(?:
              00|
              69|
              7[28]|
              9[01]
            )|
            790|
            9[19]
          )
        </nationalNumberPattern>
        <exampleNumber>191</exampleNumber>
      </shortCode>
      <carrierServices>
        <nationalNumberPattern>
          1(?:
            1(?:
              00|
              75
            )|
            331|
            678
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1175</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>1133</nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1133</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          1(?:
            669|
            9[19]
          )
        </nationalNumberPattern>
        <exampleNumber>191</exampleNumber>
      </emergency>
      <expandedEmergency>
        <nationalNumberPattern>
          1(?:
            1(?:
              50|
              93
            )|
            691
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{4}</possibleNumberPattern>
        <exampleNumber>1193</exampleNumber>
      </expandedEmergency>
    </territory>

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

    <!-- Tokelau -->
    <!-- id="TK" -->
    <!-- No evidence that any emergency numbers exist for this tiny island has been found. -->

    <!-- Timor-Leste (East Timor) -->
    <territory id="TL">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[02]|
            1[25]|
            2[0138]|
            72|
            9[07]
          )
        </nationalNumberPattern>
        <exampleNumber>102</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[25]</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>0[1-3]</nationalNumberPattern>
        <exampleNumber>03</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.netglobers.com/asia/turkmenistan-emergency-numbers-in-turkmenistan.html
             http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=301000 -->
        <nationalNumberPattern>0[1-3]</nationalNumberPattern>
        <exampleNumber>03</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
        <exampleNumber>197</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>19[078]</nationalNumberPattern>
        <exampleNumber>197</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.tongaholiday.com/?page_id=2034 -->
        <nationalNumberPattern>
          9(?:
            11|
            22|
            33|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
    </territory>

    <!-- Turkey -->
    <!-- http://en.wikipedia.org/wiki/%2B90 -->
    <!-- http://www.itu.int/oth/T02020000D6/en -->
    <territory id="TR">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1[02]|
            55
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            1[02]|
            55
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Tuvalu -->
    <!-- http://www.itu.int/oth/T02020000D9/en -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
    <territory id="TV">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[029]</nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[029]</nationalNumberPattern>
        <exampleNumber>110</exampleNumber>
      </emergency>
    </territory>

    <!-- Tanzania -->
    <!-- http://www.itu.int/oth/T02020000CB/en -->
    <territory id="TZ">
      <generalDesc>
        <nationalNumberPattern>[149]\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          11[12]|
          46400|
          999
        </nationalNumberPattern>
        <exampleNumber>111</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>46400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>46400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1038.html
             http://in2eastafrica.net/emergency-numbers-in-tanzania -->
        <nationalNumberPattern>
          11[12]|
          999
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>111</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>46400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>46400</exampleNumber>
      </smsServices>
    </territory>

    <!-- Ukraine -->
    <!-- http://www.itu.int/oth/T02020000DB/en -->
    <!-- http://en.wikipedia.org/wiki/%2B380 -->
    <territory id="UA">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            0[123]|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>999</nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </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>
        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            1(?:
              2|
              5[1-47]|
              [68]\d|
              7[0-57]|
              98
            )
          )|
          [2-9](?:
            11|
            \d{3,5}
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <tollFree>
        <nationalNumberPattern>611</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>611</exampleNumber>
      </tollFree>
      <standardRate>
        <nationalNumberPattern>
          2(?:
            3333|
            42242|
            56447|
            6688|
            75622
          )|
          3(?:
            1010|
            2665|
            7404
          )|
          40404|
          560560|
          6(?:
            0060|
            22639|
            5246|
            7622
          )|
          7(?:
            0701|
            3822|
            4666
          )|
          8(?:
            38255|
            4816|
            72265
          )|
          99099
        </nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>73822</exampleNumber>
      </standardRate>
      <premiumRate>
        <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>
        <exampleNumber>24280</exampleNumber>
      </premiumRate>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917
             611 is listed as working from "most" wireless carriers. -->
        <nationalNumberPattern>
          [2-9]\d{3}|
          33669|
          611
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
        <exampleNumber>33669</exampleNumber>
      </carrierSpecific>
      <carrierServices>
        <!-- http://www.dial611.com/why_611.php -->
        <nationalNumberPattern>611</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>611</exampleNumber>
      </carrierServices>
      <directoryServices>
        <nationalNumberPattern>411</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>411</exampleNumber>
      </directoryServices>
      <emergency>
        <nationalNumberPattern>
          112|
          911
        </nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
        <exampleNumber>911</exampleNumber>
      </emergency>
      <smsServices>
        <nationalNumberPattern>[2-9]\d{4,5}</nationalNumberPattern>
        <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
        <exampleNumber>20566</exampleNumber>
      </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}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            0[4-9]|
            1[2368]|
            2[0-3568]
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>104</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          128|
          911
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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{1,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          0(?:
            0[123]|
            [123]|
            50
          )|
          45400
        </nationalNumberPattern>
        <exampleNumber>01</exampleNumber>
      </shortCode>
      <carrierSpecific>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>45400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>45400</exampleNumber>
      </carrierSpecific>
      <emergency>
        <!-- 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. -->
        <nationalNumberPattern>
          0(?:
            0[123]|
            [123]|
            50
          )
        </nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
        <exampleNumber>01</exampleNumber>
      </emergency>
      <smsServices>
        <!-- https://support.google.com/plus/answer/1304917 -->
        <nationalNumberPattern>45400</nationalNumberPattern>
        <possibleNumberPattern>\d{5}</possibleNumberPattern>
        <exampleNumber>45400</exampleNumber>
      </smsServices>
    </territory>

    <!-- Vatican City -->
    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
    <territory id="VA">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[2358]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </emergency>
    </territory>

    <!-- Saint Vincent and the Grenadines -->
    <!-- http://www.itu.int/oth/T02020000B3/en -->
    <territory id="VC">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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 -->
        <nationalNumberPattern>
          9(?:
            11|
            99
          )
        </nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>171</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            12|
            71
          )|
          911
        </nationalNumberPattern>
        <exampleNumber>171</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Virgin Islands, United States -->
    <!-- http://www.itu.int/oth/T02020000DF/en -->
    <territory id="VI">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
        <nationalNumberPattern>911</nationalNumberPattern>
        <exampleNumber>911</exampleNumber>
      </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{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>11[345]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>11[345]</nationalNumberPattern>
        <exampleNumber>113</exampleNumber>
      </emergency>
    </territory>

    <!-- Vanuatu -->
    <!-- http://www.itu.int/oth/T02020000E2/en -->
    <territory id="VU">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>112</nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </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>
        <possibleNumberPattern>\d{2}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html
             -->
        <nationalNumberPattern>1[578]</nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </emergency>
    </territory>

    <!-- Samoa -->
    <!-- http://www.itu.int/oth/T02020000B4/en -->
    <territory id="WS">
      <generalDesc>
        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>99[4-6]</nationalNumberPattern>
        <exampleNumber>994</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.blueskysamoa.ws/?page_id=509 -->
        <nationalNumberPattern>99[4-6]</nationalNumberPattern>
        <exampleNumber>994</exampleNumber>
      </emergency>
    </territory>

    <!-- Yemen -->
    <!-- http://www.itu.int/oth/T02020000E7/en -->
    <territory id="YE">
      <generalDesc>
        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>19[1459]</nationalNumberPattern>
        <exampleNumber>191</exampleNumber>
      </shortCode>
      <emergency>
        <!-- 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 -->
        <nationalNumberPattern>19[1459]</nationalNumberPattern>
        <exampleNumber>191</exampleNumber>
      </emergency>
    </territory>

    <!-- Mayotte -->
    <territory id="YT">
      <generalDesc>
        <nationalNumberPattern>1\d{1,2}</nationalNumberPattern>
        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
        <exampleNumber>112</exampleNumber>
      </shortCode>
      <emergency>
        <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
        <!-- http://www.sccfd.org/travel.html -->
        <nationalNumberPattern>
          1(?:
            12|
            5
          )
        </nationalNumberPattern>
        <exampleNumber>15</exampleNumber>
      </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 -->
    <territory id="ZA">
      <generalDesc>
        <nationalNumberPattern>1\d{2,4}</nationalNumberPattern>
        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          1(?:
            01(?:
              11|
              77
            )|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>10111</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          1(?:
            01(?:
              11|
              77
            )|
            12
          )
        </nationalNumberPattern>
        <exampleNumber>10111</exampleNumber>
      </emergency>
    </territory>

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

    <!-- Zimbabwe -->
    <!-- http://www.itu.int/oth/T02020000E9/en -->
    <territory id="ZW">
      <generalDesc>
        <nationalNumberPattern>[19]\d{2}</nationalNumberPattern>
        <possibleNumberPattern>\d{3}</possibleNumberPattern>
      </generalDesc>
      <shortCode>
        <nationalNumberPattern>
          (?:
            112|
            99[3459]
          )
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </shortCode>
      <emergency>
        <nationalNumberPattern>
          (?:
            112|
            99[3459]
          )
        </nationalNumberPattern>
        <exampleNumber>999</exampleNumber>
      </emergency>
    </territory>
  </territories>
</phoneNumberMetadata>
