Configuration file location

Location configuration
The configuration of the locations is always stored in an XML file. The file is in config\locations.xml.

Country dialing rules
The table with the dialing rules contains the dialing rules of individual countries. This can be found in the countries.xml. It contains the names of the countries and the corresponding dialing rules for local, national and international calls.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<countries xmlns="http://www.w3.org/2001/XMLSchema.xsd">
<country ID="49">
        <countryCode>49</countryCode>
        <name>Germany</name>
        <SameAreaRule>G</SameAreaRule>
        <LongDistanceRule>0FG</LongDistanceRule>
        <InternationalRule>00EFG</InternationalRule>
</country>
</countries>
	
Icon Meaning
ECountry code
FArea code
GLocal number
IOptional dialing code
NOptional long distance provider

Call-by-call country dialing codes
The providers.xml file contains the known call-by-call dialing codes for individual countries.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<providers xmlns="http://www.w3.org/2001/XMLSchema.xsd">
	<provider ID="10???" countryID="41">
	<name>General</name>
	</provider>
	<provider ID="10703" countryID="41">
	<name>Smartphone</name>
	</provider>
	<provider ID="01090" countryID="49">
	<name>O2</name>
	</provider>
</providers>
	
day Meaning
countryIDID of the country in countries.xml
ID of the country in countries.xmlProvider dialing prefix (? Is a place-holder for any digit)

Dialing codes and place names
The cities.xml file contains the known place names for the country dialing codes.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cities xmlns="http://www.w3.org/2001/XMLSchema.xsd">
	<city ID="+1201" countryID="1">
	<name>New Jersey</name>
	</city>
	<city ID="+4989" countryID="49">
	<name>München</name>
	</city>
</cities>
	
day Meaning
countryIDID of the country in countries.xml
ID of the country in countries.xmlArea code

Special phone numbers
The file specialnumbers.xml contains every country's known special phone numbers. These are numbers that can´t be dialed internationally, e.g. directory assistance (operator) or emergency calls. At the formatting no access codes are prefixed for these numbers.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<specialnumbers xmlns="http://www.w3.org/2001/XMLSchema.xsd">
	<specialnumber ID="110" countryID="49">
	<name>Notruf</name>
	</specialnumber>
</specialnumbers>
	
day Meaning
countryIDID of the country in countries.xml
ID of the country in countries.xmlPhone number

Version 4.0