Commit Graph
7 Commits
Author SHA1 Message Date
Audric 962e1ffc10 docs: surface SATELLITE_FILTER in /status + bump test count to 34
README: add an "Observability" paragraph noting that the active filter
appears under /status.satellites[<id>].filter — and by extension in the
MQTT retained status topic and Redis live📡<id> snapshot,
since those surfaces reserialize the same JSON. Omitted when no filter
is set.

DESIGN_SATELLITE_AND_CLUSTER: add an "Observable state" row to the
TrunkLink vs SatelliteLink comparison table listing the fields in
SatelliteLink::statusJson() including the new filter field.

tests/TESTS.md: bump trunk test count 33 -> 34 and add a row for
test_16c (satellite filter visible in /status).
2026-04-20 15:16:27 +02:00
Audric de47c62dfa docs: document SATELLITE_FILTER and bump test count to 33
README: drop "satellite forwards all TGs unconditionally" claim. Add a
SATELLITE_FILTER line to the satellite-side config example and a section
explaining the bidirectional, opt-in scope (advertised via
MsgTrunkFilter type 122).

DESIGN_SATELLITE_AND_CLUSTER: update the routing comparison row —
satellite is still unfiltered by default but now has SATELLITE_FILTER.

TRUNK_PROTOCOL: promote MsgTrunkFilter from "intended for" to
"used by" satellite links, describe when it is sent.

tests/TESTS.md: bump trunk test count 32 -> 33 and add a row for
test_16b (satellite TG filter honored by parent).
2026-04-20 14:42:26 +02:00
Audric aa4b41f702 Update all documentation for mandatory matching trunk section names
Both sides of a trunk link must now use the same [TRUNK_x] section
name, agreed upon by both sysops. Updated all examples across README,
TRUNK_PROTOCOL, INSTALL, DEPLOYMENT_ITALY (EN+IT), and
DESIGN_SATELLITE_AND_CLUSTER to use sorted-pair naming convention
(e.g. TRUNK_01_02 for the link between prefix 01 and 02).
2026-04-05 18:33:29 +02:00
Audric 8cf96f9ba5 Update docs to reflect decoupled trunk connections and implemented features
Connection handling docs still described the old priority-based tie-breaking
model removed in 3b7831c. Updated TRUNK_PROTOCOL.md, README.md to describe
the current dual-connection model (outbound preferred, inbound fallback).
Marked satellite and cluster TG features as implemented in design doc.
Added satellite files to TRUNK_PROTOCOL.md files-changed table.
2026-03-28 16:01:34 +01:00
Audric 685d7253ff Fix trunk receive-side TG filtering and add integration test suite
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.
2026-03-27 14:43:57 +01:00
Audric dda6ac5531 docs: clarify cluster TG subscription model and satellite TG filtering
Cluster TGs are a per-reflector subscription choice, not a mesh-wide
requirement. Document that satellites forward all TGs unconditionally
with no prefix or cluster TG filtering.
2026-03-24 16:59:42 +01:00
Audric 166e57f445 Implement cluster TGs and /config HTTP endpoint
Cluster TGs (BrandMeister-style): talk groups broadcast to all trunk
peers regardless of prefix ownership. Configured via CLUSTER_TGS in
[GLOBAL]. Routing checks in TrunkLink now accept isSharedTG || isClusterTG
for all 8 inbound/outbound handlers. Validated at startup to not overlap
with any LOCAL_PREFIX or REMOTE_PREFIX.

New GET /config endpoint returns static configuration (local_prefix,
cluster_tgs, listen_port, http_port, trunk peers) for dashboard use.

Docs: cluster TG sections added to README, DEPLOYMENT_ITALY, and
Italian translation. Design doc for satellite reflectors and cluster
TGs added.
2026-03-20 12:41:26 +01:00