am 75346690: (-s ours) Merge remote-tracking branch \'origin/kitkat-dev\'

* commit '75346690e109a41887bf5d3706929ae86b4b3713':
  Initial empty repository
diff --git a/PhoneNumberAlternateFormats.xml b/PhoneNumberAlternateFormats.xml
index 5997ac1..9f47a2d 100644
--- a/PhoneNumberAlternateFormats.xml
+++ b/PhoneNumberAlternateFormats.xml
@@ -18,7 +18,7 @@
      Additional Phone Number Formatting information, containing alternative
      formats that are commonly used when writing phone numbers in certain
      countries. Note that this is in addition to the formatting information
-     provided by the main PhoneNumberMetaData.xml file - formatting patterns
+     provided by the main PhoneNumberMetadata.xml file - formatting patterns
      should not be duplicated.
 
      Note also that only the most specific leading-digits pattern is present for
@@ -27,7 +27,7 @@
      on alternate formatting patterns.
 
      For regions that share a country calling code, only the region with
-     mainCountryForCode set to true in PhoneNumberMetaData.xml should be present
+     mainCountryForCode set to true in PhoneNumberMetadata.xml should be present
      here.
 
      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
@@ -53,6 +53,16 @@
 
 <phoneNumberMetadata>
   <territories>
+    <!-- United Arab Emirates (AE) -->
+    <territory countryCode="971">
+      <availableFormats>
+        <numberFormat pattern="(5[0256])(\d{4})(\d{3})">
+          <leadingDigits>5</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
     <!-- Australia (AU) -->
     <territory countryCode="61">
       <availableFormats>
@@ -74,6 +84,15 @@
           </leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
+        <numberFormat pattern="(1)([389]\d{2})(\d{3})(\d{3})">
+          <leadingDigits>
+            1(?:
+              [38]00|
+              90
+            )
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
         <numberFormat pattern="([2378])(\d{8})">
           <leadingDigits>[2378]</leadingDigits>
           <format>$1 $2</format>
@@ -104,6 +123,51 @@
           <leadingDigits>5[079]</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2,3})">
+          <leadingDigits>
+            316|
+            46|
+            51|
+            732|
+            6(?:
+              44|
+              5[0-3579]|
+              [6-9]
+            )|
+            7(?:
+              1|
+              [28]0
+            )|
+            [89]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Bulgaria (BG) -->
+    <territory countryCode="359">
+      <availableFormats>
+        <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
+          <leadingDigits>
+            48|
+            8[7-9]|
+            9[08]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>
+            48|
+            8[7-9]|
+            9[08]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
       </availableFormats>
     </territory>
 
@@ -117,6 +181,16 @@
       </availableFormats>
     </territory>
 
+    <!-- Belarus (BY) -->
+    <territory countryCode="375">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
+          <leadingDigits>[1-4]</leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
     <!-- Germany (DE) -->
     <territory countryCode="49">
       <availableFormats>
@@ -144,7 +218,7 @@
           </leadingDigits>
           <format>$1/$2 $3</format>
         </numberFormat>
-        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
+        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{1,2})">
           <leadingDigits>
             3[02]|
             40|
@@ -160,6 +234,14 @@
           </leadingDigits>
           <format>$1/$2 $3 $4</format>
         </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d)(\d{2})(\d{2})">
+          <leadingDigits>
+            3[02]|
+            40|
+            [68]9
+          </leadingDigits>
+          <format>$1/$2 $3 $4 $5 $6</format>
+        </numberFormat>
         <!-- 3 digit area codes. -->
         <numberFormat pattern="(\d{3})(\d{3})(\d{2,4})">
           <leadingDigits>
@@ -203,6 +285,48 @@
           </leadingDigits>
           <format>$1/$2 $3</format>
         </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{1,2})">
+          <leadingDigits>
+            2(?:
+              \d1|
+              0[2389]|
+              1[24]|
+              28|
+              34
+            )|
+            3(?:
+              [3-9][15]|
+              40
+            )|
+            [4-8][1-9]1|
+            9(?:
+              06|
+              [1-9]1
+            )
+          </leadingDigits>
+          <format>$1/$2 $3 $4</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>
+            2(?:
+              \d1|
+              0[2389]|
+              1[24]|
+              28|
+              34
+            )|
+            3(?:
+              [3-9][15]|
+              40
+            )|
+            [4-8][1-9]1|
+            9(?:
+              06|
+              [1-9]1
+            )
+          </leadingDigits>
+          <format>$1/$2 $3 $4 $5</format>
+        </numberFormat>
         <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
           <leadingDigits>
             2(?:
@@ -267,7 +391,7 @@
           <format>$1/$2 $3 $4</format>
         </numberFormat>
         <!-- 4 digit area codes. -->
-        <numberFormat pattern="(\d{4})(\d{3})(\d{3,4})">
+        <numberFormat pattern="(\d{4})(\d{3})(\d{1,4})">
           <leadingDigits>
             [24-6]|
             [7-9](?:
@@ -748,6 +872,13 @@
           </leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
+        <numberFormat pattern="([18]\d{2})(\d{3})(\d{3})(\d)">
+          <leadingDigits>
+            1[5-7]|
+            800
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
         <numberFormat pattern="(8\d{2})(\d{6})(\d{2})(\d{1,4})">
           <leadingDigits>800</leadingDigits>
           <format>$1 $2 $3 $4</format>
@@ -782,6 +913,92 @@
       </availableFormats>
     </territory>
 
+    <!-- Estonia (EE) -->
+    <territory countryCode="372">
+      <availableFormats>
+        <!-- There are about 2 million search results for numbers written with the 6 separate. -->
+        <numberFormat pattern="(\d)(\d{3})(\d{3})">
+          <leadingDigits>6</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
+          <leadingDigits>
+            [69]|
+            4[3-8]|
+            5(?:
+              [02]|
+              1(?:
+                [0-8]|
+                95
+              )|
+              5[0-478]|
+              6(?:
+                4[0-4]|
+                5[1-589]
+              )
+            )|
+            7[1-9]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{3})(\d{2})">
+          <leadingDigits>
+            [69]|
+            4[3-8]|
+            5(?:
+              [02]|
+              1(?:
+                [0-8]|
+                95
+              )|
+              5[0-478]|
+              6(?:
+                4[0-4]|
+                5[1-589]
+              )
+            )|
+            7[1-9]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Spain (ES) -->
+    <territory countryCode="34" >
+      <availableFormats>
+        <numberFormat pattern="([5-9]\d{2})(\d{3})(\d{3})">
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Finland (FI) -->
+    <!-- Metadata shared with Åland (AX) -->
+    <territory countryCode="358">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
+          <leadingDigits>
+            [14]|
+            2[09]|
+            50|
+            7[135]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
+          <leadingDigits>
+            [25689][1-8]|
+            3
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
     <!-- Great Britain (GB) -->
     <territory countryCode="44" >
       <availableFormats>
@@ -790,6 +1007,10 @@
           <leadingDigits>20</leadingDigits>
           <format>$1-$2-$3</format>
         </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{4})(\d{2})(\d{2})">
+          <leadingDigits>20</leadingDigits>
+          <format>$1-$2-$3-$4</format>
+        </numberFormat>
         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. Also
              includes the four-digit fixed-line codes. -->
         <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
@@ -814,6 +1035,97 @@
       </availableFormats>
     </territory>
 
+    <!-- Georgia (GE) -->
+    <territory countryCode="995">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d)(\d{2})(\d{2})(\d{2})" >
+          <leadingDigits>[348]</leadingDigits>
+          <format>$1 $2 $3 $4 $5</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Gibraltar (GI) -->
+    <territory countryCode="350" >
+      <availableFormats>
+        <numberFormat pattern="(\d{4})(\d{4})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Greece (GR) -->
+    <territory countryCode="30">
+      <availableFormats>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
+          <leadingDigits>21</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Croatia (HR) -->
+    <territory countryCode="385">
+      <availableFormats>
+       <numberFormat pattern="(1)(\d{3})(\d{4})">
+         <leadingDigits>1</leadingDigits>
+         <format>$1 $2 $3</format>
+       </numberFormat>
+       <numberFormat pattern="(1)(\d{3})(\d{2})(\d{2})">
+         <leadingDigits>1</leadingDigits>
+         <format>$1 $2 $3 $4</format>
+       </numberFormat>
+       <numberFormat pattern="(6[09])(\d{3})(\d{4})">
+         <leadingDigits>6[09]</leadingDigits>
+         <format>$1 $2 $3</format>
+       </numberFormat>
+       <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
+         <leadingDigits>[2-69]</leadingDigits>
+         <format>$1 $2 $3</format>
+       </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Hungary (HU) -->
+    <territory countryCode="36">
+      <availableFormats>
+        <numberFormat pattern="(1)(\d{4})(\d{3})">
+          <leadingDigits>1</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
+          <leadingDigits>[2-9]</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Indonesia (ID) -->
+    <territory countryCode="62">
+      <availableFormats>
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="(\d{2})(\d{3,4})(\d{4})">
+          <leadingDigits>
+            2[124]|
+            [36]1
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Israel (IL) -->
+    <territory countryCode="972">
+      <availableFormats>
+        <numberFormat nationalPrefixFormattingRule="$NP$FG"
+          pattern="([2-489])(\d{3})(\d{2})(\d{2})">
+          <leadingDigits>[2-489]</leadingDigits>
+          <format>$1-$2-$3-$4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
     <!-- Japan (JP) -->
     <territory countryCode="81" >
       <availableFormats>
@@ -851,6 +1163,99 @@
       </availableFormats>
     </territory>
 
+    <!-- Cambodia (KH) -->
+    <territory countryCode="855">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2,3})">
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Sri Lanka (LK) -->
+    <territory countryCode="94">
+      <availableFormats>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
+          <leadingDigits>7</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Luxembourg (LU) -->
+    <territory countryCode="352">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Moldova, Rep. of (MD) -->
+    <territory countryCode="373">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>
+            22|
+            [367]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
+          <leadingDigits>[67]</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Netherlands (NL) -->
+    <territory  countryCode="31">
+      <availableFormats>
+        <numberFormat pattern="([1-578]\d)(\d{4})(\d{3})">
+          <leadingDigits>
+            1[035]|
+            2[0346]|
+            3[03568]|
+            4[0356]|
+            5[0358]|
+            7|
+            8[4578]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="([1-5]\d{2})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>
+            1[16-8]|
+            2[259]|
+            3[124]|
+            4[17-9]|
+            5[124679]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Papua New Guinea (PG) -->
+    <territory countryCode="675">
+      <availableFormats>
+        <numberFormat pattern="(7\d{2})(\d{2})(\d{3})">
+          <leadingDigits>7</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Philippines (PH) -->
+    <territory countryCode="63">
+      <availableFormats>
+        <numberFormat pattern="(\d{4})(\d{4})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
     <!-- Portugal (PT) -->
     <territory countryCode="351" >
       <availableFormats>
@@ -874,5 +1279,146 @@
         </numberFormat>
       </availableFormats>
     </territory>
+
+    <!-- Paraguay (PY) -->
+    <territory countryCode="595">
+      <availableFormats>
+        <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
+          <leadingDigits>
+            (?:
+              [26]1|
+              3[289]|
+              4[124678]|
+              7[123]|
+              8[1236]
+            )
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Russian Federation (RU) -->
+    <territory countryCode="7">
+      <availableFormats>
+        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
+          <leadingDigits>[346-9]</leadingDigits>
+          <format>$1 $2-$3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{5})(\d{5})">
+          <leadingDigits>[346-9]</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>[346-9]</leadingDigits>
+          <format>$1 $2-$3-$4</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{3})">
+          <leadingDigits>[346-9]</leadingDigits>
+          <format>$1 $2-$3-$4</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>[346-9]</leadingDigits>
+          <format>$1-$2 $3-$4-$5</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Thailand (TH) -->
+    <territory countryCode="66">
+      <availableFormats>
+        <!-- Over a million of the search results are formatted in two blocks like this. -->
+        <numberFormat pattern="(2\d{3})(\d{4})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Turkey (TR) -->
+    <territory countryCode="90">
+      <availableFormats>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
+          <leadingDigits>
+            [23589]|
+            4(?:
+              [0-35-9]|
+              4[0-35-9]
+            )
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Ukraine (UA) -->
+    <territory countryCode="380" >
+      <availableFormats>
+        <numberFormat pattern="([3-689]\d)(\d{3})(\d{2})(\d{2})">
+          <leadingDigits>
+            [38]9|
+            4(?:
+              [45][0-5]|
+              87
+            )|
+            5(?:
+              0|
+              6(?:
+                3[14-7]|
+                7
+              )|
+              7[37]
+            )|
+            6[36-8]|
+            9[1-9]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+        <!-- Less common but still sometimes used. -->
+        <numberFormat pattern="([3-689]\d)(\d{2})(\d{3})(\d{2})">
+          <leadingDigits>
+            [38]9|
+            4(?:
+              [45][0-5]|
+              87
+            )|
+            5(?:
+              0|
+              6(?:
+                3[14-7]|
+                7
+              )|
+              7[37]
+            )|
+            6[36-8]|
+            9[1-9]
+          </leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Venezuela (VE) -->
+    <territory countryCode="58">
+      <availableFormats>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
+          <format>$1 $2 $3</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
+
+    <!-- Viet Nam (VN) -->
+    <territory countryCode="84">
+      <availableFormats>
+        <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
+          <leadingDigits>9</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="([48])(\d{2})(\d{3})(\d{3})">
+          <leadingDigits>[48]</leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+    </territory>
   </territories>
 </phoneNumberMetadata>
diff --git a/PhoneNumberMetaData.xml b/PhoneNumberMetadata.xml
similarity index 87%
rename from PhoneNumberMetaData.xml
rename to PhoneNumberMetadata.xml
index 5d8e732..652cdca 100644
--- a/PhoneNumberMetaData.xml
+++ b/PhoneNumberMetadata.xml
@@ -15,7 +15,7 @@
      @author: Shaopeng Jia
      @author: Lara Rennie
 
-     MetaData on Phone Number Plan and formatting rules
+     Metadata on Phone Number Plan and formatting rules
      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
            two-letter country codes (or are set to "001" for non-geographical entities, which
            represents "World" in the UN M.49 standard). The country names in the comments are the
@@ -35,9 +35,6 @@
 
      Country code, international and national prefix information main source:
      http://www.itu.int/pub/T-SP-E.164C-2011
-
-     Emergency numbers Wikipedia source:
-     http://en.wikipedia.org/wiki/Emergency_telephone_number
 -->
 
 <!DOCTYPE phoneNumberMetadata [
@@ -45,7 +42,7 @@
     <!ELEMENT territories (territory+)>
     <!ELEMENT territory (availableFormats?, generalDesc?, noInternationalDialling?,
         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
-        sharedCost?, personalNumber?, voip?, uan?, voicemail?, shortCode?, emergency?)>
+        sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
         exampleNumber?)>
@@ -60,8 +57,6 @@
     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
-    <!ELEMENT shortCode (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
-    <!ELEMENT emergency (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT availableFormats (numberFormat+)>
     <!ELEMENT nationalNumberPattern (#PCDATA)>
     <!ELEMENT possibleNumberPattern (#PCDATA)>
@@ -85,6 +80,7 @@
     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
+    <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
@@ -116,15 +112,6 @@
         <nationalNumberPattern>NA</nationalNumberPattern>
         <possibleNumberPattern>NA</possibleNumberPattern>
       </mobile>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Andorra -->
@@ -174,16 +161,9 @@
         <possibleNumberPattern>\d{6}</possibleNumberPattern>
         <exampleNumber>912345</exampleNumber>
       </premiumRate>
-      <emergency>
-      <!-- http://www.fco.gov.uk/en/travel-and-living-abroad/travel-advice-by-country/europe/andorra
-           -->
-        <nationalNumberPattern>11[0268]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
-    <!--  United Arab Emirates -->
+    <!-- United Arab Emirates -->
     <!-- http://www.itu.int/oth/T02020000DC/en -->
     <territory id="AE" countryCode="971" internationalPrefix="00"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
@@ -248,14 +228,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>600212345</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          99[789]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Afghanistan -->
@@ -286,16 +258,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>701234567</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            02|
-            19
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>119</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Antigua and Barbuda -->
@@ -379,17 +341,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>2684801234</exampleNumber>
       </voip>
-      <emergency>
-        <!-- http://barbados.usembassy.gov/emergency-antigua_barbuda.html -->
-        <nationalNumberPattern>
-          9(?:
-            11|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Anguilla -->
@@ -458,18 +409,13 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Albania -->
     <!-- http://www.itu.int/oth/T0202000002/en -->
     <territory id="AL" countryCode="355" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
         <numberFormat pattern="(4)(\d{3})(\d{4})">
@@ -564,11 +510,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>70012345</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>12[789]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>129</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Armenia -->
@@ -663,22 +604,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>60271234</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          8[1-7]\d{2}|
-          1(?:
-            0[04-9]|
-            [1-9]\d
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>8711</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>10[123]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>102</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Angola -->
@@ -703,23 +628,18 @@
         <exampleNumber>222123456</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel are
-             launching the prefix 94 apparently on 25th April 2012. -->
-        <nationalNumberPattern>9[1-4]\d{7}</nationalNumberPattern>
+        <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
+             apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
+        <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
         <exampleNumber>923123456</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1096.html -->
-        <nationalNumberPattern>11[235]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Argentina -->
     <!-- http://www.itu.int/oth/T0202000009/en -->
     <!-- http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp - click on Indicativos Interurbanos.
          -->
+    <!-- http://en.wikipedia.org/wiki/+54 -->
     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
        nationalPrefixForParsing="
          0?(?:
@@ -819,7 +739,8 @@
            )
          )15
        )?"
-       nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG">
+       nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
+       mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
           <leadingDigits>[68]</leadingDigits>
@@ -832,7 +753,7 @@
         </numberFormat>
         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
-               to the 3-digit area codes, since they are considerably larger communities.  -->
+               to the 3-digit area codes, since they are considerably larger communities. -->
           <leadingDigits>
             9(?:
               2[234689]|
@@ -922,18 +843,19 @@
             )
           </leadingDigits>
           <format>$2 15-$3-$4</format>
+          <intlFormat>$1 $2 $3-$4</intlFormat>
         </numberFormat>
         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
           <leadingDigits>9[23]</leadingDigits>
           <format>$2 15-$3-$4</format>
           <intlFormat>$1 $2 $3-$4</intlFormat>
         </numberFormat>
-        <numberFormat pattern="(11)(\d{4})(\d{4})">
+        <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
           <leadingDigits>1</leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
-        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
+        <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
           <leadingDigits>
             2(?:
               2[013]|
@@ -985,7 +907,7 @@
           </leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
-        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
+        <numberFormat pattern="(\d{4})(\d{3})(\d{3})" nationalPrefixOptionalWhenFormatting="true">
           <leadingDigits>
             3(?:
               53|
@@ -1003,10 +925,19 @@
           </leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
-        <numberFormat pattern="(\d{4})(\d{2})(\d{4})">
+        <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
           <leadingDigits>[23]</leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
+        <!-- Format short numbers as a block. -->
+        <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
+          <leadingDigits>
+            1[012]|
+            911
+          </leadingDigits>
+          <format>$1</format>
+          <intlFormat>NA</intlFormat>
+        </numberFormat>
       </availableFormats>
       <generalDesc>
         <nationalNumberPattern>
@@ -1154,27 +1085,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>8101234567</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            0[2356]|
-            1[02-5]|
-            21
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>121</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[017]|
-            28
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>101</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- American Samoa -->
@@ -1241,20 +1151,13 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <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>
     </territory>
 
     <!-- Austria -->
     <!-- http://www.rtr.at/en/tk/E129 -->
     <territory id="AT" countryCode="43" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(1)(\d{3,12})">
           <leadingDigits>1</leadingDigits>
@@ -1311,7 +1214,7 @@
               2[1-8]|
               35|
               4[1-8]|
-              [57-9]
+              [5-79]
             )
           </leadingDigits>
             <format>$1 $2</format>
@@ -1440,17 +1343,6 @@
         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
         <exampleNumber>50123</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            [12]2|
-            33|
-            44
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Australia -->
@@ -1459,7 +1351,8 @@
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
     <territory id="AU" countryCode="61" mainCountryForCode="true"
                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
-               preferredInternationalPrefix="0011" nationalPrefix="0">
+               preferredInternationalPrefix="0011" nationalPrefix="0"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
           pattern="([2378])(\d{4})(\d{4})">
@@ -1593,14 +1486,8 @@
         <exampleNumber>1800123456</exampleNumber>
       </tollFree>
       <premiumRate>
-        <nationalNumberPattern>
-          19(?:
-            0[0126]\d{6}|
-            [13-5]\d{3}|
-            [679]\d{5}
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
+        <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
+        <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>1900123456</exampleNumber>
       </premiumRate>
       <sharedCost>
@@ -1628,14 +1515,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>550123456</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          000|
-          112
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Aruba -->
@@ -1698,15 +1577,6 @@
         </nationalNumberPattern>
         <exampleNumber>5011234</exampleNumber>
       </voip>
-      <emergency>
-        <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
-        <nationalNumberPattern>
-          100|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Åland Islands. -->
@@ -1800,18 +1670,12 @@
         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
         <exampleNumber>10112345</exampleNumber>
       </uan>
-      <emergency>
-        <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Azerbaijan -->
     <!-- http://www.itu.int/oth/T020200000F/en -->
     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
-               nationalPrefixFormattingRule="($NP$FG)">
+               nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
           <leadingDigits>
@@ -1882,18 +1746,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>900200123</exampleNumber>
       </premiumRate>
-      <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>
     </territory>
 
     <!-- Bosnia and Herzegovina -->
@@ -1901,7 +1753,8 @@
          http://www.cra.ba/en/telecom/numbering/) -->
     <!-- http://en.wikipedia.org/wiki/+387 -->
     <territory id="BA" countryCode="387" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
           <leadingDigits>[3-5]</leadingDigits>
@@ -1968,11 +1821,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>70223456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>12[234]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>122</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Barbados -->
@@ -2032,11 +1880,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>[235]11</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>211</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bangladesh -->
@@ -2195,7 +2038,7 @@
                 3|
                 4\d
               )
-            )|
+            )
           )\d{3}|
           4(?:
             0(?:
@@ -2432,54 +2275,14 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9604123456</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            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]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>103</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          10[0-2]|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Belgium -->
     <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
     <!-- http://www.telefoonzones.be/ -->
     <territory id="BE" countryCode="32" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
           <leadingDigits>4[6-9]</leadingDigits>
@@ -2495,7 +2298,7 @@
         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
           <leadingDigits>
             [156]|
-            7[0178]|
+            7[018]|
             8(?:
               0[1-9]|
               [1-79]
@@ -2518,21 +2321,17 @@
         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third
-             digit begins with 1-9 -->
+        <!-- According to the published Excel document the third digit must be 1-9. -->
         <nationalNumberPattern>
           (?:
             1[0-69]|
-            [23][2-8]|
             [49][23]|
             5\d|
             6[013-57-9]|
-            71
-          )\d{6}|
-          8(?:
-            0[1-9]|
-            [1-79]\d
-          )\d{5}
+            71|
+            8[0-79]
+          )[1-9]\d{5}|
+          [23][2-8]\d{6}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>12345678</exampleNumber>
@@ -2557,9 +2356,9 @@
       <premiumRate>
         <nationalNumberPattern>
           (?:
-            90|
-            7[07]
-          )\d{6}
+            70[2-7]|
+            90\d
+          )\d{5}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>90123456</exampleNumber>
@@ -2572,16 +2371,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>78123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[01]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Burkina Faso -->
@@ -2625,26 +2414,21 @@
       <mobile>
         <nationalNumberPattern>
           6(?:
-            [0156]\d|
-            [28][0-5]|
-            4[01]
+            [0-24-6]\d|
+            8[0-8]|
+            3[0-3]
           )\d{5}|
           7\d{7}
         </nationalNumberPattern>
         <exampleNumber>70123456</exampleNumber>
       </mobile>
-      <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
-      <emergency>
-        <nationalNumberPattern>1[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bulgaria -->
     <!-- http://www.itu.int/oth/T0202000020/en -->
     <territory id="BG" countryCode="359" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
              used to separate the area code from the rest of the number, based on sites like
@@ -2757,24 +2541,14 @@
         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
         <exampleNumber>70012345</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            50|
-            6[06]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bahrain -->
     <!-- http://www.itu.int/oth/T0202000011/en -->
     <!-- http://www.tra.org.bh/en/pdf/National_Numbering_Plan_2.pdf -->
+    <!-- http://www.tra.org.bh/en/marketNumbering.aspx -->
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain -->
-    <territory id="BH" countryCode="973" internationalPrefix="00">
+    <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{4})(\d{4})">
           <format>$1 $2</format>
@@ -2786,11 +2560,14 @@
       </generalDesc>
       <!-- Universal Service numbers are under both Mobile and Fixed-Line, as they can be assigned
            to either. -->
+      <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
+           "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts our ranges of
+           "6966, 6969, 6996-6999". TODO: Investigate this further. -->
       <fixedLine>
         <nationalNumberPattern>
           (?:
             1(?:
-              3[3-6]|
+              3[13-6]|
               6[0156]|
               7\d
             )\d|
@@ -2799,28 +2576,35 @@
               6(?:
                 0\d|
                 3[12]|
-                44
+                44|
+                88
               )|
               9(?:
-                69|
+                6[69]|
                 9[6-9]
               )
             )|
-            77\d{2}
+            7(?:
+              7\d{2}|
+              178
+            )
           )\d{4}
         </nationalNumberPattern>
         <exampleNumber>17001234</exampleNumber>
       </fixedLine>
-      <!-- Mobile prefix 384 is not yet in the ITU document but other sources (e.g. Google
-           searches) suggest mobile numbers with this prefix are in use. 350 was added as
-           VIVO are apparently using that prefix. -->
+      <!-- Previously 6644 was assigned to Universal Service, along with 6111, 6160, 6500, 6600,
+           6688, 6969, 6996, 6999, and 77. These were put under both Mobile and Fixed-Line, as they
+           could be assigned to either. However, in the new document these are assigned to
+           Fixed-Line only (with the exception of 6644 which was removed). For now we are keeping
+           these number in both sections.
+           Note also that 31 is not listed in the ITU document and could probably be removed.
+           TODO: Check above ranges and move/remove ranges where necessary.-->
       <mobile>
         <nationalNumberPattern>
           (?:
             3(?:
-              [23469]\d|
-              5[035]|
-              77|
+              [1-4679]\d|
+              5[0135]|
               8[348]
             )\d|
             6(?:
@@ -2830,13 +2614,15 @@
                 33|
                 6[16]
               )|
+              500|
               6(?:
                 [069]\d|
                 3[03-9]|
-                44
+                44|
+                88
               )|
               9(?:
-                69|
+                6[69]|
                 9[6-9]
               )
             )|
@@ -2864,11 +2650,6 @@
         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
         <exampleNumber>84123456</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Burundi -->
@@ -2894,27 +2675,18 @@
         <exampleNumber>22201234</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- Extra online mobile number prefixes found: 79 10, 78 \d{2} and 76 [29]\d. The 29
-             prefix is listed as a mobile prefix, but many people list it as their fixed home
+        <!-- Extra online mobile number prefixes found: 74.
+             The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
              satellite phones. -->
         <nationalNumberPattern>
           (?:
-            29\d|
-            7(?:
-              1[1-3]|
-              [4-9]\d
-            )
-          )\d{5}
+            29|
+            7[14-9]
+          )\d{6}
         </nationalNumberPattern>
         <exampleNumber>79561234</exampleNumber>
       </mobile>
