docs: add MCC country-codes reference; MCC-anchor remaining bare prefix examples

- New docs/MCC_COUNTRY_CODES.md: 25-country table with ISO codes and
  MCC(s), notes on countries with multiple MCC allocations, and a
  pointer to the ITU-T E.212 source for everything else.
- INSTALL.md §6a/6b: replace toy single-digit LOCAL_PREFIX/REMOTE_PREFIX
  examples with MCC-anchored ones (LOCAL_PREFIX=262, REMOTE_PREFIX=240,
  TRUNK_DE_SE) plus a cross-reference to the new MCC table.
- DESIGN_SATELLITE_AND_CLUSTER.md: MCC-anchor the two stale config
  snippets (LOCAL_PREFIX 01->22201, REMOTE_PREFIX 02->22202) so the
  historical design doc no longer teaches the bare-regional-digit
  anti-pattern.
This commit is contained in:
Audric committed 2026-05-17 13:26:15 +02:00
1 parent 61aafc1c0c
commit de7e4648ea
3 files changed
+94 -12

No files matched your search

+3 -3
View File
@@ -44,13 +44,13 @@ On the **parent reflector** (existing reflector, no role change needed):
```ini
[GLOBAL]
LOCAL_PREFIX=01
LOCAL_PREFIX=22201
# Existing trunk config unchanged
[TRUNK_01_02]
HOST=reflector-02.example.com
SECRET=secret_01_02
REMOTE_PREFIX=02
REMOTE_PREFIX=22202
# NEW: accept satellite connections
[SATELLITE]
@@ -207,7 +207,7 @@ New `[GLOBAL]` key `CLUSTER_TGS`:
```ini
[GLOBAL]
LOCAL_PREFIX=01
LOCAL_PREFIX=22201
# Cluster TGs: broadcast to all trunk peers regardless of prefix
# Comma-separated list of individual TGs
CLUSTER_TGS=222,2221,2222,91
+20 -9
View File
@@ -160,14 +160,19 @@ In the `[GLOBAL]` section:
```ini
[GLOBAL]
# ... existing settings ...
LOCAL_PREFIX=1 # this reflector owns TGs starting with "1"
LOCAL_PREFIX=262 # this reflector owns TGs starting with "262"
# Use your country's Mobile Country Code (MCC):
# e.g. 222 = Italy, 240 = Sweden, 262 = Germany.
# Anchoring on the MCC keeps your prefix space
# from colliding with other countries' reflectors.
# Full table: docs/MCC_COUNTRY_CODES.md
```
A comma-separated list is accepted if this reflector covers multiple prefix
groups:
groups (e.g. a country that holds more than one MCC):
```ini
LOCAL_PREFIX=11,12,13
LOCAL_PREFIX=234,235 # United Kingdom (two MCC blocks)
```
### 6b. Add a trunk section for each peer
@@ -175,19 +180,25 @@ LOCAL_PREFIX=11,12,13
At the end of the config file, add one `[TRUNK_x]` section per peer reflector:
```ini
[TRUNK_1_2]
HOST=reflector-b.example.com
[TRUNK_DE_SE]
HOST=reflector-se.example.com
PORT=5302
SECRET=a_strong_shared_secret
REMOTE_PREFIX=2
REMOTE_PREFIX=240
```
- **The section name must be identical on both sides.** Both sysops must agree
on a shared name (e.g. `TRUNK_1_2` for the link between prefix 1 and 2).
on a shared name (e.g. `TRUNK_DE_SE` for the link between Germany (`262`)
and Sweden (`240`); ISO 3166-1 alpha-2 codes in alphabetical order is a
readable convention).
- `PORT` defaults to `5302` if omitted.
- Both sides must use the same `SECRET`.
- `REMOTE_PREFIX` also accepts a comma-separated list.
For fuller examples, see [`docs/DEPLOYMENT_ITALY.md`](DEPLOYMENT_ITALY.md)
(20-region national mesh) and [`docs/WW_DEPLOYMENT.md`](WW_DEPLOYMENT.md)
(25-country worldwide mesh).
### 6c. Optional: enable the HTTP status endpoint
```ini
@@ -239,8 +250,8 @@ journalctl -u svxreflector -f
A successful trunk connection looks like:
```
TRUNK_1_2: Connected to reflector-b.example.com:5302
TRUNK_1_2: Trunk hello from peer 'TRUNK_1_2' local_prefix=2 priority=3847291042
TRUNK_DE_SE: Connected to reflector-se.example.com:5302
TRUNK_DE_SE: Trunk hello from peer 'TRUNK_DE_SE' local_prefix=240 priority=3847291042
```
If `HTTP_SRV_PORT` is set, query the status endpoint:
+71
View File
@@ -0,0 +1,71 @@
# Mobile Country Codes (MCC) reference
GeuReflector's `LOCAL_PREFIX` is anchored on a country's **Mobile Country Code**
(MCC) — the 3-digit identifier assigned by the ITU under recommendation E.212
and reused by 3GPP. Anchoring on the MCC keeps each deployment's TG number
space inside its own country namespace, so two countries that both want a
local TG ending in `…01` don't collide. This system is independent of any
mobile or DMR network — the MCC is reused here purely as a stable,
internationally-coordinated numeric prefix.
Use your country's MCC as the leading digits of `LOCAL_PREFIX`, and use the
same prefix for the matching `REMOTE_PREFIX` on every other reflector that
trunks to you. Sub-national TGs extend the MCC (e.g. Lazio = `22201` under
Italy's `222`); longest-prefix-match routes them automatically.
## Common amateur-radio countries
A representative table covering the countries that appear in
[`WW_DEPLOYMENT.md`](WW_DEPLOYMENT.md). For anything not listed, look up the
MCC in your national telecom regulator's allocation or in the ITU-T E.212
list (see "Where to find more" below).
| ISO 3166-1 | Country | MCC(s) | Notes |
|------------|-----------------|--------------------------------|--------------------------------|
| AR | Argentina | 722 | |
| AT | Austria | 232 | |
| AU | Australia | 505 | |
| BE | Belgium | 206 | |
| BR | Brazil | 724 | |
| CA | Canada | 302 | |
| CH | Switzerland | 228 | |
| CZ | Czech Republic | 230 | |
| DE | Germany | 262 | |
| DK | Denmark | 238 | |
| ES | Spain | 214 | |
| FI | Finland | 244 | |
| FR | France | 208 | |
| IE | Ireland | 272 | |
| IT | Italy | 222 | |
| JP | Japan | 440, 441 | Two MCC blocks |
| MX | Mexico | 334 | |
| NL | Netherlands | 204 | |
| NO | Norway | 242 | |
| NZ | New Zealand | 530 | |
| PL | Poland | 260 | |
| PT | Portugal | 268 | |
| SE | Sweden | 240 | |
| UK | United Kingdom | 234, 235 | Two MCC blocks |
| US | United States | 310, 311, 312, 313, 314, 315, 316 | Seven MCC blocks |
## Countries with multiple MCCs
A few countries hold more than one MCC allocation. Configure all of them as a
comma-separated list on the country's reflector:
```ini
LOCAL_PREFIX=310,311,312,313,314,315,316 # United States
LOCAL_PREFIX=234,235 # United Kingdom
LOCAL_PREFIX=440,441 # Japan
```
Peers trunking to that country should mirror the same list in `REMOTE_PREFIX`.
## Where to find more
The authoritative source is **ITU-T Recommendation E.212**, "List of Mobile
Country or Geographical Area Codes". A more readable cross-reference,
including operator allocations within each MCC, is the public Wikipedia
article "Mobile country code". Both list every country and territory; this
file only mirrors the subset used in the deployment examples in
[`WW_DEPLOYMENT.md`](WW_DEPLOYMENT.md) and [`DEPLOYMENT_ITALY.md`](DEPLOYMENT_ITALY.md).