If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:Country (lexicon)
BoxMatrix >> Lexicon >> Internationalisation >> Country | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Computer | FRITZ | I18N | Telephony | Smarthome | Internet | Protocols | Multimedia | Formats | Hardware | Software | Research |
Name-Collision - multiple objects in this wiki use the name Country!
|
Term
Term: | Country (lexicon) | Wiki | Freetz | IPPF | whmf | AVM | Web |
Short for: | Nation with own rules | ||||||
Location: | Lexicon >> Internationalisation | ||||||
Weblinks: | Wikipedia.int - ITU-T E.123 | ||||||
Description: | Nation which occupies a geographical territory |
Goto: FRITZ!OS - SMW-Browser
Details
A Country is a nation which occupies a geographical territory.
It typically has:
- Own government with own law
- One or more official Languages
- One or more Timezones
- Own technical standards and regulatory
- Own TLD in the DNS system
FRITZ!OS
FRITZ!OS uses the Country (avmenv) variable for the system wide Country setting.
Country_is_default is set to no
if Country (avmenv) is set from the country (bootenv) variable, otherwise it is yes
.
Both Country variables use the ITU-T E.123
international country dialling codes, replacing the +
prefix with a 0
,
or 99
for Other Country
. Ie: The +49
calling code for Germany evaluates to 049
:
- Andorra (ad) = 0376
- Austria (at) = 043
- Australia (au) = 061
- Belgium (be) = 032
- Bosnia and Herzegovina (ba) = 0387
- Botswana (bw) = 0267
- Croatia (hr) = 0385
- Cyprus (cy) = 0357
- Czech Republic (cz) = 0420
- Denmark (dk) = 045
- Estonia (ee) = 0372
- Finland (fi) = 0358
- France (fr) = 033
- Germany (de) = 049
- Greece (gr) = 030
- Hungary (hu) = 036
- Ireland (ie) = 0353
- Israel (il) = 0972
- Iceland (is) = 054
- Italy (it) = 039
- Latvia (lv) = 0371
- Luxemburg (lu) = 0352
- Macedonia (mk) = 0389
- Malaysia (my) = 060
- Montenegro (me) = 0382
- Namibia (na) = 0264
- Netherlands (nl) = 031
- Nigeria (ng) = 0234
- Norway (no) = 047
- New Zealand (nz) = 064
- Poland (pl) = 048
- Portugal (pt) = 0351
- Slovakia (sk) = 0421
- Slovenia (si) = 0386
- Spain (es) = 034
- South Africa (za) = 027
- Sweden (se) = 046
- Switzerland (ch) = 041
- Tanzania (tz) = 0255
- Thailand (th) = 066
- Uganda (ug) = 0256
- United Kingdom (uk) = 044
- Other Country (int) = 99
Click any Country above or see the Country-Selector for a filterable list of Countries supported by each model .
Countries which do not have presets in FRITZ!OS (yet) but appear in the Icecat catalog as target markets:
- Cuba (cu) = 053
- Mexico (mx) = 052
- Peru (pe) = 051
- Philippines (ph) = 063
- Romania (ro) = 040
- Singapore (sg) = 065
Single-Country
Most Box-Models up to generation x1xx (ie: 7170) and all Telekom-Derivatives initially only supported a single Country,
Germany, and German Language. Initially these were only sold in Germany, but later AVM also sold variants for Switzerland
and Austria with German Language interface but support for a limited set of 10 Countries.
For the fb, 1020, fbf, fbfw, 7050, 7140 and 7170 AVM also sold single Language English variants for the international market,
also with support for a limited set of 10 Countries.
A special single Country Telekom-Derivative is the the w503vmk for Macedonia.
Multi-Country
The first models with full multi Country support were the international models 5113, 5124 and 7113int.
Besides this most models since generation x2xx (ie 7270) support 29 to 41 Countries in their international variants.
All model variants for the German market only supported Germany for long time.
This has been changed since Labor r74082+ when AVM made firmware compatible to both the German and international
variants of models instead of maintaining separate versions.
FRITZ!OS with multi Country support has the CONFIG_MULTI_COUNTRY variable set to y
, regardless of which Countries
are supported, so also for the Germany only variant of it.
Country-Presets
The Country setting affects:
- Preset for the Country_iso variable
- Preset for the Timezone
- Telephony defaults for fx_conf, fx_lcr, fx_moh, telefon_misc
- Database of Internet-Providers
- Database of VoIP-Providers
Country-Selection
Changing the Country is done by the setcountry script, which expects one argument, the country code listed above:
setcountry <country>
If <country>
is not numerical starting with 0
or 99
setcountry does nothing and terminates with exit code -1
.
If the directory /etc/default.<country>
does not exist setcountry does nothing and terminates with exit code -2
.
Otherwise setcountry sets the country variable in the Bootloader-Environment to <country>
and clears the telephony config
in fx_conf, fx_lcr, fx_moh, telefon_misc and fx_cg.
If the Country variable in AVM-Environment already equals <country>
setcountry terminates with exit code 1
.
Otherwise setcountry terminates with exit code 0
which makes the caller perform a reboot.
The Webinterface handles the list of availlable Countries in the country ui-module, which is maintained by libcmapi.so.
Starting with fw 7.39 this module also handles the current Country setting in:
country:settings/current_country
Before fw 7.39 this setting was handled in the box ui-module, also maintained by libcmapi.so:
box:settings/country
Changing the value of these keys will make libcmapi.so call setcountry.
setcountry is also called by firmwarecfg, tr069fwupdate, libtr069.so, libcfgimpexp.so and by the tffs init script.