CONCEPTS.md stated that a TG matching no mesh prefix is "never sent over
any trunk". That is false on a link configured with ROUTABLE_PREFIXES=*:
the wildcard is a zero-length match in TrunkLink::isSharedTG, so when no
real prefix matches it still claims the TG and the audio is forwarded up
the uplink. The peer then drops it (it matches neither its LOCAL_PREFIX
nor the link's REMOTE_PREFIX), so nobody hears it -- but it does cross
the wire, which matters for a TG intended to stay private.
Qualify both places that promised local-only behaviour, and point at an
explicit ROUTABLE_PREFIXES list as the way to keep a TG from egressing.
Re-home a short local talk group (e.g. 8) under the reflector's own owned
prefix as a globally-unique number (e.g. 2620008) via a single [GLOBAL]
LOCAL_ALIASES entry, so it routes across the trunk mesh like any owned TG
while local users keep dialing the short number.
- Config: LOCAL_ALIASES=localTG:aliasTG[/dir] (dir in|out, omitted = two-way);
aliasTG must be owned by a LOCAL_PREFIX. Rejects unowned alias, an owned
short side, duplicate short keys, and numeric overflow.
- Boundary rewrite: prefix routing / owner-relay / peer-interest run on the
long owned number; local delivery and talker arbitration run on the short
number, bridged in the four inbound trunk handlers.
- Rewrite-on-select folds a client that dials the long number onto the short
number (select + monitor), so the two are one conversation locally and on
the mesh.
- Twin: external-talker notify uses the short number to match the audio
mirror; disconnect cleanup folds to short so an aliased TG cannot wedge.
- /status exposes local_aliases; satellite nodes warn that the setting is
ignored (a local alias belongs on the mesh parent that owns the prefix).
- Docs (PEER_PROTOCOL, CONCEPTS, conf template) and integration tests
(tests/test_alias.py): two-way / in / out, rewrite-on-select, status,
validation, disconnect-wedge, and duplicate-key coverage.
A reflector does not impose the prefix convention on its nodes. Make explicit
the third routing case (previously undocumented): a TG matching no prefix in
the mesh has no owner and stays local-only (relayed among the reflector's own
nodes, never trunked), exactly like stock SvxReflector.
Routing is decided solely by longest-prefix-match on the number itself,
regardless of length: a conforming number is routable wherever its prefix
points *if that prefix is owned by a reflector in the mesh* (e.g. 22210->222
Italy, 26201->262 Germany); a non-matching number (e.g. short 1-199 in a
typical MCC scheme) stays local and is unreachable by international traffic.
Conversely a 'local' number that happens to match a configured prefix will be
routed to that owner.
Use real in-repo MCC examples (222/262) instead of unassigned 201/401, and
state the 'if owned in the mesh' precondition. Updated README (How TG
ownership works), CONCEPTS.md (section 2), and TOPOLOGY_EXAMPLES.md; rebuilt
TOPOLOGY_EXAMPLES.pdf from the matching topology.html change.
Additive newcomer docs building on the onboarding intro:
- docs/CONCEPTS.md: the bridge between the README glossary and the wire-level
PEER_PROTOCOL.md. Explains TG-ownership/longest-prefix-match, owner-relay,
peer interest (+10-min timeout), cluster TGs (single-hop), and talker
arbitration (lower nonce wins), with a worked three-way-QSO walkthrough.
- docs/TROUBLESHOOTING.md: symptom-first checklists (trunk won't connect,
audio won't cross, one-way audio, satellite/twin issues, flapping links),
grounded in the real connect/routing rules and pointing at /status + logging.
- README: add a Contents TOC, a 'Which setup fits my deployment?' table that
surfaces the topology decision guide near the top, and index both new docs.
All in-page anchors and cross-doc links verified.