diff --git a/docs/DESIGN_SATELLITE_AND_CLUSTER.md b/docs/DESIGN_SATELLITE_AND_CLUSTER.md index 4813ab0..7292a66 100644 --- a/docs/DESIGN_SATELLITE_AND_CLUSTER.md +++ b/docs/DESIGN_SATELLITE_AND_CLUSTER.md @@ -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 diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 36e33e1..dc74c72 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -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: diff --git a/docs/MCC_COUNTRY_CODES.md b/docs/MCC_COUNTRY_CODES.md new file mode 100644 index 0000000..8df89b1 --- /dev/null +++ b/docs/MCC_COUNTRY_CODES.md @@ -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).