Working with PhoneNumberMetadata.xml

This configuration file specifies phone number formats for countries and possibly for territories. Each country phone number definition starts with the tag <territory id="country_name". For example, if you are configuring United States phone data, you can search for <territory id="US" to find that configuration.

PolicyCenter uses possibleNumberPattern under generalDesc for validation of phone numbers. PolicyCenter does not perform any of the stricter validations because the formats can change rapidly and a user can enter a mobile number into a home phone field.

The formatting controls are in availableFormats. They use standard regex capture groups. The only sections you need to configure are possibleNumberPattern and availableFormats.

See the comments at the beginning of the file and at the beginning of each <territory> section for more information.