summaryrefslogtreecommitdiff
path: root/PhoneNumberMetaDataForTesting.xml
diff options
context:
space:
mode:
Diffstat (limited to 'PhoneNumberMetaDataForTesting.xml')
-rw-r--r--PhoneNumberMetaDataForTesting.xml85
1 files changed, 78 insertions, 7 deletions
diff --git a/PhoneNumberMetaDataForTesting.xml b/PhoneNumberMetaDataForTesting.xml
index a18e41f..45c122e 100644
--- a/PhoneNumberMetaDataForTesting.xml
+++ b/PhoneNumberMetaDataForTesting.xml
@@ -25,9 +25,23 @@
<territory id="AD" countryCode="376" internationalPrefix="00">
</territory>
+ <!-- United Arab Emirates -->
+ <!-- Added since when formatting the number for mobile dialling we have special rules to handle
+ it. -->
+ <territory id="AE" countryCode="971" internationalPrefix="00">
+ <generalDesc>
+ <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
+ <possibleNumberPattern>\d{9}</possibleNumberPattern>
+ </generalDesc>
+ <uan>
+ <nationalNumberPattern>600\d{6}</nationalNumberPattern>
+ <exampleNumber>600123456</exampleNumber>
+ </uan>
+ </territory>
+
<!-- Angola -->
- <!-- This country has been coopted to test the case of a national prefix
- with a non-numeric symbol in it. -->
+ <!-- This country has been coopted to test the case of a national prefix with a non-numeric
+ symbol in it. It is also useful since it has no national prefix formatting rule. -->
<territory id="AO" countryCode="244" internationalPrefix="00" nationalPrefix="0~0">
<availableFormats>
<numberFormat pattern="(\d{3})(\d{3})(\d{3})">
@@ -43,7 +57,7 @@
<exampleNumber>222123456</exampleNumber>
</fixedLine>
<mobile>
- <!-- Expanded the 92 prefix possibilities to matchnumbers found online. -->
+ <!-- Expanded the 92 prefix possibilities to match numbers found online. -->
<nationalNumberPattern>9[1-3]\d{7}</nationalNumberPattern>
<exampleNumber>923123456</exampleNumber>
</mobile>
@@ -177,6 +191,39 @@
</premiumRate>
</territory>
+ <!-- Belarus -->
+ <!-- This country has been coopted to test the case of a national prefix formatting rule with a
+ space in it. -->
+ <territory id="BY" countryCode="375" internationalPrefix="810" nationalPrefix="8"
+ nationalPrefixForParsing="80?|99999" nationalPrefixFormattingRule="$NP $FG">
+ <availableFormats>
+ <!-- We make some bogus formatting templates that differ only in length to check that
+ switching formatting patterns works as expected.-->
+ <numberFormat pattern="(\d{4})">
+ <leadingDigits>[1-8]</leadingDigits>
+ <format>$1</format>
+ </numberFormat>
+ <!-- This pattern has an override to remove the space after the national prefix. -->
+ <numberFormat pattern="(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
+ <leadingDigits>[1-8]</leadingDigits>
+ <format>$1 $2</format>
+ </numberFormat>
+ <numberFormat pattern="(\d{3})(\d{3})">
+ <leadingDigits>[1-8]</leadingDigits>
+ <format>$1 $2</format>
+ </numberFormat>
+ </availableFormats>
+ <generalDesc>
+ <!-- This numbering plan is completely bogus, but is used to test the AYTF logic. For that
+ reason, it is kept very simple. -->
+ <nationalNumberPattern>[1-9]\d{5}</nationalNumberPattern>
+ <possibleNumberPattern>\d{6}</possibleNumberPattern>
+ </generalDesc>
+ <fixedLine>
+ <exampleNumber>112345</exampleNumber>
+ </fixedLine>
+ </territory>
+
<!-- Germany -->
<territory id="DE" countryCode="49" internationalPrefix="00"
nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
@@ -701,11 +748,10 @@
<!-- United States -->
<!-- http://www.nanpa.com/reports/reports_npa.html -->
- <!-- For testing purposes, numbers starting with 24 are not considered US
- numbers.-->
+ <!-- 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" >
+ mainCountryForCode="true" nationalPrefixOptionalWhenFormatting="true">
<availableFormats>
<numberFormat pattern="(\d{3})(\d{4})">
<format>$1 $2</format>
@@ -768,7 +814,7 @@
</territory>
<!-- International Toll Free numbers -->
- <territory id="001" countryCode="800">
+ <territory id="001" countryCode="800" leadingZeroPossible="true">
<availableFormats>
<numberFormat pattern="(\d{4})(\d{4})">
<format>$1 $2</format>
@@ -791,5 +837,30 @@
<nationalNumberPattern>\d{8}</nationalNumberPattern>
</tollFree>
</territory>
+
+ <!-- Universal International Premium Rate Number -->
+ <territory id="001" countryCode="979">
+ <availableFormats>
+ <numberFormat pattern="(\d)(\d{4})(\d{4})">
+ <format>$1 $2 $3</format>
+ </numberFormat>
+ </availableFormats>
+ <generalDesc>
+ <nationalNumberPattern>\d{9}</nationalNumberPattern>
+ <possibleNumberPattern>\d{9}</possibleNumberPattern>
+ <exampleNumber>123456789</exampleNumber>
+ </generalDesc>
+ <fixedLine>
+ <nationalNumberPattern>NA</nationalNumberPattern>
+ <possibleNumberPattern>NA</possibleNumberPattern>
+ </fixedLine>
+ <mobile>
+ <nationalNumberPattern>NA</nationalNumberPattern>
+ <possibleNumberPattern>NA</possibleNumberPattern>
+ </mobile>
+ <premiumRate>
+ <nationalNumberPattern>\d{9}</nationalNumberPattern>
+ </premiumRate>
+ </territory>
</territories>
</phoneNumberMetadata>