Fix bidirectional trunk routing and monitoring client notifications
Two bugs prevented real-world trunk conversations from working: 1. onTrunkTalkerUpdated only notified clients selected on a TG, not clients monitoring it. SvxLink repeaters monitoring a foreign TG never received MsgTalkerStart and could not auto-switch. Fixed by adding TgMonitorFilter to trunk talker broadcasts, matching the existing behavior of onTalkerUpdated for local talkers. 2. Trunk TG routing was one-way: when a client visited a foreign TG, isSharedTG forwarded to the owner, but the owner had no return path. Added per-link peer interest tracking — when a peer sends MsgTrunkTalkerStart for a TG, the receiving side records interest and forwards local activity on that TG back. Interest refreshes on audio, expires after 10 minutes idle, clears on disconnect. New integration test verifies the full round-trip: client-A talks on a foreign TG, monitoring client-B receives the notification, client-B replies, and client-A receives audio back through the trunk.
This commit is contained in:
1 parent
8cf96f9ba5
commit
accb4b3686
7 files changed
+200
-17
No files matched your search
@@ -21,6 +21,7 @@ _deps/
|
||||
# Claude
|
||||
.claude/
|
||||
CLAUDE.md
|
||||
docs/superpowers/
|
||||
|
||||
# Test generated files (regenerated by tests/generate_configs.py)
|
||||
tests/configs/
|
||||
|
||||
Reference in new issue
Block a user