README:
- Quick start: drop the Docker command block. The repo ships no ready-to-run
svxreflector.conf (only the .conf.in template) and the compose bind-mount
hits the 'auto-create a directory' trap, so the inline 'docker compose up'
steps fail for a newcomer. Point step 1 at the template and step 2 at
INSTALL.md / DOCKER.md instead.
- Section 5 routable example: use real countries with ISO-alphabetical section
names (TRUNK_DE_IT, TRUNK_DE_FR) per the naming standard, plus a clearly
sub-national name for the regional uplink; real MCCs (IT 222, DE 262, FR 208).
docs/DOCKER.md:
- Rewrite step 1: you must create config/svxreflector.conf before first start;
warn about the bind-mount directory trap and how to recover; copy from the
.conf.in template; link the README quick start and INSTALL.md.
docs/DEPLOYMENT_ITALY.md + _IT.md:
- Add a 'Reaching international TGs' section (EN + IT): the national mesh needs
an international gateway plus ROUTABLE_PREFIXES on each region's gateway trunk
to reach foreign TGs; notes on '*' for a single-uplink leaf and BLACKLIST
precedence.
All static configuration fields (version, local_prefix, listen_port,
http_port, mode, satellite/satellite_server) are now included directly
in the /status JSON response. The /config endpoint is removed.
The receive-side handlers (handleMsgTrunkTalkerStart, handleMsgTrunkAudio,
etc.) used isSharedTG() which only checks the remote peer's prefix. This
caused non-cluster TGs to be silently dropped on the receiving reflector —
e.g. a client on reflector-a talking on TG 40001 (owned by reflector-b)
would never reach reflector-b because reflector-b checked the TG against
reflector-a's prefix instead of its own.
Add isOwnedTG() that accepts TGs matching either the local or remote
prefix, and use it in all four receive handlers. The send-side still uses
isSharedTG() (remote prefix only) which is correct.
Also add a Docker-based integration test suite (tests/) with 11 automated
tests covering handshake, routing, cross-reflector audio delivery, cluster
TGs, heartbeat, disconnect cleanup, and trunk-to-trunk isolation. An
interactive mode lets users test arbitrary TG numbers with routing verified
via reflector logs. Topology is defined once in tests/topology.py.
Fix Dockerfile to copy built shared libraries to the runtime image.