-      <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burundi_12220/index.html -->
-      <emergency>
-        <nationalNumberPattern>11[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>117</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Benin -->
@@ -2949,12 +2721,13 @@
       </fixedLine>
       <mobile>
         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
-             seems to be no longer accurate. The prefixes 9[468] have also been added, along with
-             6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. -->
+             seems to be no longer accurate. The prefixes 9[46] have also been added, along with
+             6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
+             reported as having prefixes 68 and 9[89]. -->
         <nationalNumberPattern>
           (?:
-            6[467]|
-            9[03-8]
+            6[46-8]|
+            9[03-9]
           )\d{6}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
@@ -2977,11 +2750,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>81123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>11[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>117</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saint Barthélemy, French Antilles -->
@@ -3021,12 +2789,6 @@
         </nationalNumberPattern>
         <exampleNumber>690301234</exampleNumber>
       </mobile>
-      <!-- http://www.comstbarth.fr/urgences.asp -->
-      <emergency>
-        <nationalNumberPattern>18</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>18</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bermuda -->
@@ -3098,12 +2860,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Brunei Darussalam -->
@@ -3127,12 +2883,6 @@
         <nationalNumberPattern>[78]\d{6}</nationalNumberPattern>
         <exampleNumber>7123456</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
-        <nationalNumberPattern>99[135]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>991</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bolivia -->
@@ -3183,11 +2933,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>71234567</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>11[089]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bonaire, Sint Eustatius and Saba -->
@@ -3224,15 +2969,6 @@
         </nationalNumberPattern>
         <exampleNumber>3181234</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Brazil -->
@@ -3242,7 +2978,7 @@
                internationalPrefix="00(?:1[45]|2[135]|[34]1|43)"
                nationalPrefix="0"
                nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?"
-               nationalPrefixTransformRule="$2">
+               nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
       <!-- The national prefix for parsing here also contains a capturing group for the main number,
            since the carrier codes here may also be area codes, so we want to check the length of
            the number after capturing. We also need a nationalTransformRule to repopulate with the
@@ -3271,15 +3007,26 @@
           <format>$1-$2</format>
           <intlFormat>NA</intlFormat>
         </numberFormat>
+        <!-- Format short numbers as a block. -->
+        <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
+          <leadingDigits>1[125689]</leadingDigits>
+          <format>$1</format>
+          <intlFormat>NA</intlFormat>
+        </numberFormat>
         <numberFormat nationalPrefixFormattingRule="($FG)"
-          pattern="(\d{2})(\d{5})(\d{4})"
-          carrierCodeFormattingRule="$NP $CC ($FG)">
-          <leadingDigits>1[1-9]9</leadingDigits>
+            pattern="(\d{2})(\d{5})(\d{4})"
+            carrierCodeFormattingRule="$NP $CC ($FG)">
+          <leadingDigits>
+            (?:
+              1[1-9]|
+              2[12478]
+            )9
+          </leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
         <numberFormat nationalPrefixFormattingRule="($FG)"
-          pattern="(\d{2})(\d{4})(\d{4})"
-          carrierCodeFormattingRule="$NP $CC ($FG)">
+            pattern="(\d{2})(\d{4})(\d{4})"
+            carrierCodeFormattingRule="$NP $CC ($FG)">
           <leadingDigits>[1-9][1-9]</leadingDigits>
           <format>$1 $2-$3</format>
         </numberFormat>
@@ -3288,7 +3035,7 @@
           <format>$1-$2</format>
         </numberFormat>
         <numberFormat nationalPrefixFormattingRule="$NP$FG"
-          pattern="([3589]00)(\d{2,3})(\d{4})">
+            pattern="([3589]00)(\d{2,3})(\d{4})">
           <leadingDigits>[3589]00</leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
@@ -3323,14 +3070,14 @@
         </nationalNumberPattern>
         <exampleNumber>1123456789</exampleNumber>
       </fixedLine>
-      <!--  Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
-            which are added at the end. -->
+      <!-- Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
+           which are added at the end. -->
       <mobile>
         <nationalNumberPattern>
           1(?:
             1(?:
               5[347]|
-              [6-9]\d|
+              [6-9]\d
             )|
             [2-9][6-9]\d
           )\d{6}|
@@ -3342,8 +3089,11 @@
             7[13-579]
           )[6-9]\d{7}|
           (?:
-            119\d|
-            1[2-9]9[6-9]
+            1(?:
+              19\d|
+              [2-9]9[6-9]
+            )|
+            2[12478]9[6-9]
           )\d{7}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
@@ -3362,18 +3112,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>40041234</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            28|
-            9[023]
-          )|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>190</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bahamas -->
@@ -3471,12 +3209,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
-        <nationalNumberPattern>91[19]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Bhutan -->
@@ -3525,13 +3257,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>17123456</exampleNumber>
       </mobile>
-      <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>
       <!-- No information on other types of phone numbers for Bhutan has been found. -->
     </territory>
 
@@ -3594,12 +3319,12 @@
         <exampleNumber>2401234</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- 77[01] has been added after numbers in use have been seen online. -->
+        <!-- 77[0146] has been added after numbers in use have been seen online. -->
         <nationalNumberPattern>
           7(?:
             [1-35]\d{6}|
             [46][0-7]\d{5}|
-            7[01]\d{5}
+            7[0146]\d{5}
           )
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
@@ -3618,21 +3343,14 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>79101234</exampleNumber>
       </voip>
-      <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>
     </territory>
 
     <!-- Belarus -->
     <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
     <!-- Information on national prefix provided by a Belarussian person. -->
     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
-               internationalPrefix="810" nationalPrefixForParsing="80?"
-               nationalPrefix="8">
+               internationalPrefix="810" nationalPrefixForParsing="8?0?"
+               nationalPrefix="8" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
           pattern="([1-4]\d)(\d{3})(\d{4})">
@@ -3749,16 +3467,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9021234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[123]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Belize -->
@@ -3804,22 +3512,12 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>08001234123</exampleNumber>
       </tollFree>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <emergency>
-        <nationalNumberPattern>
-          9(?:
-            0|
-            11
-          )
-          </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Canada -->
     <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
-    <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1">
+    <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
+               mobileNumberPortableRegion="true">
       <generalDesc>
         <!-- NANPA country - uses US formatting rules -->
         <nationalNumberPattern>
@@ -3846,10 +3544,10 @@
               03|
               1[68]|
               3[178]|
-              5[06]
+              50
             )|
             5(?:
-              0[06]|
+              06|
               1[49]|
               79|
               8[17]
@@ -3861,9 +3559,9 @@
               47
             )|
             7(?:
-              0[059]|
-              80|
-              78
+              0[59]|
+              78|
+              80
             )|
             8(?:
               [06]7|
@@ -3894,10 +3592,10 @@
               03|
               1[68]|
               3[178]|
-              5[06]
+              50
             )|
             5(?:
-              0[06]|
+              06|
               1[49]|
               79|
               8[17]
@@ -3909,9 +3607,9 @@
               47
             )|
             7(?:
-              0[059]|
-              80|
-              78
+              0[59]|
+              78|
+              80
             )|
             8(?:
               [06]7|
@@ -3927,7 +3625,6 @@
         <nationalNumberPattern>
           8(?:
             00|
-            55|
             66|
             77|
             88
@@ -3953,14 +3650,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cocos Islands -->
@@ -4027,16 +3716,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>550123456</exampleNumber>
       </voip>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
@@ -4098,7 +3777,6 @@
         </nationalNumberPattern>
         <exampleNumber>991234567</exampleNumber>
       </mobile>
-      <!-- No national emergency numbers were located for Congo. -->
     </territory>
 
     <!-- Central African Republic -->
@@ -4125,7 +3803,6 @@
         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
         <exampleNumber>87761234</exampleNumber>
       </premiumRate>
-      <!-- No emergency numbers information can be found. -->
     </territory>
 
     <!-- Congo (Rep. of the) (Brazzaville) -->
@@ -4158,14 +3835,14 @@
         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
         <exampleNumber>800123456</exampleNumber>
       </tollFree>
-      <!-- No emergency numbers information can be found. -->
     </territory>
 
     <!-- Switzerland -->
     <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en
          under Technical prescriptions: Numbering plan for international carriers -->
     <territory id="CH" countryCode="41" internationalPrefix="00"
-               nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
           <leadingDigits>
@@ -4199,7 +3876,7 @@
             2[12467]|
             3[1-4]|
             4[134]|
-            5[12568]|
+            5[256]|
             6[12]|
             [7-9]1
           )\d{7}
@@ -4208,10 +3885,16 @@
         <exampleNumber>212345678</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>7[46-9]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
-        <exampleNumber>741234567</exampleNumber>
+        <exampleNumber>781234567</exampleNumber>
       </mobile>
+      <pager>
+        <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
+        <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>740123456</exampleNumber>
+      </pager>
       <tollFree>
         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -4232,21 +3915,17 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>878123456</exampleNumber>
       </personalNumber>
+      <uan>
+        <!-- Used for corporate networks. -->
+        <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>581234567</exampleNumber>
+      </uan>
       <voicemail>
         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
         <possibleNumberPattern>\d{12}</possibleNumberPattern>
         <exampleNumber>860123456789</exampleNumber>
       </voicemail>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[278]|
-            44
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Côte d'Ivoire -->
@@ -4284,29 +3963,18 @@
         <exampleNumber>21234567</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 65 because SMS messages have been
+        <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
              successfully delivered. Supported by numbers found on the internet. -->
         <nationalNumberPattern>
           (?:
             0[1-9]|
             4[0-24-9]|
             5[05-9]|
-            6[05679]
+            6[015679]
           )\d{6}
         </nationalNumberPattern>
         <exampleNumber>01234567</exampleNumber>
       </mobile>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[01]|
-            [78]0
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cook Islands -->
@@ -4340,13 +4008,6 @@
         </nationalNumberPattern>
         <exampleNumber>71234</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
-             sites agree on the following numbers. -->
-        <nationalNumberPattern>99[689]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>998</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Chile -->
@@ -4357,7 +4018,7 @@
                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
                nationalPrefix="0"
                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
-               nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
       we strip here. National destinations may be dialled with a carrier if they are not local so
       we extract these carrier codes as well. -->
@@ -4404,6 +4065,13 @@
           <leadingDigits>1</leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
+        <!-- Format some short numbers as a block. -->
+        <numberFormat nationalPrefixFormattingRule="$FG"
+          pattern="(\d{4,5})">
+          <leadingDigits>[1-9]</leadingDigits>
+          <format>$1</format>
+          <intlFormat>NA</intlFormat>
+        </numberFormat>
       </availableFormats>
       <generalDesc>
         <nationalNumberPattern>
@@ -4485,11 +4153,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>441234567</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>13[123]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>133</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cameroon -->
@@ -4500,9 +4163,9 @@
              the same format as France (all 2 digit groups) so we use this instead of the guidance
              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
              examples.) -->
-        <numberFormat pattern="([237-9]\d)(\d{2})(\d{2})(\d{2})">
+        <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
           <leadingDigits>
-            [2379]|
+            [23579]|
             88
           </leadingDigits>
           <format>$1 $2 $3 $4</format>
@@ -4513,7 +4176,7 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -4530,7 +4193,8 @@
         <exampleNumber>22123456</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>[79]\d{7}</nationalNumberPattern>
+        <!-- Mobile numbers beginning with 5 were found online. -->
+        <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
         <exampleNumber>71234567</exampleNumber>
       </mobile>
       <tollFree>
@@ -4544,13 +4208,6 @@
         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
         <exampleNumber>88012345</exampleNumber>
       </premiumRate>
-      <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/cameroun_12221/index.html -->
-      <emergency>
-        <!-- Numbers must be prefixed with a 1 when dialled from a mobile. -->
-        <nationalNumberPattern>1?1[37]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- China -->
@@ -4569,13 +4226,58 @@
           <leadingDigits>[48]00</leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
-        <!-- 95xxx shared cost numbers. Without this rule, the numbers will be formatted
-             incorrectly by the AsYouTypeFormatter because they overlap with area code 095x.
+        <!-- 100xx and 95xxx(x) numbers. Without this rule, the numbers will be formatted
+             incorrectly by the AsYouTypeFormatter because they overlap with area codes 010, 095x.
              Note although ITU says the format is more like 95 xxx, in reality no space is used
              when writing such numbers in China -->
-        <numberFormat pattern="(\d{5})">
-          <leadingDigits>95</leadingDigits>
+        <numberFormat pattern="(\d{5,6})">
+          <leadingDigits>
+            100|
+            95
+          </leadingDigits>
           <format>$1</format>
+          <intlFormat>NA</intlFormat>
+        </numberFormat>
+        <!-- 100xx and 95xxx(x) numbers with area codes. -->
+        <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
+                      carrierCodeFormattingRule="$CC $FG">
+          <leadingDigits>
+            (?:
+              10|
+              2\d
+            )[19]
+          </leadingDigits>
+          <leadingDigits>
+            (?:
+              10|
+              2\d
+            )(?:
+              10|
+              95
+            )
+          </leadingDigits>
+          <leadingDigits>
+            (?:
+              10|
+              2\d
+            )(?:
+              100|
+              95
+            )
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
+                      carrierCodeFormattingRule="$CC $FG">
+          <leadingDigits>[3-9]</leadingDigits>
+          <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
+          <leadingDigits>
+            [3-9]\d{2}(?:
+              10|
+              95
+            )
+          </leadingDigits>
+          <format>$1 $2</format>
         </numberFormat>
         <!-- Local numbers -->
         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
@@ -4725,26 +4427,31 @@
       </availableFormats>
       <generalDesc>
         <nationalNumberPattern>
-          [1-7]\d{7,11}|
+          1(?:
+            00\d{2}|
+            \d{6,11}
+          )|
+          [2-7]\d{6,11}|
           8[0-357-9]\d{6,9}|
           9(?:
-            5\d{3}|
+            5\d{3,4}|
             \d{9}
           )
         </nationalNumberPattern>
         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
       </generalDesc>
       <noInternationalDialling>
-        <!-- 95xxx numbers have been verified to be unreachable from overseas by placing actual
-             calls. -->
+        <!-- 100xx and 95xxx(x) numbers have been verified to be unreachable from overseas by
+             placing actual calls. -->
         <nationalNumberPattern>
+          100\d{2}|
           (?:
             4|
             (?:
               10
             )?8
           )00\d{7}|
-          95\d{3}
+          95\d{3,4}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
         <exampleNumber>4001234567</exampleNumber>
@@ -4753,9 +4460,17 @@
         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
-             in the ITU data. -->
+             in the ITU data.
+             10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
+             exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
+             as they don't seem to be used there based on making actual phone calls.
+         -->
         <nationalNumberPattern>
-          21\d{8,10}|
+          21(?:
+            100\d{2}|
+            95\d{3,4}|
+            \d{8,10}
+          )|
           (?:
             10|
             2[02-57-9]|
@@ -4785,7 +4500,11 @@
               71|
               98
             )
