fix(twin): deliver mirrored trunk audio to monitor-only twin clients
TwinLink::handleMsgPeerAudio and handleMsgPeerFlush broadcast to local
clients with a selected-only TgFilter, whereas the sibling receive paths
(TrunkLink, SatelliteLink, SatelliteClient) use the composite
selected-OR-(passive-observer monitor) filter. TwinLink was the lone
outlier — the bare filter was copied in when the trunk->twin mirror was
added (6a6cfad) without the monitor arbitration the other paths already had.
When a PAIRED external peer that OWNS a TG fans audio into a twin pair it
picks a single sticky socket, so the non-sticky twin only receives that
audio via the trunk->twin mirror. A monitor-only listener on the non-sticky
twin was silently dropped, while a selecting listener there (and any
listener on the sticky twin, which gets the direct trunk path) heard fine.
Reported in the field on a 255/256 twin+single deployment: clients
monitoring the single peer's TG were silent on one twin and fine on the other.
- TwinLink::handleMsgPeerAudio / handleMsgPeerFlush: use the same composite
selected-OR-monitor filter as TrunkLink, preserving the passive-observer /
earliest-monitor-talker arbitration.
- tests: test_X5_paired_inbound_owner_tg_reaches_monitoring_twin_clients —
mirror image of test_X4 (TG owned by the remote PAIRED peer; selecting and
monitoring receivers on both twins). Red before the fix, green after.
- topology.py: add two test users (N0FOUR, N0FIVE) so the test can place
five distinct callsigns.
This commit is contained in:
1 parent
b268bfe595
commit
f1d4afd032
3 files changed
+135
-4
No files matched your search
@@ -115,6 +115,8 @@ TEST_CLIENTS = [
|
||||
{"callsign": "N0TEST", "group": "TestGroup", "password": "testpass"},
|
||||
{"callsign": "N0SEND", "group": "TestGroup", "password": "testpass"},
|
||||
{"callsign": "N0THRD", "group": "TestGroup", "password": "testpass"},
|
||||
{"callsign": "N0FOUR", "group": "TestGroup", "password": "testpass"},
|
||||
{"callsign": "N0FIVE", "group": "TestGroup", "password": "testpass"},
|
||||
]
|
||||
|
||||
# Shared secret between each pair: sorted tuple of names → secret
|
||||
|
||||
Reference in new issue
Block a user