-          )\d{8}|
+          )(?:
+            100\d{2}|
+            95\d{3,4}|
+            \d{8}
+          )|
           (?:
             3(?:
               1[02-9]|
@@ -4844,7 +4563,11 @@
               4[13]|
               5[1-5]
             )
-          )\d{7}|
+          )(?:
+            100\d{2}|
+            95\d{3,4}|
+            \d{7}
+          )|
           80(?:
             29|
             6[03578]|
@@ -4884,32 +4607,40 @@
         <exampleNumber>16812345</exampleNumber>
       </premiumRate>
       <sharedCost>
-        <!-- 95xxx numbers are covered by the ITU doc, but the following doc contains more info:
-             http://baike.baidu.com/view/3269670.htm -->
+        <!-- 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 numbers and is covered under the fixed-line pattern. -->
         <nationalNumberPattern>
           400\d{7}|
-          95\d{3}
+          95\d{3,4}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{5}(?:\d{5})?</possibleNumberPattern>
+        <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
         <exampleNumber>4001234567</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[09]|
-            20
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>119</exampleNumber>
-      </emergency>
+      <uan>
+        <!-- 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 numbers and is
+             covered under the fixed-line pattern.
+          -->
+        <nationalNumberPattern>100\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{5}</possibleNumberPattern>
+        <exampleNumber>10000</exampleNumber>
+      </uan>
     </territory>
 
     <!-- Colombia -->
     <!-- http://www.itu.int/oth/T020200002C/en -->
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
-    <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999"
-               nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?">
+    <!-- Extra international dialling prefixes from www.claro.com.co and www.tigo.com.co. -->
+    <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
+    <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
+               nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
           nationalPrefixFormattingRule="($FG)">
@@ -4999,24 +4730,12 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>19001234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[29]|
-            23|
-            32|
-            56
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Costa Rica -->
     <!-- http://www.itu.int/oth/T0202000030/en -->
     <territory id="CR" countryCode="506" internationalPrefix="00"
-               nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))"
+               nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))"
                carrierCodeFormattingRule="$CC $FG">
       <availableFormats>
         <numberFormat pattern="(\d{4})(\d{4})">
@@ -5071,13 +4790,11 @@
             0(?:
               [04]0\d{4}|
               10[0-3]\d{3}|
-              2(?:
-                00\d|
-                900
-              )\d{2}|
+              2900\d{2}|
               3[01]\d{4}|
               5\d{5}|
-              70[01]\d{3}
+              70[01]\d{3}|
+              8[0-2]\d{4}
             )|
             1[01]\d{5}|
             20[0-3]\d{4}|
@@ -5089,59 +4806,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>40001234</exampleNumber>
       </voip>
-      <shortCode>
-        <!-- This pattern excludes 4-digit SMS content numbers for now. -->
-        <nationalNumberPattern>
-          1(?:
-            0(?:
-              00|
-              15|
-              2[2-4679]
-            )|
-            1(?:
-              1[0-35-9]|
-              37|
-              [46]6|
-              7[57]|
-              8[79]|
-              9[0-379]
-            )|
-            2(?:
-              00|
-              [12]2|
-              34|
-              55
-            )|
-            333|
-            4(?:
-              00|
-              1[56]
-            )|
-            5(?:
-              15|
-              5[15]
-            )|
-            693|
-            7(?:
-              00|
-              1[789]|
-              2[02]|
-              [67]7
-            )|
-            975
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>1022</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cuba -->
@@ -5187,24 +4851,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>51234567</exampleNumber>
       </mobile>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              6111|
-              8
-            )|
-            40
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>140</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>10[456]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>106</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cape Verde -->
@@ -5246,12 +4892,6 @@
         </nationalNumberPattern>
         <exampleNumber>9911234</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://www.capeverde.com/travel-tips/safety.html -->
-        <nationalNumberPattern>13[012]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>132</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Curaçao -->
@@ -5318,75 +4958,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>1011234</exampleNumber>
       </sharedCost>
-      <emergency>
-        <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
-    </territory>
-
-    <!-- Cyprus -->
-    <!-- http://www.itu.int/oth/T0202000034/en -->
-    <territory id="CY" countryCode="357" internationalPrefix="00">
-      <availableFormats>
-        <!-- Format from http://www.cyprusyellowpages.com/-->
-        <numberFormat pattern="(\d{2})(\d{6})">
-          <format>$1 $2</format>
-        </numberFormat>
-      </availableFormats>
-      <generalDesc>
-        <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
-        <possibleNumberPattern>\d{8}</possibleNumberPattern>
-      </generalDesc>
-      <fixedLine>
-        <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
-        <exampleNumber>22345678</exampleNumber>
-      </fixedLine>
-      <mobile>
-        <!-- Includes paging numbers (they are mixed into the same block). -->
-        <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
-        <exampleNumber>96123456</exampleNumber>
-      </mobile>
-      <tollFree>
-        <nationalNumberPattern>800\d{5}</nationalNumberPattern>
-        <exampleNumber>80001234</exampleNumber>
-      </tollFree>
-      <premiumRate>
-        <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
-        <exampleNumber>90012345</exampleNumber>
-      </premiumRate>
-      <sharedCost>
-        <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
-        <exampleNumber>80112345</exampleNumber>
-      </sharedCost>
-      <personalNumber>
-        <nationalNumberPattern>700\d{5}</nationalNumberPattern>
-        <exampleNumber>70012345</exampleNumber>
-      </personalNumber>
-      <uan>
-        <!-- Using for Corporate Network numbers and Universal Service numbers. -->
-        <nationalNumberPattern>
-          (?:
-            50|
-            77
-          )\d{6}
-        </nationalNumberPattern>
-        <exampleNumber>77123456</exampleNumber>
-      </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Christmas Islands -->
@@ -5453,22 +5024,62 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>550123456</exampleNumber>
       </voip>
-      <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. -->
+    </territory>
+
+    <!-- Cyprus -->
+    <!-- http://www.itu.int/oth/T0202000034/en -->
+    <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
+      <availableFormats>
+        <!-- Format from http://www.cyprusyellowpages.com/-->
+        <numberFormat pattern="(\d{2})(\d{6})">
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
+      <generalDesc>
+        <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
+        <possibleNumberPattern>\d{8}</possibleNumberPattern>
+      </generalDesc>
+      <fixedLine>
+        <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
+        <exampleNumber>22345678</exampleNumber>
+      </fixedLine>
+      <mobile>
+        <!-- Includes paging numbers (they are mixed into the same block). -->
+        <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
+        <exampleNumber>96123456</exampleNumber>
+      </mobile>
+      <tollFree>
+        <nationalNumberPattern>800\d{5}</nationalNumberPattern>
+        <exampleNumber>80001234</exampleNumber>
+      </tollFree>
+      <premiumRate>
+        <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
+        <exampleNumber>90012345</exampleNumber>
+      </premiumRate>
+      <sharedCost>
+        <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
+        <exampleNumber>80112345</exampleNumber>
+      </sharedCost>
+      <personalNumber>
+        <nationalNumberPattern>700\d{5}</nationalNumberPattern>
+        <exampleNumber>70012345</exampleNumber>
+      </personalNumber>
+      <uan>
+        <!-- Using for Corporate Network numbers and Universal Service numbers. -->
         <nationalNumberPattern>
-          000|
-          112
+          (?:
+            50|
+            77
+          )\d{6}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
+        <exampleNumber>77123456</exampleNumber>
+      </uan>
     </territory>
 
     <!-- Czech Rep. -->
     <!-- http://www.itu.int/oth/T0202000035/en -->
     <!-- http://en.wikipedia.org/wiki/%2B420 -->
-    <territory id="CZ" countryCode="420" internationalPrefix="00">
+    <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
           <leadingDigits>
@@ -5565,39 +5176,14 @@
         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
         <exampleNumber>93123456789</exampleNumber>
       </voicemail>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              6\d{3}|
-              8\d
-            )|
-            2\d{2,3}|
-            3\d{3,4}|
-            4\d{3}|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
-        <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" countryCode="49" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
              these should best be formatted, even though actual usage varies. -->
@@ -5609,7 +5195,7 @@
           <leadingDigits>15</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
-        <numberFormat pattern="(\d{2})(\d{4,11})">
+        <numberFormat pattern="(\d{2})(\d{3,11})">
           <leadingDigits>
             3[02]|
             40|
@@ -5814,8 +5400,9 @@
         <nationalNumberPattern>
           [246]\d{5,13}|
           3(?:
-            [03-9]\d{4,13}|
-            2\d{9}
+            0\d{3,13}|
+            2\d{9}|
+            [3-9]\d{4,13}
           )|
           5(?:
             0[2-8]|
@@ -5911,17 +5498,6 @@
         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
         <exampleNumber>177991234567</exampleNumber>
       </voicemail>
-      <shortCode>
-        <!-- Public Service Number for German administration. -->
-        <nationalNumberPattern>115</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>115</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[02]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Djibouti -->
@@ -5950,16 +5526,11 @@
         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
         <exampleNumber>77831001</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>1[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Denmark -->
     <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
-    <territory id="DK" countryCode="45" internationalPrefix="00">
+    <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
           <format>$1 $2 $3 $4</format>
@@ -5999,11 +5570,6 @@
         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
         <exampleNumber>90123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Dominica -->
@@ -6076,25 +5642,12 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Dominican Rep. -->
     <!-- http://www.itu.int/oth/T020200003C/en -->
     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
-               internationalPrefix="011">
+               internationalPrefix="011" mobileNumberPortableRegion="true">
       <generalDesc>
         <!-- NANPA country - uses US formatting rules -->
         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
@@ -6191,14 +5744,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
    </territory>
 
     <!-- Algeria -->
@@ -6282,11 +5827,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>983123456</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>1[47]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
    </territory>
 
     <!-- Ecuador -->
@@ -6295,7 +5835,8 @@
          -->
     <!-- http://www.itu.int/oth/T020200003D/en -->
     <territory id="EC" countryCode="593" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
+               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d)(\d{3})(\d{4})">
           <leadingDigits>
@@ -6351,23 +5892,12 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>28901234</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[12]|
-            12
-          )|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <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" countryCode="372" internationalPrefix="00">
+    <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([3-79]\d{2})(\d{4})">
           <leadingDigits>
@@ -6522,27 +6052,13 @@
         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
         <exampleNumber>12123</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1[13-9]|
-            [2-9]\d
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>116</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[02]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Egypt -->
     <!-- http://www.itu.int/oth/T020200003E/en -->
     <territory id="EG" countryCode="20" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
        <availableFormats>
          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
               or 19. These are formatted without national prefix, as a block, so do not need to be
@@ -6626,11 +6142,11 @@
       <mobile>
         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
              started allocating numbers beginning with these prefixes, along with 115 from numbers
-             found online. -->
+             found online. Etisalat is using 110. -->
         <nationalNumberPattern>
           1(?:
-            0[01269]|
-            1[1245]|
+            0[0-269]|
+            1[0-245]|
             2[0-278]
           )\d{7}
         </nationalNumberPattern>
@@ -6647,16 +6163,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9001234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            2[23]|
-            80
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>122</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Western Sahara -->
@@ -6679,13 +6185,12 @@
       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
            numbers to be recognized as available from within Western Sahara. -->
       <mobile>
-        <!-- Prefixes 60[1-578], 62[0147-9], 63[04-8] and 68[01] are from numbers found online,
+        <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
              bug-reports, and information provided directly by the carriers. -->
         <nationalNumberPattern>
           6(?:
             0[0-8]|
-            [14-7]\d|
-            2[0-46-9]|
+            [124-7]\d|
             3[03-8]|
             8[01]|
             99
@@ -6701,16 +6206,6 @@
         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
         <exampleNumber>891234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            [59]|
-            77
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Eritrea -->
@@ -6749,14 +6244,17 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>7123456</exampleNumber>
       </mobile>
-      <!-- No emergency numbers information can be found. -->
     </territory>
 
     <!-- Spain -->
     <!-- http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx -->
-    <territory id="ES" countryCode="34" internationalPrefix="00">
+    <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>
+            [568]|
+            [79][0-8]
+          </leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
       </availableFormats>
@@ -6843,19 +6341,6 @@
         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
         <exampleNumber>511234567</exampleNumber>
       </uan>
-      <emergency>
-        <!-- We include the Civil Guard here since it seems to perform similar duties as the police
-             force. -->
-        <nationalNumberPattern>
-          0(?:
-            [69][12]|
-            8[05]
-          )|
-          112
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Ethiopia -->
@@ -7004,29 +6489,14 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>911234567</exampleNumber>
       </mobile>
-      <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>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>991</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Finland -->
     <!-- Metadata shared with Åland (AX) -->
     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
-               nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
+               nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{3,7})">
           <leadingDigits>
@@ -7039,8 +6509,8 @@
         </numberFormat>
         <numberFormat pattern="(\d{2})(\d{4,10})">
           <leadingDigits>
-            2[09]|
             [14]|
+            2[09]|
             50|
             7[135]
           </leadingDigits>
@@ -7147,11 +6617,6 @@
         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
         <exampleNumber>10112345</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Fiji -->
@@ -7210,32 +6675,6 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>08001234567</exampleNumber>
       </tollFree>
-      <shortCode>
-        <!-- From the Emergency Numbers page on the Telecom Fiji website. -->
-        <nationalNumberPattern>
-          0(?:
-           04|
-           1[34]|
-           8[1-4]
-          )|
-          1(?:
-            0[1-3]|
-            [25]9
-          )|
-          2[289]|
-          30|
-          [45]4|
-          75|
-          913
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>22</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>91[17]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Falkland Islands (Malvinas) -->
@@ -7254,18 +6693,6 @@
         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
         <exampleNumber>51234</exampleNumber>
       </mobile>
-      <shortCode>
-        <!-- Service numbers use 3 digit short codes -->
-        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Micronesia, Federated States of -->
@@ -7296,15 +6723,6 @@
         </nationalNumberPattern>
         <exampleNumber>3501234</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
-        <nationalNumberPattern>
-          911|
-          320221
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}(?:\d{3})?</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Faroe Islands -->
@@ -7365,39 +6783,25 @@
         </nationalNumberPattern>
         <exampleNumber>601234</exampleNumber>
       </voip>
-      <shortCode>
-        <!-- Includes special numbers, special services and universal services.  -->
-        <nationalNumberPattern>
-          1(?:
-            1[48]|
-            4[124]\d|
-            71\d|
-            8[7-9]\d
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>114</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- France -->
     <!-- http://www.itu.int/oth/T020200004A/en -->
     <!-- http://www.arcep.fr/index.php?id=8146 -->
     <!-- http://en.wikipedia.org/wiki/%2B33 -->
-    <territory id="FR" countryCode="33" internationalPrefix="[04579]0"
-               preferredInternationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
-      <!-- 4-digit premium-rate numbers will be formatted as a block without a national prefix. -->
+    <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
+               nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
+      <!-- Short numbers will be formatted as a block without a national prefix. -->
       <availableFormats>
         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
           <leadingDigits>[1-79]</leadingDigits>
           <format>$1 $2 $3 $4 $5</format>
         </numberFormat>
+        <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
+          <leadingDigits>11</leadingDigits>
+          <format>$1 $2</format>
+          <intlFormat>NA</intlFormat>
+        </numberFormat>
         <numberFormat nationalPrefixFormattingRule="$NP $FG"
           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
           <leadingDigits>8</leadingDigits>
@@ -7405,20 +6809,11 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>
-          [124-9]\d{8}|
-          3\d{3}(?:\d{5})?
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
+        <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
       </generalDesc>
-      <noInternationalDialling>
-        <nationalNumberPattern>3\d{3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>3123</exampleNumber>
-      </noInternationalDialling>
       <fixedLine>
         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>123456789</exampleNumber>
       </fixedLine>
       <mobile>
@@ -7426,22 +6821,14 @@
           6\d{8}|
           7[5-9]\d{7}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>612345678</exampleNumber>
       </mobile>
       <tollFree>
         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>801234567</exampleNumber>
       </tollFree>
       <premiumRate>
-        <!-- We are putting 4-digit premium-rate numbers here for now, since they are used by
-             agencies such as CPAM and the national unemployment agency. -->
-        <nationalNumberPattern>
-          3\d{3}|
-          89[1-37-9]\d{6}
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
+        <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
         <exampleNumber>891123456</exampleNumber>
       </premiumRate>
       <sharedCost>
@@ -7453,65 +6840,40 @@
             90
           )\d{6}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>810123456</exampleNumber>
       </sharedCost>
       <voip>
         <!-- 087 numbers used to be used for this. -->
         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>912345678</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            [578]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Gabon -->
     <!-- http://www.itu.int/oth/T020200004E/en -->
-    <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true"
-               nationalPrefix="0">
+    <!-- www.arcep.ga -->
+    <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true">
       <availableFormats>
-        <numberFormat pattern="(1)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
-          <leadingDigits>1</leadingDigits>
-          <format>$1 $2 $3 $4</format>
-        </numberFormat>
         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
-          <leadingDigits>0</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[01]\d{6,7}</nationalNumberPattern>
-        <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
+        <nationalNumberPattern>0\d{7}</nationalNumberPattern>
+        <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
-           line and mobile numbering. However the change to remove the leading '0' from mobile NDCs
-           has not gone through. This is now scheduled to happen on October 28, 2012. -->
+           line and mobile numbering. However, it seems that this has not happened; their own
+           website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not
+           connect without the 0 from outside the country. This was last tested June 2013. -->
       <fixedLine>
-        <nationalNumberPattern>1\d{6}</nationalNumberPattern>
-        <exampleNumber>1441234</exampleNumber>
+        <nationalNumberPattern>01\d{6}</nationalNumberPattern>
+        <exampleNumber>01441234</exampleNumber>
       </fixedLine>
       <mobile>
         <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern>
         <exampleNumber>06031234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>
-          1730|
-          18|
-          13\d{2}
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
-        <exampleNumber>1730</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- United Kingdom -->
@@ -7522,7 +6884,7 @@
          validation, although the formatting rules are shared. -->
     <territory id="GB" countryCode="44" internationalPrefix="00"
                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
-               mainCountryForCode="true">
+               mainCountryForCode="true" mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
@@ -8101,61 +7463,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5512345678</exampleNumber>
       </uan>
-      <shortCode>
-        <!-- This is a list of the ones that can be called. -->
-        <nationalNumberPattern>
-          1(?:
-            0[01]|
-            1(?:
-              1|
-              [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|
-          901
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>150</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Grenada -->
@@ -8242,33 +7549,37 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Georgia -->
     <!-- http://www.itu.int/oth/T0202000050/en -->
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
-    <territory id="GE" countryCode="995" preferredInternationalPrefix="8~10"
-               internationalPrefix="810" nationalPrefix="8">
+    <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
-        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP $FG">
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
           <leadingDigits>[348]</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
+          <leadingDigits>7</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
           <leadingDigits>5</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
       </availableFormats>
+      <noInternationalDialling>
+        <!-- Online numbers mention that this is not internationally diallable. -->
+        <nationalNumberPattern>706\d{6}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>706123456</exampleNumber>
+      </noInternationalDialling>
       <generalDesc>
-        <nationalNumberPattern>[3458]\d{8}</nationalNumberPattern>
+        <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -8313,32 +7624,21 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>800123456</exampleNumber>
       </tollFree>
+      <voip>
+        <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
+        <nationalNumberPattern>706\d{6}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>706123456</exampleNumber>
+      </voip>
       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
            these are omitted for now. -->
-      <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>
     </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 -->
-    <!-- Using a national prefix here as online numbers are formatted with it.  -->
+    <!-- Using a national prefix here as online numbers are formatted with it. -->
     <territory id="GF" countryCode="594" internationalPrefix="00"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
       <availableFormats>
@@ -8378,11 +7678,6 @@
       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
            too. -->
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Guernsey -->
@@ -8494,45 +7789,14 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5512345678</exampleNumber>
       </uan>
-      <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(?:
-              1|
-              [68]\d{3}
-            )|
-            23|
-            4(?:
-              1|
-              7\d
-            )|
-            55|
-            800\d|
-            95
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <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" countryCode="233" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
           <leadingDigits>[235]</leadingDigits>
@@ -8611,19 +7875,18 @@
         <exampleNumber>80012345</exampleNumber>
       </tollFree>
       <!-- No premiumRate information can be found. -->
-      <emergency>
-        <nationalNumberPattern>
-          19[123]|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Gibraltar -->
+    <!-- http://www.gra.gi/index.php?topic=numbering+plan&section=legislation&site=communications -->
     <territory id="GI" countryCode="350" internationalPrefix="00">
-      <!-- No formatting rules - numbers are always formatted as a block. -->
+      <availableFormats>
+        <!-- Most numbers are formatted as a block -->
+        <numberFormat pattern="(\d{3})(\d{5})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+      </availableFormats>
       <generalDesc>
         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
@@ -8632,8 +7895,14 @@
         <nationalNumberPattern>
           2(?:
             00\d|
-            16[0-7]|
-            22[2457]
+            1(?:
+              6[24-7]|
+              9\d
+            )|
+            2(?:
+              00|
+              2[2457]
+            )
           )\d{4}
         </nationalNumberPattern>
         <exampleNumber>20012345</exampleNumber>
@@ -8641,8 +7910,8 @@
       <mobile>
         <nationalNumberPattern>
           (?:
-            5[4-8]|
-            60
+            5[46-8]|
+            62
           )\d{6}
         </nationalNumberPattern>
         <exampleNumber>57123456</exampleNumber>
@@ -8659,44 +7928,6 @@
         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
         <exampleNumber>87123456</exampleNumber>
       </sharedCost>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            00|
-            1(?:
-              6(?:
-                00[06]|
-                11[17]
-              )|
-              8\d{2}
-            )|
-            23|
-            4(?:
-              1|
-              7[014]
-            )|
-            5[015]|
-            9[34]
-          )|
-          8(?:
-            00|
-            4[0-2]|
-            8\d
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>116123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            9[09]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Greenland -->
@@ -8736,11 +7967,6 @@
         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
         <exampleNumber>381234</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Gambia -->
@@ -8785,38 +8011,29 @@
       <mobile>
         <nationalNumberPattern>
           (?:
-            2[0-2]|
+            2[0-6]|
             [3679]\d
           )\d{5}
         </nationalNumberPattern>
         <exampleNumber>3012345</exampleNumber>
       </mobile>
-      <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>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>117</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Guinea -->
     <!-- http://www.itu.int/oth/T020200005B/en -->
     <territory id="GN" countryCode="224" internationalPrefix="00">
-      <!-- We have two formatting patterns here since the 8 digit case is more normal and we want
-           that to be preferred for the AYTF. -->
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
-          <leadingDigits>[23567]</leadingDigits>
+          <leadingDigits>3</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
-          <leadingDigits>6[02356]</leadingDigits>
+          <leadingDigits>[67]</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[23567]\d{7,8}</nationalNumberPattern>
+        <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -8835,29 +8052,8 @@
         <exampleNumber>30241234</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- WiMAX is in the plan - which is a wireless broadband protocol. Not including this in
-             the metadata for now unless this proves to be necessary. These would start with 79.
-             61[0-5] is assigned to Orange. Also includes the new 9-digit mobile numbers that are
-             coming into effect on March 29, 2013. -->
+        <!-- Limited to the new 9-digit mobile ranges, which came into effect March 29th 2013. -->
         <nationalNumberPattern>
-          (?:
-            24|
-            55
-          )\d{6}|
-          6(?:
-            0(?:
-              2[0-35-9]|
-              3[3467]|
-              5[2457-9]
-            )|
-            1[0-5]\d|
-            2\d{2}|
-            [4-9]\d{2}|
-            3(?:
-              [14]0|
-              35
-            )
-          )\d{4}|
           6(?:
             [03]1|
             2[128]|
@@ -8865,14 +8061,16 @@
             6[2469]
           )\d{6}
         </nationalNumberPattern>
-        <exampleNumber>60201234</exampleNumber>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>601123456</exampleNumber>
       </mobile>
       <voip>
-        <nationalNumberPattern>78\d{6}</nationalNumberPattern>
-        <possibleNumberPattern>\d{8}</possibleNumberPattern>
-        <exampleNumber>78123456</exampleNumber>
+        <!-- Gamma concept network is being listed as VoIP as per
+             http://www.gammaconcept.com/internet%20sat.html -->
+        <nationalNumberPattern>722\d{6}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <exampleNumber>722123456</exampleNumber>
       </voip>
-      <!-- No national emergency numbers were located for Guinea. -->
     </territory>
 
     <!-- Guadeloupe -->
@@ -8920,12 +8118,6 @@
         </nationalNumberPattern>
         <exampleNumber>690301234</exampleNumber>
       </mobile>
-      <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>18</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Equatorial Guinea -->
@@ -8977,13 +8169,12 @@
         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
         <exampleNumber>900123456</exampleNumber>
       </premiumRate>
-      <!-- No national emergency numbers were located for Equatorial Guinea. -->
     </territory>
 
     <!-- Greece -->
     <!-- http://www.itu.int/oth/T0202000055/en -->
     <!-- http://en.wikipedia.org/wiki/%2B30 -->
-    <territory id="GR" countryCode="30" internationalPrefix="00">
+    <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
           <leadingDigits>
@@ -9099,18 +8290,6 @@
         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
         <exampleNumber>7012345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            00|
-            12|
-            66|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Guatemala -->
@@ -9157,26 +8336,6 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>19001112222</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            2[124-9]|
-            [57]\d{2}
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            10|
-            2[03]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Guam -->
@@ -9189,7 +8348,7 @@
         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Added 671 555/720/721 based on information from
+        <!-- Added 671 489/555/720/721 based on information from
              http://www.area-codes.com/area-code/area-code-671.asp -->
         <nationalNumberPattern>
           671(?:
@@ -9203,7 +8362,7 @@
             4(?:
               56|
               7[1-9]|
-              8[23678]
+              8[236-9]
             )|
             5(?:
               55|
@@ -9253,7 +8412,7 @@
             4(?:
               56|
               7[1-9]|
-              8[23678]
+              8[236-9]
             )|
             5(?:
               55|
@@ -9318,12 +8477,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Guinea-Bissau -->
@@ -9335,7 +8488,7 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[3567]\d{6}</nationalNumberPattern>
+        <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -9352,15 +8505,18 @@
         <exampleNumber>3201234</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>[5-7]\d{6}</nationalNumberPattern>
+        <nationalNumberPattern>
+          (?:
+            [5-7]\d|
+            9[012]
+          )\d{5}
+        </nationalNumberPattern>
         <exampleNumber>5012345</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
-        <nationalNumberPattern>11[378]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
+      <voip>
+        <nationalNumberPattern>40\d{5}</nationalNumberPattern>
+        <exampleNumber>4012345</exampleNumber>
+      </voip>
     </territory>
 
     <!-- Guyana -->
@@ -9419,33 +8575,11 @@
         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
         <exampleNumber>9008123</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>
-          0(?:
-            02|
-            171|
-            444|
-            7[67]7|
-            801|
-            9(?:
-              0[78]|
-              [2-47]
-            )
-          )
-       </nationalNumberPattern>
-       <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-       <exampleNumber>0801</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>91[123]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Hong Kong -->
     <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
-    <territory id="HK" countryCode="852" internationalPrefix="00">
+    <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{4})(\d{4})">
           <leadingDigits>
@@ -9529,14 +8663,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>81123456</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          99[29]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
    </territory>
 
     <!-- Honduras -->
@@ -9555,7 +8681,7 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Extra prefixes 228X and 2292 were added from numbers found online.  -->
+        <!-- Extra prefixes 227[01389], 228X and 2292 were added from numbers found online. -->
         <nationalNumberPattern>
           2(?:
             2(?:
@@ -9564,11 +8690,12 @@
               [23]\d|
               4[056]|
               5[57]|
+              7[01389]|
               8[0146-9]|
               9[012]
             )|
             4(?:
-              2|3-59]|
+              2[3-59]|
               3[13-689]|
               4[0-68]|
               5[1-35]
@@ -9603,18 +8730,14 @@
         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
         <exampleNumber>91234567</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>199</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>199</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Croatia -->
     <!-- http://www.itu.int/oth/T0202000032/en -->
     <!-- http://en.wikipedia.org/wiki/%2B385 -->
     <territory id="HR" countryCode="385" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
@@ -9725,17 +8848,6 @@
         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
         <exampleNumber>741234567</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            92
-          )|
-          9[34]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Haiti -->
@@ -9787,23 +8899,13 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>98901234</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>114</exampleNumber>
-      </shortCode>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <emergency>
-        <nationalNumberPattern>11[48]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>118</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Hungary -->
     <!-- http://www.itu.int/oth/T0202000061/en -->
     <territory id="HU" countryCode="36" internationalPrefix="00"
-               nationalPrefix="06" nationalPrefixFormattingRule="($FG)">
+               nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
+               mobileNumberPortableRegion="true">
       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
            by a Hungarian person and following the yellow pages) is to omit this when formatting.
            Yellow pages: www.aranyoldalak.hu -->
@@ -9869,16 +8971,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>40123456</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[457]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Indonesia -->
@@ -10097,24 +9189,20 @@
         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
         <exampleNumber>8001234567</exampleNumber>
       </tollFree>
-      <!-- The infomation below is provided by an Indonesian -->
+      <!-- The information below is provided by an Indonesian -->
       <premiumRate>
         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>8091234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>11[02389]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Ireland -->
     <!-- http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html -->
     <!-- http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf -->
     <territory id="IE" countryCode="353" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
+               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
           <leadingDigits>1</leadingDigits>
@@ -10282,14 +9370,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>8501234567</exampleNumber>
       </voicemail>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Israel -->
@@ -10299,7 +9379,8 @@
          (in Hebrew) -->
     <!-- Formatting practice following wikipedia, and government sites. -->
     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
-               nationalPrefix="0" nationalPrefixFormattingRule="$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="$NP$FG"
           pattern="([2-489])(\d{3})(\d{4})">
@@ -10444,31 +9525,17 @@
         <exampleNumber>771234567</exampleNumber>
       </voip>
       <uan>
-        <!-- 4-digit star numbers. -->
-        <nationalNumberPattern>[2-689]\d{3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>2250</exampleNumber>
-      </uan>
-      <voicemail>
-        <nationalNumberPattern>1599\d{6}</nationalNumberPattern>
-        <possibleNumberPattern>\d{10}</possibleNumberPattern>
-        <exampleNumber>1599123456</exampleNumber>
-      </voicemail>
-      <shortCode>
-        <nationalNumberPattern>1\d{3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>1455</exampleNumber>
-      </shortCode>
-      <emergency>
+        <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
+             voicemail" in the ITU document, but according to reports from businesses in Israel and
+             the Hebrew version of the wikipedia page, these are actually a router for business
+             calls, and incur a normal call cost on account of the caller. -->
         <nationalNumberPattern>
-          1(?:
-            0[012]|
-            12
-          )
+          [2-689]\d{3}|
+          1599\d{6}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
+        <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
+        <exampleNumber>1599123456</exampleNumber>
+      </uan>
     </territory>
 
     <!-- Isle of Man -->
@@ -10559,17 +9626,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5512345678</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>1\d{2}(?:\d{3})?</nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>150</exampleNumber>
-      </shortCode>
-      <emergency>
-        <!-- http://www.directory.im/directory_useful.aspx -->
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- India -->
@@ -10581,7 +9637,8 @@
          - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified
            here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
-               nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true" >
+               nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
+               mobileNumberPortableRegion="true">
        <availableFormats>
          <!-- Mobile numbers. -->
          <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
@@ -10592,7 +9649,7 @@
                4[0-389]|
                5[024-9]|
                6[0-35-9]|
-               7[0346-9]|
+               7|
                8[0-79]
              )|
              8(?:
@@ -10644,22 +9701,15 @@
                  5[45]|
                  6[5-9]|
                  7[679]|
-                 9[6-9]
+                 9[1-46-9]
                )|
                7(?:
-                 0[27-9]|
-                 3[5-9]|
-                 42|
-                 60|
-                 7[7-9]|
-                 8[1-9]|
-                 9[05-9]
+                 0[2-9]|
+                 [1-79]|
+                 8[1-9]
                )|
                8(?:
-                 [03][07-9]|
-                 14|
-                 2[7-9]|
-                 [4-7]|
+                 [0-7]|
                  9[013-9]
                )
              )|
@@ -10678,9 +9728,8 @@
                  5[1-9]
                )|
                3(?:
-                 [037-9]|
-                 4[1-9]|
-                 5[0-57-9]
+                 [0357-9]|
+                 4[1-9]
                )|
                [45]|
                6[02457-9]|
@@ -11068,14 +10117,13 @@
       </fixedLine>
       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
       <!-- The document titled "List of MSC codes" linked off
-           http://www.dot.gov.in/numbering_plan/numberplanindex.htm is the best source for these.
-           -->
+           http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
+           updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
       <mobile>
         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
              codes list, are added because SMS messages have been successfully sent to these
              numbers. It seems almost impossible to know for some of these numbers whether they are
-             land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309,
-             835[45].
+             land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309.
              New prefixes were added based on the document provided from mobile carriers:
              https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
         <nationalNumberPattern>
@@ -11115,14 +10163,11 @@
                 5[45]|
                 6[5-9]|
                 7[679]|
-                9[6-9]
+                9[1-46-9]
               )|
               7(?:
-                0[27-9]|
-                3[5-9]|
-                42|
-                6[03-9]|
-                [79]\d|
+                0[2-9]|
+                [1-79]\d|
                 8[1-9]
               )|
               8(?:
@@ -11145,9 +10190,8 @@
                 5[1-9]
               )|
               3(?:
-                [037-9]\d|
-                4[1-9]|
-                5[0-57-9]
+                [0357-9]\d|
+                4[1-9]
               )|
               [45]\d{2}|
               6[02457-9]\d|
@@ -11198,18 +10242,6 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>18603451234</exampleNumber>
       </uan>
-      <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 -->
@@ -11232,7 +10264,6 @@
         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
         <exampleNumber>3801234</exampleNumber>
       </mobile>
-      <!-- It seems that there are no emergency numbers for this island. -->
     </territory>
 
     <!-- Iraq -->
@@ -11278,40 +10309,71 @@
         <exampleNumber>7912345678</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <!-- No national emergency numbers were located for Iraq. -->
     </territory>
 
     <!-- Iran, Islamic Republic of -->
     <!-- http://en.wikipedia.org/wiki/%2B98 -->
     <!-- http://www.itu.int/oth/T0202000066/en -->
+    <!-- http://www.tct.ir/?siteid=1&pageid=195 -->
+    <!-- http://118.tct.ir/citycode.htm -->
     <territory id="IR" countryCode="98" internationalPrefix="00"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
       <availableFormats>
         <!-- Formatting follows wikipedia. -->
-        <numberFormat pattern="(21)(\d{3,5})">
-          <leadingDigits>21</leadingDigits>
+        <numberFormat pattern="(2[15])(\d{3,5})">
+          <!-- We exclude the 255 and 256 prefixes, which do not belong to Qom as of yet. -->
+          <leadingDigits>
+            2(?:
+              1|
+              5[0-47-9]
+            )
+          </leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
-        <numberFormat pattern="(21)(\d{3})(\d{3,4})">
-          <leadingDigits>21</leadingDigits>
+        <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
+          <leadingDigits>
+            2(?:
+              1|
+              5[0-47-9]
+            )
+          </leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
-        <numberFormat pattern="(2[16])(\d{4})(\d{4})">
-          <leadingDigits>2[16]</leadingDigits>
+        <numberFormat pattern="(2\d)(\d{4})(\d{4})">
+          <leadingDigits>
+            2(?:
+              [16]|
+              5[0-47-9]
+            )
+          </leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
           <leadingDigits>
             [13-9]|
-            2[02-9]
+            2[02-57-9]
           </leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
+          <leadingDigits>
+            [13-9]|
+            2[02-57-9]
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(\d{3})(\d{3})">
+          <leadingDigits>
+            [13-9]|
+            2[02-57-9]
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
       </availableFormats>
       <generalDesc>
         <nationalNumberPattern>
           [14-8]\d{6,9}|
-          [23]\d{5,9}|
+          [23]\d{4,9}|
           9(?:
             [1-4]\d{8}|
             9\d{2,8}
@@ -11320,24 +10382,107 @@
         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
+        <!-- We are following the more specific lengths specified in the communication in the ITU
+             doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
+             The prefixes have been verified by looking at the Persian telecommunications site.
+             22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
+             found on the website at http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
+             to be a typo. It seems Qom is moving to 025, but 0255 and 0256 have not yet been
+             migrated away from under this prefix - in the meantime, support for 253 has been added
+             since this has been found in numbers online. -->
         <nationalNumberPattern>
-          (?:
-            [145](?:
-              1[1-9]|
-              [2-9]\d
-            )\d{0,3}|
-            [23][1-9]\d{0,4}|
-            6[1-9]\d{1,4}|
-            [78]\d{2,5}
-          )\d{4}
+          1(?:
+            [13-589][12]|
+            [27][1-4]
+          )\d{7}|
+          2(?:
+            1\d{3,8}|
+            3[12]\d{7}|
+            4(?:
+              1\d{4,7}|
+              2\d{7}
+            )|
+            5(?:
+              1\d{3,7}|
+              [2356]\d{7}
+            )|
+            6\d{8}|
+            7[34]\d{7}|
+            [89][12]\d{7}
+          )|
+          3(?:
+            1(?:
+              1\d{4,7}|
+              2\d{7}
+            )|
+            2[1-4]\d{7}|
+            3(?:
+              [125]\d{7}|
+              4\d{6,7}
+            )|
+            4(?:
+              1\d{6,7}
+              [24-9]\d{7}
+            )|
+            5(?:
+              1\d{4,7}|
+              [23]\d{7}
+            )|
+            [6-9][12]\d{7}
+          )|
+          4(?:
+            [135-9][12]\d{7}|
+            2[1-467]\d{7}|
+            4(?:
+              1\d{4,7}|
+              [2-4]\d{7}
+            )
+          )|
+          5(?:
+            1(?:
+              1\d{4,7}|
+              2\d{7}
+            )|
+            2[89]\d{7}|
+            3[1-5]\d{7}|
+            4(?:
+              1\d{4,7}|
+              [2-8]\d{7}
+            )|
+            [5-7][12]\d{7}|
+            8[1245]\d{7}
+          )|
+          6(?:
+            1(?:
+              1\d{6,7}|
+              2\d{7}
+            )|
+            [347-9][12]\d{7}|
+            5(?:
+              1\d{7}|
+              2\d{6,7}
+            )|
+            6[1-6]\d{7}
+          )|
+          7(?:
+            [13589][12]|
+            2[1289]|
+            4[1-4]|
+            6[1-6]|
+            7[1-3]
+          )\d{7}|
+          8(?:
+            [145][12]|
+            3[124578]|
+            6[1256]|
+            7[1245]
+          )\d{7}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
+        <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
         <exampleNumber>2123456789</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>
-          9[1-3]\d{8}
-        </nationalNumberPattern>
+        <nationalNumberPattern>9[1-3]\d{8}</nationalNumberPattern>
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9123456789</exampleNumber>
       </mobile>
@@ -11363,22 +10508,12 @@
         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
         <exampleNumber>9990123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[025]|
-            25
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <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" countryCode="354" internationalPrefix="00">
+    <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{4})">
           <leadingDigits>[4-9]</leadingDigits>
@@ -11427,7 +10562,7 @@
       <mobile>
         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
         <nationalNumberPattern>
-          38[59]\d{6}|
+          38[589]\d{6}|
           (?:
             6(?:
               1[0-8]|
@@ -11452,6 +10587,9 @@
         <exampleNumber>6101234</exampleNumber>
       </mobile>
       <tollFree>
+        <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
+             numbers can be found online, and it is not clear what these are; the standard
+             definition would have them under the +800 country code instead of Iceland. -->
         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>8001234</exampleNumber>
@@ -11468,7 +10606,6 @@
       </voip>
       <voicemail>
         <nationalNumberPattern>
-          388\d{6}|
           (?:
             6(?:
               2[0-8]|
@@ -11484,18 +10621,15 @@
             95[48]
           )\d{4}
         </nationalNumberPattern>
-        <exampleNumber>388123456</exampleNumber>
+        <possibleNumberPattern>\d{7}</possibleNumberPattern>
+        <exampleNumber>6201234</exampleNumber>
       </voicemail>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Italy -->
     <!-- http://en.wikipedia.org/wiki/%2B39 -->
-    <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true">
+    <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- The leading zero for fixed numbers will be prepended before the matching of these
              regular expressions. -->
@@ -11741,46 +10875,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5512345678</exampleNumber>
       </voip>
-      <shortCode>
-        <!-- Later, when we have better support for short-codes, we could add the codes
-             used for MMS and SMS services here too. -->
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              [47]|
-              6\d{3}
-            )|
-            2\d{2}|
-            4(?:
-              82|
-              9\d{1,3}
-            )|
-            5(?:
-              00|
-              1[58]|
-              2[25]|
-              3[03]|
-              44
-            )|
-            86|
-            9(?:
-              2(?:
-                [01]\d{2}|
-                [2-9]\d
-              )|
-              4\d|
-              696
-            )
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>114</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[2358]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Jersey -->
@@ -11943,41 +11037,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5512345678</exampleNumber>
       </uan>
-      <shortCode>
-        <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
-        <nationalNumberPattern>
-          1(?:
-            00|
-            18\d{3}|
-            23|
-            4(?:
-              [14]|
-              28|
-              7\d
-            )|
-            5\d|
-            7(?:
-              0[12]|
-              [128]|
-              35?
-            )|
-            808|
-            9[135]
-          )|
-          23[234]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <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 -->
@@ -11990,7 +11049,7 @@
         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-489]. -->
+        <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
         <nationalNumberPattern>
           876(?:
             5(?:
@@ -12005,7 +11064,7 @@
               [23]\d|
               40|
               5[06]|
-              6[2-489]|
+              6[2-589]|
               7[05]|
               8[04]|
               9[4-9]
@@ -12088,11 +11147,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>11[09]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>119</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Jordan -->
@@ -12100,7 +11154,8 @@
     <!-- http://www.itu.int/oth/T020200006E/en -->
     <!-- http://en.wikipedia.org/wiki/%2B962 -->
     <territory id="JO" countryCode="962" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
           pattern="(\d)(\d{3})(\d{4})">
@@ -12254,35 +11309,14 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>88101234</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            09|
-            1[01]|
-            9[024-79]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>111</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            91
-          )|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </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" countryCode="81" internationalPrefix="010" nationalPrefix="0"
-               nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true" >
+               nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Toll-free, premium-rate and UAN numbers -->
         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
@@ -13250,18 +12284,14 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>570123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>11[09]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Kenya -->
     <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
     <!-- http://en.wikipedia.org/wiki/+254 -->
     <territory id="KE" countryCode="254" internationalPrefix="000"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{4,7})">
           <leadingDigits>[24-6]</leadingDigits>
@@ -13330,31 +12360,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>900223456</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <!-- Excluding SMS-only premium-rate short codes for now. -->
-        <nationalNumberPattern>
-          1(?:
-            0[09]|
-            1(?:
-              [06]|
-              9[0-2579]
-            )|
-            2[13]|
-            3[01]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>116</exampleNumber>
-      </shortCode>
-      <emergency>
-        <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
-        <nationalNumberPattern>
-          112|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Kyrgyzstan -->
@@ -13445,7 +12450,7 @@
       </fixedLine>
       <mobile>
         <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
-             prefix, and numbers have been found like this online.  -->
+             prefix, and numbers have been found like this online. -->
         <nationalNumberPattern>
           5[124-7]\d{7}|
           7(?:
@@ -13465,11 +12470,6 @@
       </tollFree>
       <!-- No premiumRate information can be found. -->
       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
-      <emergency>
-        <nationalNumberPattern>10[123]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>101</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cambodia -->
@@ -13499,49 +12499,54 @@
              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
              range beginning with 6 seems to include some numbers that are one digit longer as well.
-             -->
+             Allowing 238\d{6} based on information from Cambodia Yellow Pages. -->
         <nationalNumberPattern>
           (?:
             2[3-6]|
             3[2-6]|
             4[2-4]|
-            [567][2-5]
+            [5-7][2-5]
           )(?:
-            [2-47-9]|
+            [237-9]|
+            4[56]|
             5\d|
             6\d?
-          )\d{5}
+          )\d{5}|
+          238\d{6}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
-        <exampleNumber>23456789</exampleNumber>
+        <exampleNumber>23756789</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- Adding 86 and 87 from numbers found online, along with 88 (the 88 numbers seem to be
-             one digit longer as well.) Adding 97 followed by 7 digits as such numbers have been
-             found online. Adding 14 as Mobitel have informed us they are using this prefix. Adding
-             60[1-9] based on information received from Beeline, and 857 and 61 from Cellcard. 76
-             numbers seem now to be 9 digits long. -->
+        <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
+             Beeline uses 060.
+             Mobitel uses 01[1247].
+             Cellcard uses 0857 and 061.
+             Extra prefixes found online: 088, 097.
+             Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow
+             Pages. -->
         <nationalNumberPattern>
           (?:
-            (?:
-              1\d|
-              6[016-9]|
-              7(?:
-                [07-9]|
-                6\d
-              )
-            )[1-9]|
+            1(?:
+              [013-9]|
+              2\d?
+            )|
+            31\d|
+            6[016-9]|
+            7(?:
+              [07-9]|
+              6\d
+            )|
             8(?:
-              0[89]|
-              [134679]\d|
-              5[2-9]|
-              8\d{2}
+              [013-79]|
+              8\d
             )|
             9(?:
-              [0-589][1-9]|
-              [67][1-9]\d?
+              6\d|
+              7\d?|
+              [0-589]
             )
-          )\d{5}
+          )\d{6}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
         <exampleNumber>91234567</exampleNumber>
@@ -13567,15 +12572,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>1900123456</exampleNumber>
       </premiumRate>
-      <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>
     </territory>
 
     <!-- Kiribati -->
@@ -13612,22 +12608,6 @@
         </nationalNumberPattern>
         <exampleNumber>61234</exampleNumber>
       </mobile>
-      <shortCode>
-        <nationalNumberPattern>
-          10(?:
-            [0-8]|
-            5[01259]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>100</exampleNumber>
-      </shortCode>
-      <emergency>
-        <!-- www.tskl.net.ki/directory.pdf -->
-        <nationalNumberPattern>99[2349]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Comoros -->
@@ -13668,12 +12648,6 @@
         </nationalNumberPattern>
         <exampleNumber>9001234</exampleNumber>
       </premiumRate>
-      <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1091.html -->
-      <emergency>
-        <nationalNumberPattern>1[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saint Kitts and Nevis -->
@@ -13748,22 +12722,9 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
-    <!--  Korea, Dem. People's Rep. of -->
+    <!-- Korea, Dem. People's Rep. of -->
     <!-- http://en.wikipedia.org/wiki/%2B850 -->
     <territory id="KP" countryCode="850" internationalPrefix="00|99"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
@@ -13822,8 +12783,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>1921234567</exampleNumber>
       </mobile>
-      <!-- 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 -->
     </territory>
 
     <!-- Korea (Rep. of) -->
@@ -13839,7 +12798,8 @@
             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
-               nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG">
+               nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
           <leadingDigits>
@@ -14038,16 +12998,11 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>15441234</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>11[29]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Kuwait -->
     <!-- http://www.itu.int/oth/T0202000073/en -->
-    <territory id="KW" countryCode="965" internationalPrefix="00">
+    <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Format is from ITU. -->
         <numberFormat pattern="(\d{4})(\d{3,4})">
@@ -14060,9 +13015,7 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>
-          [12569]\d{6,7}
-        </nationalNumberPattern>
+        <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -14093,7 +13046,7 @@
         <nationalNumberPattern>
           (?:
             5(?:
-              1[0-2]|
+              1[0-35]|
               [05]\d
             )|
             6(?:
@@ -14107,7 +13060,8 @@
               0[09]|
               4[049]|
               6[069]|
-              [79]\d
+              [79]\d|
+              88
             )
           )\d{5}
         </nationalNumberPattern>
@@ -14115,21 +13069,6 @@
         <exampleNumber>50012345</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-           [02-9]\d|
-           1[013-9]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>177</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Cayman Islands -->
@@ -14238,11 +13177,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Kazakhstan -->
@@ -14374,10 +13308,11 @@
         <exampleNumber>7123456789</exampleNumber>
       </fixedLine>
       <mobile>
-        <!-- Added 776, apparently assigned to Beeline. -->
+        <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
         <nationalNumberPattern>
           7(?:
             0[01257]|
+            47|
             6[02-4]|
             7[15-8]|
             85
@@ -14397,16 +13332,6 @@
         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
         <exampleNumber>7511234567</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[123]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Lao People's Dem. Rep. -->
@@ -14457,12 +13382,6 @@
         <exampleNumber>2023123456</exampleNumber>
       </mobile>
       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
-        <nationalNumberPattern>19[015]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>190</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Lebanon -->
@@ -14540,18 +13459,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>80123456</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            40|
-            75
-          )|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saint Lucia -->
@@ -14636,20 +13543,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Liechtenstein -->
@@ -14798,41 +13691,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>7011234</exampleNumber>
       </personalNumber>
-      <!-- Information for short codes and emergency numbers comes from:
-           http://www.llv.li/pdf-llv-ak-shortnumbers_20110331.pdf -->
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            145|
-            4(?:
-              [0357]|
-              14
-            )|
-            50\d{4}|
-            6(?:
-              00|
-              [1-4]
-            )|
-            75|
-            8(?:
-              1[128]|
-              7
-            )
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{7}</possibleNumberPattern>
-        <exampleNumber>1600</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[278]|
-            44
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Sri Lanka -->
@@ -14873,11 +13731,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>712345678</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>11[0189]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>119</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Liberia -->
@@ -14952,15 +13805,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>332001234</exampleNumber>
       </voip>
-      <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>
     </territory>
 
     <!-- Lesotho -->
@@ -14988,13 +13832,6 @@
         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
         <exampleNumber>80021234</exampleNumber>
       </tollFree>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Lithuania -->
@@ -15003,7 +13840,8 @@
          both 0 and 8 when parsing until this switch is complete. -->
     <territory id="LT" countryCode="370" internationalPrefix="00"
                nationalPrefix="8" nationalPrefixForParsing="[08]"
-               nationalPrefixFormattingRule="($NP-$FG)">
+               nationalPrefixFormattingRule="($NP-$FG)"
+               nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
       <!-- National Prefix formatting rule from www.yellowpages.lt -->
       <availableFormats>
         <!-- Two-digit area codes -->
@@ -15085,21 +13923,6 @@
         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
         <exampleNumber>70712345</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          0(?:
-            11?|
-            22?|
-            33?
-          )|
-          1(?:
-            0[123]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Luxembourg -->
@@ -15107,7 +13930,7 @@
          -->
     <territory id="LU" countryCode="352" internationalPrefix="00"
                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
-               carrierCodeFormattingRule="$CC $FG">
+               carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Patterns overlap because of variable number length. -->
         <numberFormat pattern="(\d{2})(\d{3})">
@@ -15284,26 +14107,28 @@
         <exampleNumber>70123456</exampleNumber>
       </personalNumber>
       <voip>
-        <nationalNumberPattern>20\d{2,8}</nationalNumberPattern>
+        <!-- The document says the normal length will be 8 digits, but many numbers found online
+             deviate from that. The prefixes from the following document have been added:
+             http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
+             201 has also been added since a diallable number was found online, and it says in
+             http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
+             numbers will be issued that begin with 200, numbers beginning with 201 will be issued
+             one at a time, and 202-209 in blocks. -->
+        <nationalNumberPattern>
+          20(?:
+            1\d{5}|
+            [2-689]\d{1,7}
+          )
+        </nationalNumberPattern>
         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
-        <exampleNumber>2012345</exampleNumber>
+        <exampleNumber>20201234</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>12\d{3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>12123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[23]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Latvia -->
     <!-- http://www.itu.int/oth/T0202000076/en -->
     <!-- http://en.wikipedia.org/wiki/+371 -->
-    <territory id="LV" countryCode="371" internationalPrefix="00">
+    <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
           <format>$1 $2 $3</format>
@@ -15333,14 +14158,6 @@
         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
         <exampleNumber>81123456</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          0[123]|
-          112
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
@@ -15379,15 +14196,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>912345678</exampleNumber>
       </mobile>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>193</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Morocco -->
@@ -15395,7 +14203,8 @@
     <!-- http://www.itu.int/oth/T0202000090/en -->
     <!-- http://en.wikipedia.org/wiki/+212 -->
     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
-               nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
+               nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([56]\d{2})(\d{6})">
           <leadingDigits>
@@ -15494,16 +14303,15 @@
       </fixedLine>
       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
       <mobile>
-        <!-- Prefixes 60[1-578], 62[0147-9], 63[04-8] and 68[01] are from numbers found online,
-             bug-reports, and information provided directly by the carriers. -->
+        <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01], 698 are from numbers found
+             online, bug-reports, and information provided directly by the carriers. -->
         <nationalNumberPattern>
           6(?:
             0[0-8]|
-            [14-7]\d|
-            2[0-46-9]|
-            3[03-8]|
+            [124-7]\d|
+            3[013-8]|
             8[01]|
-            99
+            9[89]
           )\d{6}
         </nationalNumberPattern>
         <exampleNumber>650123456</exampleNumber>
@@ -15516,16 +14324,6 @@
         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
         <exampleNumber>891234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            [59]|
-            77
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Monaco -->
@@ -15582,23 +14380,14 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>90123456</exampleNumber>
       </tollFree>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            [578]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Moldova, Rep. of -->
     <!-- http://www.itu.int/oth/T020200008C/en -->
     <!-- http://en.anrceti.md -->
     <territory id="MD" countryCode="373" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG" >
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
           <leadingDigits>
@@ -15692,41 +14481,6 @@
         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
         <exampleNumber>30123456</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              [79]|
-              6(?:
-                000|
-                1(?:
-                  11|
-                  23
-                )
-              )|
-              8\d
-            )|
-            4\d{3}|
-            5[0-3]\d|
-            6[0-389]\d|
-            8\d{2}|
-            9(?:
-              0[04-9]|
-              [1-4]\d
-            )
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>116000</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          90[123]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Montenegro -->
@@ -15840,32 +14594,41 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>77273012</exampleNumber>
       </uan>
-      <shortCode>
+    </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" countryCode="590" internationalPrefix="00" nationalPrefix="0">
+      <!-- Formatting rules borrowed from Guadeloupe. -->
+      <generalDesc>
+        <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
+        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+      </generalDesc>
+      <fixedLine>
         <nationalNumberPattern>
-          1(?:
-            16\d{3}|
-            2(?:
-              [015-9]|
-              \d{2}
-            )|
-            [0135]\d{2}|
-            4\d{2,3}|
-            9\d{3}
-          )
+          590(?:
+            [02][79]|
+            13|
+            5[0-268]|
+            [78]7
+          )\d{4}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>1011</exampleNumber>
-      </shortCode>
-      <emergency>
+        <exampleNumber>590271234</exampleNumber>
+      </fixedLine>
+      <mobile>
+        <!-- Any ranges assigned from
+             http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
+             Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
+             them. -->
         <nationalNumberPattern>
-          1(?:
-            12|
-            2[234]
-          )
+          690(?:
+            0[0-7]|
+            [1-9]\d
+          )\d{4}
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
+        <exampleNumber>690301234</exampleNumber>
+      </mobile>
     </territory>
 
     <!-- Madagascar -->
@@ -15919,53 +14682,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>221234567</exampleNumber>
       </voip>
-      <emergency>
-        <!-- http://www.commerce.gov.mg/index.php/infos-services -->
-        <nationalNumberPattern>11?[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>117</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" countryCode="590" internationalPrefix="00" nationalPrefix="0">
-      <!-- Formatting rules borrowed from Guadeloupe. -->
-      <generalDesc>
-        <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
-      </generalDesc>
-      <fixedLine>
-        <nationalNumberPattern>
-          590(?:
-            [02][79]|
-            13|
-            5[0-268]|
-            [78]7
-          )\d{4}
-        </nationalNumberPattern>
-        <exampleNumber>590271234</exampleNumber>
-      </fixedLine>
-      <mobile>
-        <!-- Any ranges assigned from
-             http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
-             Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
-             them. -->
-        <nationalNumberPattern>
-          690(?:
-            0[0-7]|
-            [1-9]\d
-          )\d{4}
-        </nationalNumberPattern>
-        <exampleNumber>690301234</exampleNumber>
-      </mobile>
-      <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>18</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Marshall Islands -->
@@ -16006,14 +14722,13 @@
         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
         <exampleNumber>6351234</exampleNumber>
       </voip>
-      <!-- Only fixed-line numbers (625 4111 and 625 8666) can be found instead of short Emergency
-           numbers. -->
     </territory>
 
     <!-- Macedonia, Former Yugoslav Rep. of -->
     <!-- http://www.itu.int/oth/T02020000CE/en -->
     <territory id="MK" countryCode="389" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Formats follow wikipedia. -->
         <numberFormat pattern="(2)(\d{3})(\d{4})">
@@ -16084,16 +14799,6 @@
         </nationalNumberPattern>
         <exampleNumber>80123456</exampleNumber>
       </sharedCost>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            9[234]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mali -->
@@ -16101,26 +14806,38 @@
     <!-- http://crt-mali.org/pdf/plan_num -->
     <territory id="ML" countryCode="223" internationalPrefix="00">
       <availableFormats>
-        <numberFormat pattern="([246-8]\d)(\d{2})(\d{2})(\d{2})">
+        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
+          <leadingDigits>[246-9]</leadingDigits>
           <format>$1 $2 $3 $4</format>
         </numberFormat>
+        <!-- Formatting some short numbers as a block. -->
+        <numberFormat pattern="(\d{4})">
+          <leadingDigits>
+            67|
+            74
+          </leadingDigits>
+          <intlFormat>NA</intlFormat>
+          <format>$1</format>
+        </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[246-8]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- 21 25 seems a common pattern based on online searches. -->
+        <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
+             confirmed by searches online. -->
         <nationalNumberPattern>
           (?:
             2(?:
               0(?:
                 2[0-589]|
-                7[027-9]
+                7\d
               )|
               1(?:
                 2[5-7]|
-                [3-689]\d
+                [3-689]\d|
+                7[2-4689]
               )
             )|
             44[239]\d
@@ -16131,8 +14848,13 @@
       <mobile>
         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
              document (which is very stale). All mobile numbers starting with 7 are now Orange.
-             Includes 6x from Malitel IR21. -->
-        <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
+             Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
+             reported by open-source users, although the exact possible second digits are uncertain.
+             -->
+        <nationalNumberPattern>
+          [67]\d{7}|
+          9[0-25-9]\d{6}
+        </nationalNumberPattern>
         <exampleNumber>65012345</exampleNumber>
       </mobile>
       <tollFree>
@@ -16141,11 +14863,6 @@
         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
         <exampleNumber>80012345</exampleNumber>
       </tollFree>
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
    </territory>
 
     <!-- Myanmar -->
@@ -16319,11 +15036,6 @@
         <exampleNumber>13331234</exampleNumber>
       </voip>
       <!-- No information on other types of phone numbers for Myanmar has been found. -->
-      <emergency>
-        <nationalNumberPattern>199</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>199</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mongolia -->
@@ -16424,11 +15136,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>75123456</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>10[0-3]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>102</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Macao, China -->
@@ -16459,14 +15166,9 @@
         <exampleNumber>66123456</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
-    <!--  Northern Mariana Islands -->
+    <!-- Northern Mariana Islands -->
     <!-- http://www.itu.int/oth/T02020000EE/en -->
     <!-- www.cnmiphonebook.com/ -->
     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
@@ -16569,12 +15271,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://www.dps.gov.mp/ -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Martinique (French Dept. of) -->
@@ -16618,17 +15314,6 @@
       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
            too. -->
-      <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            [578]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mauritania -->
@@ -16667,7 +15352,8 @@
             4(?:
               4\d|
               6[0457-9]|
-              7[4-9]
+              7[4-9]|
+              8[01346-8]
             )
           )\d{5}
         </nationalNumberPattern>
@@ -16677,12 +15363,6 @@
         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
         <exampleNumber>80012345</exampleNumber>
       </tollFree>
-      <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
-      <emergency>
-        <nationalNumberPattern>1[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Montserrat -->
@@ -16733,30 +15413,19 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <emergency>
-        <nationalNumberPattern>
-          9(?:
-            11|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Malta -->
     <!-- www.itu.int/oth/T0202000084/en -->
     <!-- www.mca.org.mt (Numbering link in the LHS menu - has more up-to-date allocations) -->
-    <territory id="MT" countryCode="356" internationalPrefix="00">
+    <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{4})(\d{4})">
           <format>$1 $2</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[2579]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -16779,7 +15448,10 @@
               [79]\d{2}
             )|
             9(?:
-              2[13]\d|
+              2(?:
+               1[01]|
+               31
+              )|
               696|
               8(?:
                 1[1-3]|
@@ -16796,56 +15468,76 @@
         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
         <exampleNumber>71171234</exampleNumber>
       </pager>
+      <tollFree>
+        <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
+        <exampleNumber>80071234</exampleNumber>
+      </tollFree>
       <premiumRate>
         <nationalNumberPattern>
-          50(?:
+          5(?:
             0(?:
-              3[1679]|
-              4\d
+              0(?:
+                37|
+                43
+              )|
+              6\d{2}|
+              70\d|
+              9[0168]
             )|
-            [169]\d{2}|
-            7[06]\d
+            [12]\d0[1-5]
           )\d{3}
         </nationalNumberPattern>
-        <exampleNumber>50031234</exampleNumber>
+        <exampleNumber>50037123</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
+      <voip>
+        <!-- In the plan as Non-PATS ECS. -->
+        <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
+        <exampleNumber>35501234</exampleNumber>
+      </voip>
+      <uan>
+        <!-- Using this for governmental numbers. -->
+        <nationalNumberPattern>501\d{5}</nationalNumberPattern>
+        <exampleNumber>50112345</exampleNumber>
+      </uan>
     </territory>
 
     <!-- Mauritius -->
     <!-- http://www.icta.mu/telecommunications/numbering.htm -->
-    <territory id="MU" countryCode="230" internationalPrefix="0(?:[2-7]0|33)"
+    <!-- Preferred international prefix is expected to standardize on just '00' -->
+    <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
                preferredInternationalPrefix="020">
       <availableFormats>
-        <numberFormat pattern="([2-9]\d{2})(\d{4})">
+        <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
+          <leadingDigits>[2-46-9]</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <numberFormat pattern="(5\d{3})(\d{4})">
+          <leadingDigits>5</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
-        <possibleNumberPattern>\d{7}</possibleNumberPattern>
+        <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
+        <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Wireless local loop numbers are considered to be fixed, since there is almost no
-             roaming capability. 26X prefixes were added after numbers containing them marked as
-             "landline" were found online. These are also mentioned on
-             http://www.wtng.info/wtng-230-mu.html. -->
+        <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
         <nationalNumberPattern>
           (?:
             2(?:
-              [034789]\d|
+              [03478]\d|
               1[0-7]|
               6[1-69]
             )|
             4(?:
-              [013-8]\d|
+              [013568]\d|
               2[4-7]
             )|
-            [56]\d{2}|
+            5(
+              44\d|
+              471
+            )|
+            6\d{2}|
             8(?:
               14|
               3[129]
@@ -16855,40 +15547,34 @@
         <exampleNumber>2012345</exampleNumber>
       </fixedLine>
       <mobile>
-        <!--Adding 92 as SMS messages have been successfully sent to this prefix. 820 has also been
-            added based on a report from Orange. -->
         <nationalNumberPattern>
-          (?:
-            25\d|
+          5(?:
+            2[59]\d|
             4(?:
-              2[12389]|
+              2[1-389]|
+              4\d|
+              7[1-9]|
               9\d
             )|
             7\d{2}|
             8(?:
-              20|
+              [256]\d|
               7[15-8]
             )|
-            9[1-8]\d
+            9[0-8]\d
           )\d{4}
         </nationalNumberPattern>
-        <exampleNumber>2512345</exampleNumber>
+        <possibleNumberPattern>\d{8}</possibleNumberPattern>
+        <exampleNumber>52512345</exampleNumber>
       </mobile>
-      <pager>
-        <nationalNumberPattern>
-          2(?:
-            1[89]|
-            2\d
-          )\d{4}
-        </nationalNumberPattern>
-        <exampleNumber>2181234</exampleNumber>
-      </pager>
       <tollFree>
         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
+        <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>8001234</exampleNumber>
       </tollFree>
       <premiumRate>
         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
+        <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>3012345</exampleNumber>
       </premiumRate>
       <voip>
@@ -16898,28 +15584,9 @@
             9\d
           )\d{4}
         </nationalNumberPattern>
+        <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>3201234</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1[0-36-9]|
-            [02-9]\d|
-            \d{3,4}
-          )|
-          8\d{3}
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>995</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          11[45]|
-          99\d
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Maldives -->
@@ -16996,26 +15663,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9001234567</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            [19]0|
-            23
-          )
-          </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            02|
-            19
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>102</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Malawi -->
@@ -17051,7 +15698,7 @@
       </generalDesc>
       <fixedLine>
         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
-             been found so this is being retained for now.  It is possible however that these may be
+             been found so this is being retained for now. It is possible however that these may be
              old-format mobile numbers. -->
         <nationalNumberPattern>
           (?:
@@ -17073,16 +15720,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>991234567</exampleNumber>
       </mobile>
-      <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>
     </territory>
 
     <!-- Mexico -->
@@ -17095,7 +15732,8 @@
                nationalPrefixForParsing="0[12]|04[45](\d{10})"
                nationalPrefixTransformRule="1$1"
                nationalPrefixFormattingRule="$NP $FG"
-               nationalPrefixOptionalWhenFormatting="true">
+               nationalPrefixOptionalWhenFormatting="true"
+               leadingZeroPossible="true" mobileNumberPortableRegion="true">
       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
            numbers, regardless of whether they are written in international format (leading 1) or
@@ -17303,21 +15941,13 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9001234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          06[568]|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>066</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Malaysia -->
     <!-- http://en.wikipedia.org/wiki/%2B60 -->
     <!-- http://www.skmm.gov.my -->
     <territory id="MY" countryCode="60" internationalPrefix="00"
-               nationalPrefix="0">
+               nationalPrefix="0" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="$NP$FG"
           pattern="([4-79])(\d{3})(\d{4})">
@@ -17404,14 +16034,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>1541234567</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          999
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mozambique -->
@@ -17461,24 +16083,6 @@
       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
            a 9 are premium rate, but no online examples can be found of any of these so they are
            omitted for the time-being. -->
-      <shortCode>
-        <nationalNumberPattern>1[02-5]\d{2}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>1011</exampleNumber>
-      </shortCode>
-      <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 -->
@@ -17599,7 +16203,7 @@
             )
           )\d{4}
         </nationalNumberPattern>
-        <exampleNumber>612012345</exampleNumber>
+        <exampleNumber>61221234</exampleNumber>
       </fixedLine>
       <mobile>
         <!-- Includes the Switch CDMA Service. -->
@@ -17627,37 +16231,25 @@
         </nationalNumberPattern>
         <exampleNumber>88612345</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1\d{3}|
-          9(?:
-            3111|
-            \d{2}
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <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) -->
     <!-- http://www.itu.int/oth/T0202000098/en -->
+    <!-- http://www.opt.nc -->
     <territory id="NC" countryCode="687" internationalPrefix="00">
       <availableFormats>
         <!-- From www.1012.nc, the local yellow pages. -->
         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
+          <!-- We exclude short-codes here so they are formatted as a block -->
+          <leadingDigits>
+            [2-46-9]|
+            5[0-4]
+          </leadingDigits>
           <format>$1.$2.$3</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[2-47-9]\d{5}</nationalNumberPattern>
+        <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
         <possibleNumberPattern>\d{6}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -17675,6 +16267,7 @@
       <mobile>
         <nationalNumberPattern>
           (?:
+            5[0-4]|
             [79]\d|
             8[0-79]
           )\d{4}
@@ -17682,41 +16275,21 @@
         <exampleNumber>751234</exampleNumber>
       </mobile>
       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
+      <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
+           document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
       <premiumRate>
         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
         <exampleNumber>366711</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <!-- OPT: Office des Postes et Télécommunications de Nouvelle Calédonie -->
-        <nationalNumberPattern>
-          10(?:
-            0[06]|
-            1[02-46]|
-            20|
-            3[0125]|
-            42|
-            5[058]|
-            77
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>1000</exampleNumber>
-      </shortCode>
-      <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
-      <emergency>
-        <nationalNumberPattern>1[5-8]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Niger -->
     <!-- http://www.itu.int/oth/T020200009B/en -->
     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
       <availableFormats>
-        <numberFormat pattern="([029]\d)(\d{2})(\d{2})(\d{2})">
+        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
           <leadingDigits>
-            [29]|
+            [289]|
             09
           </leadingDigits>
           <format>$1 $2 $3 $4</format>
@@ -17727,7 +16300,7 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[029]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -17755,8 +16328,13 @@
       </fixedLine>
       <mobile>
         <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the
-             97 prefix, and Orange use 92. -->
-        <nationalNumberPattern>9[0-46-9]\d{6}</nationalNumberPattern>
+             89 and 97 prefixes, and Orange use 92. -->
+        <nationalNumberPattern>
+          (?:
+            89|
+            9[0-46-9]
+          )\d{6}
+        </nationalNumberPattern>
         <exampleNumber>93123456</exampleNumber>
       </mobile>
       <tollFree>
@@ -17767,7 +16345,6 @@
         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
         <exampleNumber>09123456</exampleNumber>
       </premiumRate>
-      <!-- No emergency numbers information can be found. -->
     </territory>
 
     <!-- Norfolk Island -->
@@ -17808,24 +16385,13 @@
         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
         <exampleNumber>381234</exampleNumber>
       </mobile>
-      <emergency>
-        <!-- http://www.discovernorfolkisland.com/norfolk/ -->
-        <nationalNumberPattern>
-          9(?:
-            11|
-            55|
-            77
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Nigeria -->
     <!-- http://www.itu.int/oth/T020200009C/en -->
     <territory id="NG" countryCode="234" internationalPrefix="009"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
           <leadingDigits>[129]</leadingDigits>
@@ -17999,11 +16565,6 @@
         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
         <exampleNumber>7001234567</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>199</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>199</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Nicaragua -->
@@ -18015,7 +16576,7 @@
         </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[128]\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>[1258]\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -18023,25 +16584,26 @@
         <exampleNumber>21234567</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>8\d{7}</nationalNumberPattern>
+        <!-- Online users have reported seeing 5500 used by Claro; until we can find actual numbers
+             or any documentation about it, we restrict this pattern to this prefix exactly. -->
+        <nationalNumberPattern>
+          5500\d{4}|
+          8\d{7}
+        </nationalNumberPattern>
         <exampleNumber>81234567</exampleNumber>
       </mobile>
       <tollFree>
         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
         <exampleNumber>18001234</exampleNumber>
       </tollFree>
-      <emergency>
-        <nationalNumberPattern>118</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>118</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Netherlands -->
     <!-- http://en.wikipedia.org/wiki/%2B31 -->
     <!-- http://www.opta.nl/en/numbers/search-for-numbers -->
     <territory id="NL" countryCode="31" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
           <leadingDigits>
@@ -18051,7 +16613,7 @@
             4[0356]|
             5[0358]|
             7|
-            8[458]
+            8[4578]
           </leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
@@ -18129,7 +16691,7 @@
       <premiumRate>
         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
-        <exampleNumber>9001234</exampleNumber>
+        <exampleNumber>9061234</exampleNumber>
       </premiumRate>
       <voip>
         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
@@ -18168,26 +16730,13 @@
         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
         <exampleNumber>14020</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>18\d{2}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>1833</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Norway -->
     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
-    <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
+    <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
-               mainCountryForCode="true">
+               mainCountryForCode="true" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
           <leadingDigits>[489]</leadingDigits>
@@ -18279,11 +16828,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>81212345</exampleNumber>
       </voicemail>
-      <emergency>
-        <nationalNumberPattern>11[023]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Nepal -->
@@ -18349,29 +16893,19 @@
         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
         <exampleNumber>14567890</exampleNumber>
       </fixedLine>
-      <!-- There is no definitive source of information for mobile numbers in Nepal. The infomation
+      <!-- There is no definitive source of information for mobile numbers in Nepal. The information
            here is collected by searching the Internet. -->
       <mobile>
         <nationalNumberPattern>
           9(?:
             7[45]|
-            8[0145]
+            8[01456]
           )\d{7}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9841234567</exampleNumber>
       </mobile>
       <!-- No information on other types of phone numbers for Nepal has been found. -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[0-3]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Nauru -->
@@ -18400,21 +16934,6 @@
         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
         <exampleNumber>5551234</exampleNumber>
       </mobile>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            23|
-            92
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[0-2]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Niue -->
@@ -18435,11 +16954,6 @@
         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
         <exampleNumber>1234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- New Zealand -->
@@ -18449,7 +16963,7 @@
          numbers and 050 "Nation-Wide Service". -->
     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
                preferredInternationalPrefix="00" nationalPrefix="0"
-               nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Pattern for fixed-line formats. -->
         <numberFormat pattern="([34679])(\d{3})(\d{4})">
@@ -18494,7 +17008,7 @@
           <format>$1 $2 $3</format>
         </numberFormat>
         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
-          <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900.  -->
+          <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
           <leadingDigits>
             2(?:
               10|
@@ -18565,16 +17079,11 @@
         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
         <exampleNumber>900123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>111</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>111</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Oman -->
     <!-- http://www.itu.int/oth/T020200009F/en -->
-    <territory id="OM" countryCode="968" internationalPrefix="00" >
+    <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(2\d)(\d{6})">
           <leadingDigits>2</leadingDigits>
@@ -18625,18 +17134,13 @@
         <exampleNumber>80071234</exampleNumber>
       </tollFree>
       <!-- No premiumRate information can be found. -->
-      <emergency>
-        <nationalNumberPattern>9999</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
-        <exampleNumber>9999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Panama -->
     <!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
     <!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
          digits long. -->
-    <territory id="PA" countryCode="507" internationalPrefix="00">
+    <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{4})">
           <leadingDigits>[1-57-9]</leadingDigits>
@@ -18779,16 +17283,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>8601234</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>10[2-4]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>102</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Peru -->
@@ -18797,7 +17291,7 @@
     <!-- http://www.assistbook.com/South%20America/Peru/widecodes -->
     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
-               preferredExtnPrefix=" Anexo ">
+               preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(1)(\d{7})">
           <leadingDigits>1</leadingDigits>
@@ -18864,16 +17358,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>80212345</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            05|
-            1[67]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>105</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
@@ -18926,12 +17410,6 @@
         </nationalNumberPattern>
         <exampleNumber>212345</exampleNumber>
       </mobile>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Papua New Guinea -->
@@ -18943,9 +17421,9 @@
           <leadingDigits>[1-689]</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
-        <numberFormat pattern="(7\d{2})(\d{2})(\d{3})">
+        <numberFormat pattern="(7\d{3})(\d{4})">
           <leadingDigits>7</leadingDigits>
-          <format>$1 $2 $3</format>
+          <format>$1 $2</format>
         </numberFormat>
       </availableFormats>
       <generalDesc>
@@ -18953,17 +17431,15 @@
         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
-        <!-- Fixed line patterns are from the numbering plan, with additions for 4XX since many
-             numbers in the yellow pages seem to be outside the 47X range prescribed by the plan.
-             The same applies to extra 64X numbers. -->
         <nationalNumberPattern>
           (?:
-            3\d{2}|
-            4[257]\d|
+            3[0-2]\d|
+            4[25]\d|
             5[34]\d|
-            6(?:
-              29|
-              4[1-9]
+            64[1-9]|
+            77(?:
+              [0-24]\d|
+              30
             )|
             85[02-46-9]|
             9[78]\d
@@ -18974,13 +17450,14 @@
       </fixedLine>
       <mobile>
         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
-             Wikipedia and 730 from online numbers. The prefix 70X is added since open-source users
-             have reported it as now being in use, although no real numbers can be found as of yet.
-             -->
+             Wikipedia. -->
         <nationalNumberPattern>
           (?:
             68|
-            7[0-36]\d
+            7(?:
+              [0-369]\d|
+              75
+            )
           )\d{5}
         </nationalNumberPattern>
         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
@@ -18997,196 +17474,195 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>2751234</exampleNumber>
       </voip>
-      <emergency>
-        <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers.
-             -->
-        <nationalNumberPattern>000</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>000</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Philippines -->
     <!-- http://en.wikipedia.org/wiki/%2B63 -->
-  <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
-    <availableFormats>
-      <!--Area code separated from number. Area codes found here:
-      http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
-      <numberFormat nationalPrefixFormattingRule="($NP$FG)"
-        pattern="(2)(\d{3})(\d{4})">
-        <leadingDigits>2</leadingDigits>
-        <format>$1 $2 $3</format>
-      </numberFormat>
-      <numberFormat nationalPrefixFormattingRule="($NP$FG)"
-        pattern="(\d{4})(\d{5})">
-        <leadingDigits>
-          3(?:
-            23|
-            39|
-            46
-          )|
-          4(?:
-            2[3-6]|
-            [35]9|
-            4[26]|
-            76
-          )|
-          5(?:
-            22|
-            44
-          )|
-          642|
-          8(?:
-            62|
-            8[245]
-          )
-        </leadingDigits>
-        <leadingDigits>
-          3(?:
-            230|
-            397|
-            461
-          )|
-          4(?:
-            2(?:
-              35|
-              [46]4|
-              51
+    <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
+      <availableFormats>
+        <!--Area code separated from number. Area codes found here:
+        http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="(2)(\d{3})(\d{4})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="(2)(\d{5})">
+          <leadingDigits>2</leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="(\d{4})(\d{4,6})">
+          <leadingDigits>
+            3(?:
+              23|
+              39|
+              46
             )|
-            396|
             4(?:
-              22|
-              63
+              2[3-6]|
+              [35]9|
+              4[26]|
+              76
             )|
-            59[347]|
-            76[15]
-          )|
-          5(?:
-            221|
-            446
-          )|
-          642[23]|
-          8(?:
-            622|
+            5(?:
+              22|
+              44
+            )|
+            642|
             8(?:
-              [24]2|
-              5[13]
+              62|
+              8[245]
             )
+          </leadingDigits>
+          <leadingDigits>
+            3(?:
+              230|
+              397|
+              461
+            )|
+            4(?:
+              2(?:
+                35|
+                [46]4|
+                51
+              )|
+              396|
+              4(?:
+                22|
+                63
+              )|
+              59[347]|
+              76[15]
+            )|
+            5(?:
+              221|
+              446
+            )|
+            642[23]|
+            8(?:
+              622|
+              8(?:
+                [24]2|
+                5[13]
+              )
+            )
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="(\d{5})(\d{4})">
+          <leadingDigits>
+            346|
+            4(?:
+              27|
+              9[35]
+            )|
+            883
+          </leadingDigits>
+          <leadingDigits>
+            3469|
+            4(?:
+              279|
+              9(?:
+                30|
+                56
+              )
+            )|
+            8834
+          </leadingDigits>
+          <format>$1 $2</format>
+        </numberFormat>
+        <!-- This rule is a fallback for the more specific area codes. -->
+        <numberFormat nationalPrefixFormattingRule="($NP$FG)"
+          pattern="([3-8]\d)(\d{3})(\d{4})">
+          <leadingDigits>[3-8]</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat nationalPrefixFormattingRule="$NP$FG"
+          pattern="(\d{3})(\d{3})(\d{4})">
+          <leadingDigits>
+            81|
+            9
+          </leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
+        <numberFormat pattern="(1800)(\d{3})(\d{4})">
+          <leadingDigits>1</leadingDigits>
+          <format>$1 $2 $3</format>
+        </numberFormat>
+        <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
+          <leadingDigits>1</leadingDigits>
+          <format>$1 $2 $3 $4</format>
+        </numberFormat>
+      </availableFormats>
+      <generalDesc>
+        <nationalNumberPattern>
+          2\d{5,7}|
+          [3-9]\d{7,9}|
+          1800\d{7,9}
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
+      </generalDesc>
+      <fixedLine>
+        <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
+             that have only 5 digits after the area code; plus it seems the 8822 area code is
+             followed by 6 digits, and 8842 by only 4. -->
+        <nationalNumberPattern>
+          2\d{5}(?:\d{2})?|
+          (?:
+            3[2-68]|
+            4[2-9]|
+            5[2-6]|
+            6[2-58]|
+            7[24578]|
+            8[2-8]
+          )\d{7}|
+          88(?:
+            22\d{6}|
+            42\d{4}
           )
-        </leadingDigits>
-        <format>$1 $2</format>
-      </numberFormat>
-      <numberFormat nationalPrefixFormattingRule="($NP$FG)"
-        pattern="(\d{5})(\d{4})">
-        <leadingDigits>
-          346|
-          4(?:
-            27|
-            9[35]
-          )|
-          883
-        </leadingDigits>
-        <leadingDigits>
-          3469|
-          4(?:
-            279|
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
+        <exampleNumber>21234567</exampleNumber>
+      </fixedLine>
+      <mobile>
+        <nationalNumberPattern>
+          (?:
+            81[37]|
             9(?:
-              30|
-              56
+              0[5-9]|
+              1[025-9]|
+              2[0-35-9]|
+              3[02-9]|
+              4[236-9]|
+              7[3479]|
+              89|
+              9[46-9]
             )
-          )|
-          8834
-        </leadingDigits>
-        <format>$1 $2</format>
-      </numberFormat>
-      <!-- This rule is a fallback for the more specific area codes. -->
-      <numberFormat nationalPrefixFormattingRule="($NP$FG)"
-        pattern="([3-8]\d)(\d{3})(\d{4})">
-        <leadingDigits>[3-8]</leadingDigits>
-        <format>$1 $2 $3</format>
-      </numberFormat>
-      <numberFormat nationalPrefixFormattingRule="$NP$FG"
-        pattern="(\d{3})(\d{3})(\d{4})">
-        <leadingDigits>
-          81|
-          9
-        </leadingDigits>
-        <format>$1 $2 $3</format>
-      </numberFormat>
-      <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
-      <numberFormat pattern="(1800)(\d{3})(\d{4})">
-        <leadingDigits>1</leadingDigits>
-        <format>$1 $2 $3</format>
-      </numberFormat>
-      <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
-        <leadingDigits>1</leadingDigits>
-        <format>$1 $2 $3 $4</format>
-      </numberFormat>
-    </availableFormats>
-    <generalDesc>
-      <nationalNumberPattern>
-        [2-9]\d{7,9}|
-        1800\d{7,9}
-      </nationalNumberPattern>
-      <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
-    </generalDesc>
-    <fixedLine>
-      <nationalNumberPattern>
-        (?:
-          2|
-          3[2-68]|
-          4[2-9]|
-          5[2-6]|
-          6[2-58]|
-          7[24578]|
-          8[2-8]
-        )\d{7}
-      </nationalNumberPattern>
-      <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
-      <exampleNumber>21234567</exampleNumber>
-    </fixedLine>
-    <mobile>
-      <nationalNumberPattern>
-        (?:
-          81[37]|
-          9(?:
-            0[5-9]|
-            1[025-9]|
-            2[0-35-9]|
-            3[02-9]|
-            4[236-9]|
-            7[3479]|
-            89|
-            9[46-9]
-          )
-        )\d{7}
-      </nationalNumberPattern>
-      <possibleNumberPattern>\d{10}</possibleNumberPattern>
-      <exampleNumber>9051234567</exampleNumber>
-    </mobile>
-    <!-- Information on toll-free numbers collected from searching the internet -->
-    <tollFree>
-      <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
-      <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
-      <exampleNumber>180012345678</exampleNumber>
-    </tollFree>
-    <!-- No information can be found about other types of numbers (such as premium rate) in the
-         Philippines. -->
-    <emergency>
-      <nationalNumberPattern>
-        11[27]|
-        911
-      </nationalNumberPattern>
-      <possibleNumberPattern>\d{3}</possibleNumberPattern>
-      <exampleNumber>117</exampleNumber>
-    </emergency>
-  </territory>
+          )\d{7}
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{10}</possibleNumberPattern>
+        <exampleNumber>9051234567</exampleNumber>
+      </mobile>
+      <!-- Information on toll-free numbers collected from searching the internet -->
+      <tollFree>
+        <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
+        <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
+        <exampleNumber>180012345678</exampleNumber>
+      </tollFree>
+      <!-- No information can be found about other types of numbers (such as premium rate) in the
+           Philippines. -->
+    </territory>
 
-  <!-- Pakistan -->
-  <!-- http://www.itu.int/oth/T02020000A1/en -->
-  <!-- http://en.wikipedia.org/wiki/%2B92 -->
+    <!-- Pakistan -->
+    <!-- http://www.itu.int/oth/T02020000A1/en -->
+    <!-- http://en.wikipedia.org/wiki/%2B92 -->
     <territory id="PK" countryCode="92" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
+               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
              formatted nicely by the AYTF. -->
@@ -19431,7 +17907,7 @@
       <uan>
         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
-             what type of number they are.  We exclude Azad Jammu, Kashmir and Northern Areas here
+             what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
              since no online example UANs can be found, and they have an "access code" at the start,
              making it difficult to guess what a UAN in these areas would look like. -->
         <nationalNumberPattern>
@@ -19478,19 +17954,6 @@
         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
         <exampleNumber>21111825888</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              22?|
-              5
-            )|
-            [56]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Poland -->
@@ -19499,7 +17962,7 @@
     <!--
     http://www.uke.gov.pl/uke/index.jsp?place=Lead24&news_cat_id=277&news_id=3791&layout=9&page=text
     (in Polish) -->
-    <territory id="PL" countryCode="48" internationalPrefix="00">
+    <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
           <leadingDigits>
@@ -19612,14 +18075,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>391234567</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          99[789]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
@@ -19643,11 +18098,6 @@
         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
         <exampleNumber>551234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Pitcairn Island -->
@@ -19712,13 +18162,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
-             http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Palestinian Authority -->
@@ -19798,7 +18241,7 @@
 
     <!-- Portugal -->
     <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
-    <territory id="PT" countryCode="351" internationalPrefix="00">
+    <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
              two digits in the first group; however, this doesn't seem to be majority usage based on
@@ -19885,11 +18328,6 @@
         </nationalNumberPattern>
         <exampleNumber>707123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Palau -->
@@ -19943,18 +18381,14 @@
         </nationalNumberPattern>
         <exampleNumber>6201234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Paraguay -->
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay -->
     <!-- http://www.itu.int/oth/T02020000A5/en -->
     <!-- http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html -->
-    <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0">
+    <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- CONATEL plan. -->
         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
@@ -20069,25 +18503,12 @@
         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
         <exampleNumber>201234567</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>1[1-4]\d</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>123</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          128|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Qatar -->
     <!-- http://www.itu.int/oth/T02020000AB/en -->
     <!-- http://wtng.info/wtng-qq.html -->
-    <territory id="QA" countryCode="974" internationalPrefix="00">
+    <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([28]\d{2})(\d{4})">
           <leadingDigits>[28]</leadingDigits>
@@ -20126,22 +18547,6 @@
         <exampleNumber>8001234</exampleNumber>
       </tollFree>
       <!-- No premiumRate information can be found. -->
-      <shortCode>
-        <nationalNumberPattern>
-          (?:
-            1|
-            20|
-            9[27]\d
-          )\d{2}
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <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) -->
@@ -20195,17 +18600,6 @@
         </nationalNumberPattern>
         <exampleNumber>810123456</exampleNumber>
       </sharedCost>
-      <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            [578]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Romania -->
@@ -20214,7 +18608,7 @@
     <!-- Extension prefix found online, confirmed by a Romanian. -->
     <territory id="RO" countryCode="40" internationalPrefix="00"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
-               preferredExtnPrefix=" int ">
+               preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
           <leadingDigits>[23]1</leadingDigits>
@@ -20271,7 +18665,16 @@
         <exampleNumber>211234567</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>7[1-8]\d{7}</nationalNumberPattern>
+        <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
+             numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
+             open-source report and confirmation by existence of such numbers online. -->
+        <nationalNumberPattern>
+          7(?:
+            000|
+            [1-8]\d{2}|
+            99\d
+          )\d{5}
+        </nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>712345678</exampleNumber>
       </mobile>
@@ -20303,18 +18706,14 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>372123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Serbia -->
     <!-- http://www.itu.int/oth/T02020000B9/en -->
     <!-- http://registar.ratel.rs/en/reg202 -->
     <territory id="RS" countryCode="381" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([23]\d{2})(\d{4,9})">
           <leadingDigits>
@@ -20426,27 +18825,6 @@
         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
         <exampleNumber>700123456</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            1(?:
-              [013-9]|
-              \d(2,4)
-            )|
-            [89]\d{1,4}
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>12345</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          9[234]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Russian Federation -->
@@ -20529,14 +18907,6 @@
         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
         <exampleNumber>8091234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          0[123]|
-          112
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Rwanda -->
@@ -20594,18 +18964,14 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>900123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saudi Arabia -->
     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
     <!-- http://www.itu.int/oth/T02020000B7/en -->
     <territory id="SA" countryCode="966" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
           <leadingDigits>[1-467]</leadingDigits>
@@ -20622,7 +18988,7 @@
         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
              the fact that no numbers of this form found online have a trunk prefix added. -->
         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
-          <leadingDigits>9</leadingDigits>
+          <leadingDigits>92</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
@@ -20650,11 +19016,11 @@
       </generalDesc>
       <fixedLine>
         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
-             is happening in May for area code 1 (parallel running ends July 13th, 2013) and then in
-             August for the other fixed-line numbers. -->
+             happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
+             August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
         <nationalNumberPattern>
-          (?:
-            11?\d|
+          11\d{7}|
+          1?(?:
             2[24-8]|
             3[35-8]|
             4[3-68]|
@@ -20689,40 +19055,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>920012345</exampleNumber>
       </sharedCost>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            16111|
-            9(?:
-              00|
-              1[89]|
-              9(?:
-                099|
-                22|
-                91
-              )
-            )
-          )|
-          9(
-            37|
-            8[6-8]|
-            9[2-6]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
-        <exampleNumber>937</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          9(?:
-            11|
-            9[7-9]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Solomon Islands -->
@@ -20783,32 +19115,6 @@
         <possibleNumberPattern>\d{5}</possibleNumberPattern>
         <exampleNumber>51123</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            0[02-79]|
-            1[12]|
-            2[0-26]|
-            4[189]|
-            68
-          )|
-          9(?:
-            [01]1|
-            22|
-            33|
-            55|
-            77|
-            88
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>100</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Seychelles -->
@@ -20860,29 +19166,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>6412345</exampleNumber>
       </voip>
-      <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]
-          )|
-          96\d{2}
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>100</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Sudan -->
@@ -20914,17 +19197,14 @@
         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
         <exampleNumber>911231234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Sweden -->
     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf -->
+    <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf -->
     <territory id="SE" countryCode="46" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
            http://gulasidorna.eniro.se -->
@@ -20998,6 +19278,11 @@
           <format>$1-$2 $3 $4</format>
           <intlFormat>$1 $2 $3 $4</intlFormat>
         </numberFormat>
+        <numberFormat pattern="(77)(\d{2})(\d{2})">
+          <leadingDigits>7</leadingDigits>
+          <format>$1-$2$3</format>
+          <intlFormat>$1 $2 $3</intlFormat>
+        </numberFormat>
         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
           <leadingDigits>20</leadingDigits>
           <format>$1-$2 $3</format>
@@ -21008,9 +19293,14 @@
           <format>$1-$2 $3 $4</format>
           <intlFormat>$1 $2 $3 $4</intlFormat>
         </numberFormat>
+        <numberFormat pattern="(9[034]\d)(\d{4})">
+          <leadingDigits>9[034]</leadingDigits>
+          <format>$1-$2</format>
+          <intlFormat>$1 $2</intlFormat>
+        </numberFormat>
       </availableFormats>
       <generalDesc>
-        <nationalNumberPattern>[1-9]\d{6,9}</nationalNumberPattern>
+        <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -21050,9 +19340,10 @@
             )\d{5,6}
           )|
           4(?:
-            [0246]\d{5,7}|
+            0[1-9]\d{4,6}|
+            [246]\d{5,7}|
             (?:
-              1[0-8]|
+              1[013-8]|
               3[0135]|
               5[14-79]|
               7[0-246-9]|
@@ -21072,7 +19363,8 @@
             9[01]
           )\d{5,6}|
           6(?:
-            [03]\d{5,7}|
+            0[1-9]\d{4,6}|
+            3\d{5,7}|
             (?:
               1[1-3]|
               2[0-4]|
@@ -21084,14 +19376,15 @@
               9[0-356]
             )\d{5,6}
           )|
-          8\d{6,8}|
+          8[1-9]\d{5,7}|
           9(?:
-            0\d{5,7}|
+            0[1-9]\d{4,6}|
             (?:
               1[0-68]|
               2\d|
-              3[02-59]|
-              [45][0-4]|
+              3[02-5]|
+              4[0-3]|
+              5[0-4]|
               [68][01]|
               7[0135-8]
             )\d{5,6}
@@ -21106,14 +19399,29 @@
         <exampleNumber>701234567</exampleNumber>
       </mobile>
       <pager>
-        <nationalNumberPattern>74\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
-        <exampleNumber>741234567</exampleNumber>
+        <exampleNumber>740123456</exampleNumber>
       </pager>
       <tollFree>
-        <nationalNumberPattern>20\d{4,7}</nationalNumberPattern>
+        <nationalNumberPattern>
+          20(?:
+            0(?:
+              0\d{2}|
+              [1-9](?:
+                0\d{1,4}|
+                [1-9]\d{4}
+              )
+            )|
+            1(?:
+              0\d{4}|
+              [1-9]\d{4,5}
+            )|
+            [2-9]\d{5}
+          )
+        </nationalNumberPattern>
         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
-        <exampleNumber>201234567</exampleNumber>
+        <exampleNumber>20123456</exampleNumber>
       </tollFree>
       <premiumRate>
         <nationalNumberPattern>
@@ -21121,34 +19429,71 @@
             00|
             39|
             44
-          )\d{7}
+          )(?:
+            1(?:
+              [0-26]\d{5}|
+              [3-57-9]\d{2}
+            )|
+            2(?:
+              [0-2]\d{5}|
+              [3-9]\d{2}
+            )|
+            3(?:
+              [0139]\d{5}|
+              [24-8]\d{2}
+            )|
+            4(?:
+              [045]\d{5}|
+              [1-36-9]\d{2}
+            )|
+            5(?:
+              5\d{5}|
+              [0-46-9]\d{2}
+            )|
+            6(?:
+              [679]\d{5}|
+              [0-58]\d{2}
+            )|
+            7(?:
+              [078]\d{5}|
+              [1-69]\d{2}
+            )|
+            8(?:
+              [578]\d{5}|
+              [0-469]\d{2}
+            )
+          )
         </nationalNumberPattern>
-        <possibleNumberPattern>\d{10}</possibleNumberPattern>
+        <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
         <exampleNumber>9001234567</exampleNumber>
       </premiumRate>
       <sharedCost>
-        <nationalNumberPattern>77\d{7}</nationalNumberPattern>
-        <possibleNumberPattern>\d{9}</possibleNumberPattern>
+        <nationalNumberPattern>
+          77(?:
+            0(?:
+              0\d{2}|
+              [1-9](?:
+                0\d|
+                [1-9]\d{4}
+              )
+            )|
+            [1-6][1-9]\d{5}
+          )
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
         <exampleNumber>771234567</exampleNumber>
       </sharedCost>
       <personalNumber>
-        <nationalNumberPattern>75\d{7}</nationalNumberPattern>
+        <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>751234567</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          90000
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Singapore -->
     <!-- http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx -->
-    <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d">
+    <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([3689]\d{3})(\d{4})">
           <leadingDigits>
@@ -21217,39 +19562,27 @@
         <possibleNumberPattern>\d{11}</possibleNumberPattern>
         <exampleNumber>70001234567</exampleNumber>
       </uan>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            [0136]\d{2}|
-            [89](?:
-              [1-9]\d|
-              0[1-9]
-            )|
-            [57]\d{2,3})|
-          99[0246-8]
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>1312</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>99[359]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
-    <!-- Saint Helena and Tristan da Cunha -->
+    <!-- Saint Helena -->
     <!-- http://www.itu.int/oth/T02020000AF/en -->
-    <territory id="SH" countryCode="290" internationalPrefix="00">
+    <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
       <!-- Numbers are formatted as a block. -->
       <generalDesc>
-        <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{4}</possibleNumberPattern>
+        <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
+        <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
+        <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
+             The new pattern is first, followed by the old (hence the repetition of the leading 2).
+             -->
         <nationalNumberPattern>
+          2(?:
+            [0-57-9]\d|
+            6[4-9]
+          )\d{2}|
           (?:
-            [2-468]\d|
+            [2-46]\d|
             7[01]
           )\d{2}
         </nationalNumberPattern>
@@ -21269,28 +19602,13 @@
         </nationalNumberPattern>
         <exampleNumber>5012</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <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" countryCode="386" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
           pattern="(\d)(\d{3})(\d{2})(\d{2})">
@@ -21384,11 +19702,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>59012345</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>11[23]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Svalbard -->
@@ -21468,18 +19781,13 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>81212345</exampleNumber>
       </voicemail>
-      <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
-      <emergency>
-        <nationalNumberPattern>11[023]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Slovakia -->
     <!-- http://www.itu.int/oth/T02020000BD/en -->
     <territory id="SK" countryCode="421" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
           <leadingDigits>2</leadingDigits>
@@ -21561,16 +19869,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>961234567</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            5[058]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Sierra Leone -->
@@ -21604,16 +19902,6 @@
         </nationalNumberPattern>
         <exampleNumber>25123456</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>
-          (?:
-            01|
-            99
-          )9
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- San Marino -->
@@ -21678,11 +19966,6 @@
         <possibleNumberPattern>\d{8}</possibleNumberPattern>
         <exampleNumber>58001110</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>11[358]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Senegal -->
@@ -21748,7 +20031,6 @@
         <nationalNumberPattern>33301\d{4}</nationalNumberPattern>
         <exampleNumber>333011234</exampleNumber>
       </voip>
-      <!-- No emergency numbers information can be found. -->
     </territory>
 
     <!-- Somalia -->
@@ -21781,7 +20063,7 @@
           <leadingDigits>
             15|
             28|
-            6[178]|
+            6[1378]|
             9
           </leadingDigits>
           <format>$1 $2</format>
@@ -21813,7 +20095,10 @@
         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
              Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
-             from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907. -->
+             from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907.
+             Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range for
+             mobile, but the document is not self consistent, so this is probably a typo. 63 was
+             found in numbers online. -->
         <nationalNumberPattern>
           (?:
             15\d|
@@ -21821,18 +20106,16 @@
               4\d|
               8
             )|
-            6[17-9]?\d{2}|
+            6[137-9]?\d{2}|
             7\d{2}|
             9(?:
               07|
-              1
+              [19]
             )\d
           )\d{5}
         </nationalNumberPattern>
         <exampleNumber>907792024</exampleNumber>
       </mobile>
-      <!-- According to the following webpage, there is no emergency number in Somalia:
-           http://www.netglobers.com/africa/somalia-emergency-numbers-in-somalia.html -->
     </territory>
 
     <!-- Suriname -->
@@ -21889,22 +20172,6 @@
         <possibleNumberPattern>\d{6}</possibleNumberPattern>
         <exampleNumber>561234</exampleNumber>
       </voip>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            [02-9]\d|
-            1[0-46-9]|
-            \d{3}
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>1234</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>115</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>115</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- South Sudan -->
@@ -21955,16 +20222,6 @@
         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
         <exampleNumber>9812345</exampleNumber>
       </mobile>
-      <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 -->
@@ -22019,11 +20276,6 @@
         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
         <exampleNumber>9001234</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Sint Maarten -->
@@ -22090,12 +20342,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
-        <nationalNumberPattern>919</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>919</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Syrian Arab Republic -->
@@ -22154,11 +20400,6 @@
         <exampleNumber>944567890</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <emergency>
-        <nationalNumberPattern>11[023]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Swaziland -->
@@ -22216,13 +20457,24 @@
         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
         <exampleNumber>08001234</exampleNumber>
       </tollFree>
-      <emergency>
-        <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
-        <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
+    </territory>
+
+    <!-- Tristan da Cunha -->
+    <!-- http://www.itu.int/oth/T02020000AF/en -->
+    <territory id="TA" countryCode="290" internationalPrefix="00">
+      <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
+      <generalDesc>
+        <nationalNumberPattern>8\d{3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{4}</possibleNumberPattern>
+      </generalDesc>
+      <fixedLine>
+        <nationalNumberPattern>8\d{3}</nationalNumberPattern>
+        <exampleNumber>8999</exampleNumber>
+      </fixedLine>
+      <mobile>
+        <nationalNumberPattern>NA</nationalNumberPattern>
+        <possibleNumberPattern>NA</possibleNumberPattern>
+      </mobile>
     </territory>
 
     <!-- Turks and Caicos Islands -->
@@ -22299,18 +20551,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>6497101234</exampleNumber>
       </voip>
-      <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-      <!-- http://s2.turksandcaicosyp.com/Turks-Caicos/Government/2/book -->
-      <emergency>
-        <nationalNumberPattern>
-          9(?:
-            11|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Chad -->
@@ -22354,11 +20594,6 @@
         </nationalNumberPattern>
         <exampleNumber>63012345</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>1[78]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>17</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- French Southern Territories -->
@@ -22395,27 +20630,14 @@
         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
         <exampleNumber>90112345</exampleNumber>
       </mobile>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>117</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Thailand -->
     <!-- http://www.itu.int/oth/T02020000CD/en -->
     <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
     <territory id="TH" countryCode="66" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <!-- Formatting patterns from wikipedia and the document itself -
              http://en.wikipedia.org/wiki/%2B66 -->
@@ -22488,16 +20710,6 @@
         <possibleNumberPattern>\d{4}</possibleNumberPattern>
         <exampleNumber>1100</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            669|
-            9[19]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
-        <exampleNumber>191</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tajikistan -->
@@ -22583,23 +20795,13 @@
         <exampleNumber>917123456</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[1-3]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tokelau -->
     <!-- http://www.itu.int/oth/T02020000D2/en -->
     <territory id="TK" countryCode="690" internationalPrefix="00">
       <generalDesc>
-        <nationalNumberPattern>[2-5]\d{3}</nationalNumberPattern>
+        <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
         <possibleNumberPattern>\d{4}</possibleNumberPattern>
       </generalDesc>
       <fixedLine>
@@ -22608,10 +20810,9 @@
         <exampleNumber>3010</exampleNumber>
       </fixedLine>
       <mobile>
-        <nationalNumberPattern>5\d{3}</nationalNumberPattern>
+        <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
         <exampleNumber>5190</exampleNumber>
       </mobile>
-      <!-- No evidence that any emergency numbers exist for this tiny island has been found. -->
     </territory>
 
     <!-- Timor-Leste (East Timor) -->
@@ -22671,23 +20872,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>7012345</exampleNumber>
       </personalNumber>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            0[02]|
-            2[0138]|
-            72|
-            9[07]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>102</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>11[25]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Turkmenistan -->
@@ -22760,13 +20944,6 @@
         <exampleNumber>66123456</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <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>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>03</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tunisia -->
@@ -22809,11 +20986,6 @@
         <nationalNumberPattern>8[028]\d{6}</nationalNumberPattern>
         <exampleNumber>80123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>19[078]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>197</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tonga -->
@@ -22876,25 +21048,13 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>0800222</exampleNumber>
       </tollFree>
-      <emergency>
-        <!-- http://www.tongaholiday.com/?page_id=2034 -->
-        <nationalNumberPattern>
-          9(?:
-            11|
-            22|
-            33|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Turkey -->
     <!-- http://en.wikipedia.org/wiki/%2B90 -->
     <!-- http://www.itu.int/oth/T02020000D6/en -->
-    <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0">
+    <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
           nationalPrefixOptionalWhenFormatting="true">
@@ -22995,16 +21155,6 @@
         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
         <exampleNumber>4441444</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            1[02]|
-            55
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Trinidad and Tobago -->
@@ -23094,11 +21244,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>99[09]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tuvalu -->
@@ -23123,11 +21268,6 @@
         <possibleNumberPattern>\d{6}</possibleNumberPattern>
         <exampleNumber>901234</exampleNumber>
       </mobile>
-      <emergency>
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Taiwan, China -->
@@ -23135,7 +21275,8 @@
     <!-- 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" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
-               nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
           <leadingDigits>
@@ -23176,11 +21317,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>900123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>11[029]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>110</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Tanzania -->
@@ -23246,16 +21382,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>412345678</exampleNumber>
       </voip>
-      <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>
     </territory>
 
     <!-- Ukraine -->
@@ -23444,16 +21570,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>891234567</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            0[123]|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Uganda -->
@@ -23540,11 +21656,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>901123456</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>999</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- United States -->
@@ -23558,7 +21669,8 @@
          when formatting, but is set here so that users who are calling formatByPattern can specify
          NationalPrefixFormattingRule if they want to. -->
     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
-               nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true">
+               nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{4})">
           <format>$1-$2</format>
@@ -23586,7 +21698,7 @@
               4[08]|
               5[1-46]|
               6[0279]|
-              7[06]|
+              7[026]|
               8[13]
             )|
             3(?:
@@ -23636,7 +21748,7 @@
               0[1-46-8]|
               1[02-9]|
               2[047]|
-              3[124]|
+              3[1247]|
               4[07]|
               5[47]|
               6[02359]|
@@ -23678,7 +21790,7 @@
               4[08]|
               5[1-46]|
               6[0279]|
-              7[06]|
+              7[026]|
               8[13]
             )|
             3(?:
@@ -23728,7 +21840,7 @@
               0[1-46-8]|
               1[02-9]|
               2[047]|
-              3[124]|
+              3[1247]|
               4[07]|
               5[47]|
               6[02359]|
@@ -23789,14 +21901,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <nationalNumberPattern>
-          112|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Uruguay -->
@@ -23849,25 +21953,6 @@
         <possibleNumberPattern>\d{7}</possibleNumberPattern>
         <exampleNumber>9001234</exampleNumber>
       </premiumRate>
-      <shortCode>
-        <nationalNumberPattern>
-          1(?:
-            0[4-9]|
-            1[2368]|
-            2[0-3568]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>104</exampleNumber>
-      </shortCode>
-      <emergency>
-        <nationalNumberPattern>
-          128|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
      </territory>
 
     <!-- Uzbekistan -->
@@ -24212,23 +22297,6 @@
         <exampleNumber>912345678</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <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>
     </territory>
 
     <!-- Vatican City -->
@@ -24256,11 +22324,6 @@
         <possibleNumberPattern>N/A</possibleNumberPattern>
       </mobile>
       <!-- No information exists about other types of numbers. -->
-      <emergency>
-        <nationalNumberPattern>11[2358]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Saint Vincent and the Grenadines -->
@@ -24344,27 +22407,15 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Venezuela -->
     <!-- http://www.itu.int/oth/T02020000E3/en -->
     <!-- http://en.wikipedia.org/wiki/+58 -->
-    <!-- 1XX specifies a particular carrier to route a call to. -->
+    <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
+         implemented. -->
     <territory id="VE" countryCode="58" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixForParsing="(1\d{2})|0"
-               nationalPrefixFormattingRule="$NP$FG"
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
                carrierCodeFormattingRule="$CC $FG">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{7})">
@@ -24414,11 +22465,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>9001234567</exampleNumber>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>171</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>171</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Virgin Islands, British -->
@@ -24432,7 +22478,7 @@
       </generalDesc>
       <fixedLine>
         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
-             and 774 have been added from numbers found in the white pages.  -->
+             and 774 have been added from numbers found in the white pages. -->
         <nationalNumberPattern>
           284(?:
             (?:
@@ -24454,7 +22500,7 @@
       </fixedLine>
       <mobile>
         <!-- No data on central office codes can be found on the nanpa.com website. The codes
-             34[0-367], 446 and 54[57] have been added from numbers found in the white pages.  -->
+             34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
         <nationalNumberPattern>
           284(?:
             (?:
@@ -24505,18 +22551,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://barbados.usembassy.gov/emergency-bvi.html
-             http://www.britishvirginislands.com/ntk_emergency.htm -->
-        <nationalNumberPattern>
-          9(?:
-            11|
-            99
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Virgin Islands, United States -->
@@ -24556,6 +22590,7 @@
             6(?:
               26|
               4[23]|
+              77|
               9[023]
             )|
             7(?:
@@ -24593,6 +22628,7 @@
             6(?:
               26|
               4[23]|
+              77|
               9[023]
             )|
             7(?:
@@ -24635,12 +22671,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>5002345678</exampleNumber>
       </personalNumber>
-      <emergency>
-        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
-        <nationalNumberPattern>911</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Viet Nam (Vietnam) -->
@@ -24790,11 +22820,6 @@
         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
         <exampleNumber>1992000</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>11[345]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>113</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Vanuatu -->
@@ -24849,11 +22874,6 @@
         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
         <exampleNumber>30123</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>112</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>112</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
@@ -24890,13 +22910,6 @@
         </nationalNumberPattern>
         <exampleNumber>501234</exampleNumber>
       </mobile>
-      <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html
-           -->
-      <emergency>
-        <nationalNumberPattern>1[578]</nationalNumberPattern>
-        <possibleNumberPattern>\d{2}</possibleNumberPattern>
-        <exampleNumber>15</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Samoa -->
@@ -24948,12 +22961,6 @@
         <exampleNumber>800123</exampleNumber>
       </tollFree>
       <!-- Current research suggests other types of numbers are not used in Samoa. -->
-      <emergency>
-        <!-- http://www.blueskysamoa.ws/?page_id=509 -->
-        <nationalNumberPattern>99[4-6]</nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>994</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Yemen -->
@@ -25002,14 +23009,6 @@
         <exampleNumber>712345678</exampleNumber>
       </mobile>
       <!-- No tollFree or premiumRate information can be found. -->
-      <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>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>191</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mayotte -->
@@ -25037,25 +23036,14 @@
         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
         <exampleNumber>801234567</exampleNumber>
       </tollFree>
-      <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
-      <!-- http://www.sccfd.org/travel.html -->
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            12|
-            5
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
-        <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" countryCode="27" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
+               nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(860)(\d{3})(\d{3})">
           <leadingDigits>860</leadingDigits>
@@ -25149,19 +23137,6 @@
         <possibleNumberPattern>\d{9}</possibleNumberPattern>
         <exampleNumber>861123456</exampleNumber>
       </uan>
-      <emergency>
-        <nationalNumberPattern>
-          1(?:
-            01(?:
-              11|
-              77
-            )|
-            12
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
-        <exampleNumber>10111</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Zambia -->
@@ -25203,16 +23178,6 @@
         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
         <exampleNumber>800123456</exampleNumber>
       </tollFree>
-      <emergency>
-        <nationalNumberPattern>
-          (?:
-            112|
-            99[139]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Zimbabwe -->
@@ -25485,16 +23450,6 @@
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
         <exampleNumber>8686123456</exampleNumber>
       </voip>
-      <emergency>
-        <nationalNumberPattern>
-          (?:
-            112|
-            99[3459]
-          )
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>999</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Universal International Toll Free Number -->
diff --git a/PhoneNumberMetaDataForTesting.xml b/PhoneNumberMetadataForTesting.xml
similarity index 97%
rename from PhoneNumberMetaDataForTesting.xml
rename to PhoneNumberMetadataForTesting.xml
index 45c122e..04d5729 100644
--- a/PhoneNumberMetaDataForTesting.xml
+++ b/PhoneNumberMetadataForTesting.xml
@@ -14,9 +14,9 @@
 
      @author: Shaopeng Jia
 
-     MetaData on Phone Number Plan and formatting rules. This file is used
+     Metadata on Phone Number Plan and formatting rules. This file is used
      solely for the purpose of unittesting, so data in this file is not
-     necessarily consistent with that of PhoneNumberMetaData.xml.
+     necessarily consistent with that of PhoneNumberMetadata.xml.
 -->
 
 <phoneNumberMetadata>
@@ -156,15 +156,9 @@
     </territory>
 
     <!-- Brazil -->
-    <territory id="BR" countryCode="55" internationalPrefix="0014" nationalPrefix="0">
-      <emergency>
-        <nationalNumberPattern>
-          19[023]|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>190</exampleNumber>
-      </emergency>
+    <!-- This country is used to test ShortNumberInfo, so at least the country calling code must be
+         recognised by the library. -->
+    <territory id="BR" countryCode="55">
     </territory>
 
     <!-- Bahamas -->
@@ -224,6 +218,12 @@
       </fixedLine>
     </territory>
 
+    <!-- France -->
+    <!-- This country is used to test ShortNumberInfo, so at least the country calling code must be
+         recognised by the library. -->
+    <territory id="FR" countryCode="33">
+    </territory>
+
     <!-- Germany -->
     <territory id="DE" countryCode="49" internationalPrefix="00"
                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
@@ -232,7 +232,7 @@
           <leadingDigits>2|3[3-9]|906|[4-9][1-9]1</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
-        <numberFormat pattern="(\d{2})(\d{4,9})">
+        <numberFormat pattern="(\d{2})(\d{4,11})">
           <leadingDigits>[34]0|[68]9</leadingDigits>
           <format>$1/$2</format>
         </numberFormat>
@@ -282,7 +282,8 @@
 
     <!-- United Kingdom -->
     <territory id="GB" countryCode="44" internationalPrefix="00"
-               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
+               nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
           <leadingDigits>[1-59]|[78]0</leadingDigits>
@@ -334,6 +335,12 @@
       </personalNumber>
     </territory>
 
+    <!-- Guernsey -->
+    <!-- This country is used to test ShortNumberInfo, so at least the country calling code must be
+         recognised by the library, and it must be the same as that of the United Kingdom. -->
+    <territory id="GG" countryCode="44">
+    </territory>
+
     <!-- Italy -->
     <!-- http://en.wikipedia.org/wiki/%2B39 -->
     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true">
@@ -751,7 +758,8 @@
     <!-- For testing purposes, numbers starting with 24 are not considered US numbers.-->
     <territory id="US" countryCode="1" internationalPrefix="011"
                preferredExtnPrefix=" extn. " nationalPrefix="1"
-               mainCountryForCode="true" nationalPrefixOptionalWhenFormatting="true">
+               mainCountryForCode="true" nationalPrefixOptionalWhenFormatting="true"
+               mobileNumberPortableRegion="true">
       <availableFormats>
         <numberFormat pattern="(\d{3})(\d{4})">
           <format>$1 $2</format>
@@ -780,14 +788,6 @@
         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
         <possibleNumberPattern>\d{10}</possibleNumberPattern>
       </premiumRate>
-      <emergency>
-        <nationalNumberPattern>
-          119|
-          911
-        </nationalNumberPattern>
-        <possibleNumberPattern>\d{3}</possibleNumberPattern>
-        <exampleNumber>911</exampleNumber>
-      </emergency>
     </territory>
 
     <!-- Mayotte -->
diff --git a/ShortNumberMetadata.xml b/ShortNumberMetadata.xml
new file mode 100644
index 0000000..869282a
--- /dev/null
+++ b/ShortNumberMetadata.xml
@@ -0,0 +1,7765 @@
+<!-- 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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            02|
+            19
+          )
+        </nationalNumberPattern>
+        <exampleNumber>119</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            02|
+            19
+          )
+        </nationalNumberPattern>
+        <exampleNumber>119</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Antigua and Barbuda -->
+    <!-- http://www.itu.int/oth/T0202000008/en -->
+    <territory id="AG">
+      <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-antigua_barbuda.html -->
+        <nationalNumberPattern>
+          9(?:
+            11|
+            99
+          )
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Anguilla -->
+    <!-- http://www.itu.int/oth/T0202000007/en -->
+    <territory id="AI">
+      <generalDesc>
+        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Albania -->
+    <!-- http://www.itu.int/oth/T0202000002/en -->
+    <territory id="AL">
+      <generalDesc>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>12[789]</nationalNumberPattern>
+        <exampleNumber>129</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>12[789]</nationalNumberPattern>
+        <exampleNumber>129</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Armenia -->
+    <!-- http://www.itu.int/oth/T020200000A/en -->
+    <territory id="AM">
+      <generalDesc>
+        <nationalNumberPattern>[18]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          (?:
+            1|
+            8[1-7]
+          )\d{2}
+        </nationalNumberPattern>
+        <exampleNumber>8711</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>10[123]</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>102</exampleNumber>
+      </emergency>
+    </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>[019]\d{1,2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          000|
+          1(?:
+            0[0-35-7]|
+            1[02-5]|
+            2[15]|
+            9
+          )|
+          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>
+      <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>
+    </territory>
+
+    <!-- American Samoa -->
+    <!-- http://www.itu.int/oth/T0202000004/en -->
+    <territory id="AS">
+      <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.airportairport.com/American-Samoa.html
+             http://www.frommers.com/destinations/americansamoa/3038020157.html -->
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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>
+          100|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
+        <nationalNumberPattern>
+          100|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            0[123]|
+            12
+          )
+        </nationalNumberPattern>
+        <exampleNumber>101</exampleNumber>
+      </shortCode>
+      <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>
+        <exampleNumber>101</exampleNumber>
+      </emergency>
+    </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]
+          )|
+          999
+        </nationalNumberPattern>
+        <exampleNumber>103</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          10[0-2]|
+          999
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>999</exampleNumber>
+      </emergency>
+    </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]|
+              6000
+            )|
+            2(?:
+              0[47]|
+              12|
+              3[0-24]|
+              99
+            )|
+            3(?:
+              0[47]|
+              13|
+              99
+            )|
+            4(?:
+              0[47]|
+              14|
+              50|
+              99
+            )|
+            7(?:
+              00|
+              1[27]|
+              33|
+              65|
+              77
+            )|
+            819
+          )|
+          [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
+            )
+          )|
+          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(?:
+            212|
+            3(?:
+              0[47]|
+              13
+            )|
+            4[01]4
+          )|
+          [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>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>
+
+    <!-- Burundi -->
+    <!-- http://www.itu.int/oth/T0202000022/en -->
+    <territory id="BI">
+      <generalDesc>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>11[78]</nationalNumberPattern>
+        <exampleNumber>117</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burundi_12220/index.html -->
+        <nationalNumberPattern>11[78]</nationalNumberPattern>
+        <exampleNumber>117</exampleNumber>
+      </emergency>
+    </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>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_1067.html -->
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>11[089]</nationalNumberPattern>
+        <exampleNumber>110</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>11[089]</nationalNumberPattern>
+        <exampleNumber>110</exampleNumber>
+      </emergency>
+    </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>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
+        <nationalNumberPattern>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>11[023]</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>
+        <exampleNumber>113</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Botswana -->
+    <!-- http://www.itu.int/oth/T020200001C/en -->
+    <territory id="BW">
+      <generalDesc>
+        <nationalNumberPattern>9\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>99[789]</nationalNumberPattern>
+        <exampleNumber>999</exampleNumber>
+      </shortCode>
+      <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>
+        <exampleNumber>999</exampleNumber>
+      </emergency>
+    </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>
+        <nationalNumberPattern>
+          1(?:
+            0[123]|
+            12
+          )
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <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>[19]\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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) -->
+    <!-- id="CD" -->
+    <!-- No national emergency numbers were located for Congo. -->
+
+    <!-- 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
+          )
+        </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>
+      <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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            1[01]|
+            [78]0
+          )
+        </nationalNumberPattern>
+        <exampleNumber>110</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
+        <nationalNumberPattern>
+          1(?:
+            1[01]|
+            [78]0
+          )
+        </nationalNumberPattern>
+        <exampleNumber>110</exampleNumber>
+      </emergency>
+    </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>1\d{1,2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>1?1[37]</nationalNumberPattern>
+        <exampleNumber>113</exampleNumber>
+      </shortCode>
+      <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>
+    </territory>
+
+    <!-- China -->
+    <!-- http://www.itu.int/oth/T020200002B/en -->
+    <territory id="CN">
+      <generalDesc>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            1[09]|
+            20
+          )
+        </nationalNumberPattern>
+        <exampleNumber>119</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            1[09]|
+            20
+          )
+        </nationalNumberPattern>
+        <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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            06|
+            1[2569]|
+            2[357]|
+            3[27]|
+            4[467]|
+            5[36]|
+            6[45]|
+            95
+          )
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- Police, medical and fire plus general emergency numbers (112,123). -->
+        <nationalNumberPattern>
+          1(?:
+            1[29]|
+            23|
+            32|
+            56
+          )
+        </nationalNumberPattern>
+        <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>
+    </territory>
+
+    <!-- Costa Rica -->
+    <!-- http://www.itu.int/oth/T0202000030/en -->
+    <territory id="CR">
+      <generalDesc>
+        <nationalNumberPattern>[19]\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
+            )|
+            333|
+            4(?:
+              00|
+              1[56]
+            )|
+            5(?:
+              15|
+              5[15]
+            )|
+            693|
+            7(?:
+              00|
+              1[789]|
+              2[02]|
+              [67]7
+            )|
+            975
+          )|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>1022</exampleNumber>
+      </shortCode>
+      <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>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
+        <nationalNumberPattern>
+          112|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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>1\d</nationalNumberPattern>
+        <possibleNumberPattern>\d{2}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>1[47]</nationalNumberPattern>
+        <exampleNumber>17</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>1[47]</nationalNumberPattern>
+        <exampleNumber>17</exampleNumber>
+      </emergency>
+    </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) -->
+    <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.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,2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{2,3}</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|
+          [45]4|
+          75|
+          91[137]
+        </nationalNumberPattern>
+        <exampleNumber>22</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>91[17]</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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}|
+          [27]\d{2,4}|
+          3\d{3,4}|
+          [4-68]\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(?:
+            0000|
+            24
+          )|
+          3\d{3,4}|
+          7(?:
+            0[06]|
+            22|
+            40|
+            \d{4}
+          )|
+          [4-68]\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). -->
+        <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>
+          1023|
+          3(?:
+            646|
+            900
+          )|
+          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(?:
+            0000|
+            24
+          )|
+          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>9\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
+        <nationalNumberPattern>911</nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Georgia -->
+    <!-- http://www.itu.int/oth/T0202000050/en -->
+    <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
+    <territory id="GE">
+      <generalDesc>
+        <nationalNumberPattern>[01]\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          0(?:
+            11|
+            22|
+            33
+          )|
+          1(?:
+            1[123]|
+            22
+          )
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <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>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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>[1589]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          19[123]|
+          (?:
+            54|
+            83
+          )00|
+          999
+        </nationalNumberPattern>
+        <exampleNumber>999</exampleNumber>
+      </shortCode>
+      <carrierSpecific>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>
+          (?:
+            54|
+            83
+          )00
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{4}</possibleNumberPattern>
+        <exampleNumber>5400</exampleNumber>
+      </carrierSpecific>
+      <emergency>
+        <nationalNumberPattern>
+          19[123]|
+          999
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>999</exampleNumber>
+      </emergency>
+      <smsServices>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>
+          (?:
+            54|
+            83
+          )00
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{4}</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 -->
+    <!-- id="GN" -->
+    <!-- No national emergency numbers were located for Guinea. -->
+
+    <!-- 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>1\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            10|
+            2\d|
+            [57]\d{2}
+          )
+        </nationalNumberPattern>
+        <exampleNumber>123</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            10|
+            2[03]
+          )
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>110</exampleNumber>
+      </emergency>
+    </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>[09]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          0(?:
+            02|
+            171|
+            444|
+            7[67]7|
+            801|
+            9(?:
+              0[78]|
+              [2-47]
+            )
+          )|
+          91[123]
+       </nationalNumberPattern>
+        <exampleNumber>0801</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>91[123]</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </emergency>
+    </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>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>
+
+    <!-- Croatia -->
+    <!-- http://www.itu.int/oth/T0202000032/en -->
+    <!-- http://en.wikipedia.org/wiki/%2B385 -->
+    <territory id="HR">
+      <generalDesc>
+        <nationalNumberPattern>[19]\d{1,2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            12|
+            92
+          )|
+          9[34]
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            12|
+            92
+          )|
+          9[34]
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Haiti -->
+    <!-- http://www.itu.int/oth/T020200005E/en -->
+    <territory id="HT">
+      <generalDesc>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>11[48]</nationalNumberPattern>
+        <exampleNumber>114</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
+        <nationalNumberPattern>11[48]</nationalNumberPattern>
+        <exampleNumber>118</exampleNumber>
+      </emergency>
+    </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>[17]\d{2,4}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          11[02389]|
+          71400
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <carrierSpecific>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>71400</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>[19]\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          112|
+          999
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          112|
+          999
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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>[19]\d{2,5}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1\d{2}(?:\d{3})?|
+          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>
+    </territory>
+
+    <!-- India -->
+    <!-- http://www.itu.int/oth/T0202000063/en -->
+    <!-- http://en.wikipedia.org/wiki/%2B91 -->
+    <territory id="IN">
+      <generalDesc>
+        <nationalNumberPattern>[12]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            0[0128]|
+            12|
+            298
+          )|
+          2611
+        </nationalNumberPattern>
+        <exampleNumber>108</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            0[0128]|
+            12|
+            298
+          )|
+          2611
+        </nationalNumberPattern>
+        <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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            0[04]|
+            15|
+            22
+          )
+        </nationalNumberPattern>
+        <exampleNumber>122</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=112 -->
+        <nationalNumberPattern>
+          1(?:
+            0[04]|
+            15|
+            22
+          )
+        </nationalNumberPattern>
+        <exampleNumber>122</exampleNumber>
+      </emergency>
+    </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>
+          11\d{2}|
+          911
+        </nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          11[029]|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.itu.int/net/itu-t/inrdb/e129_important_numbers.aspx?country=116 -->
+        <nationalNumberPattern>
+          11[029]|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            09|
+            1[0-2]|
+            9[0-24-79]
+          )|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>111</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>
+          1(?:
+            12|
+            91
+          )|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </emergency>
+    </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>[19]\d{2,4}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <!-- Excluding SMS-only premium-rate short codes for now. -->
+        <nationalNumberPattern>
+          1(?:
+            0(?:
+              [09]|
+              400
+            )|
+            1(?:
+              [026]|
+              9[0-2579]
+            )|
+            2[13]|
+            3[01]
+          )|
+          999
+        </nationalNumberPattern>
+        <exampleNumber>116</exampleNumber>
+      </shortCode>
+      <carrierSpecific>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>10400</nationalNumberPattern>
+        <possibleNumberPattern>\d{5}</possibleNumberPattern>
+        <exampleNumber>10400</exampleNumber>
+      </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.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>10400</nationalNumberPattern>
+        <possibleNumberPattern>\d{5}</possibleNumberPattern>
+        <exampleNumber>10400</exampleNumber>
+      </smsServices>
+    </territory>
+
+    <!-- Kyrgyzstan -->
+    <!-- http://www.itu.int/oth/T0202000074/en -->
+    <territory id="KG">
+      <generalDesc>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>10[123]</nationalNumberPattern>
+        <exampleNumber>101</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>10[123]</nationalNumberPattern>
+        <exampleNumber>101</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Cambodia -->
+    <!-- http://www.itu.int/oth/T0202000023/en -->
+    <!-- http://en.wikipedia.org/wiki/+855 -->
+    <territory id="KH">
+      <generalDesc>
+        <nationalNumberPattern>[16]\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          11[789]|
+          666
+        </nationalNumberPattern>
+        <exampleNumber>117</exampleNumber>
+      </shortCode>
+      <emergency>
+        <!-- http://www.phnompenh.gov.kh/phnom-penh-city-emergency-numbers-24-hrs-169.html -->
+        <nationalNumberPattern>
+          11[789]|
+          666
+        </nationalNumberPattern>
+        <exampleNumber>117</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Kiribati -->
+    <!-- http://www.itu.int/oth/T0202000071/en -->
+    <territory id="KI">
+      <generalDesc>
+        <nationalNumberPattern>[19]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          10(?:
+            [0-8]|
+            5[01259]
+          )|
+          99[2349]
+        </nationalNumberPattern>
+        <exampleNumber>100</exampleNumber>
+      </shortCode>
+      <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>1\d{2}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>1\d{2}</nationalNumberPattern>
+        <exampleNumber>177</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>112</nationalNumberPattern>
+        <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>[13]\d{2,4}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          1(?:
+            0[123]|
+            12
+          )|
+          30400
+        </nationalNumberPattern>
+        <exampleNumber>112</exampleNumber>
+      </shortCode>
+      <carrierSpecific>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>30400</nationalNumberPattern>
+        <possibleNumberPattern>\d{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 -->
+        <nationalNumberPattern>30400</nationalNumberPattern>
+        <possibleNumberPattern>\d{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(?:
+              [03-57]|
+              14
+            )|
+            50\d{4}|
+            6(?:
+              00|
+              [1-4]
+            )|
+            75|
+            8(?:
+              1[128]|
+              7
+            )
+          )
+        </nationalNumberPattern>
+        <exampleNumber>1600</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[0189]</nationalNumberPattern>
+        <exampleNumber>119</exampleNumber>
+      </shortCode>
+      <emergency>
+        <nationalNumberPattern>11[0189]</nationalNumberPattern>
+        <exampleNumber>119</exampleNumber>
+      </emergency>
+    </territory>
+
+    <!-- Liberia -->
+    <!-- http://www.itu.int/oth/T0202000079/en -->
+    <territory id="LR">
+      <generalDesc>
+        <nationalNumberPattern>[389]\d{2,3}</nationalNumberPattern>
+        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
+      </generalDesc>
+      <shortCode>
+        <nationalNumberPattern>
+          355|
+          8400|
+          911
+        </nationalNumberPattern>
+        <exampleNumber>911</exampleNumber>
+      </shortCode>
+      <carrierSpecific>
+        <!-- https://support.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>8400</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.google.com/plus/answer/1304917 -->
+        <nationalNumberPattern>8400</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://www.itu.int/oth/T0202000076/en -->
+    <!-- http://en.wikipedia.org/wiki/+371 -->
+    <territory id="LV">
+      <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>
+
+    <!-- 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|
+            [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>
+        <nationalNumberPattern>
+          1(?:
+            1(?:
+              [279]|
+              6(?:
+                000|
+                1(?:
+                  11|
+                  23
+                )
+              )|
+              8\d
+            )|
+            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>
+      <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://www.opta.nl/en/numbers/search-for-numbers -->
+    <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>
+
+    <!-- O