fix(reflector): gate monitor TG UDP delivery on selected TG idle
Adds ReflectorClient::SelectedTgIdleFilter and wraps the TgMonitorFilter
arm at the seven UDP fanout sites that a661879 (v1.3.10) added it to.
Monitor-TG UDP audio is now delivered to a client only when its selected
TG has no active local or trunk talker; passive observers (currentTG=0)
keep receiving monitor UDP via a tg==0 short-circuit. svxlink's TCP
TalkerStart path and ++/+/plain priority logic are untouched.
Restores the pre-v1.3.10 single-TG-at-a-time invariant for selected-TG
clients while keeping test_39 (passive multi-hop) green. Adds test_40
(monitor-TG mixing regression), test_41 (priority switch via MsgSelectTG),
test_42 (passive observer sanity).
This commit is contained in:
1 parent
36d49fbbd6
commit
dc3a8c018c
7 files changed
+153
-9
No files matched your search
@@ -365,7 +365,9 @@ void SatelliteClient::handleMsgPeerAudio(std::istream& is)
|
||||
m_reflector->broadcastUdpMsg(udp_msg,
|
||||
ReflectorClient::mkOrFilter(
|
||||
ReflectorClient::TgFilter(msg.tg()),
|
||||
ReflectorClient::TgMonitorFilter(msg.tg())));
|
||||
ReflectorClient::mkAndFilter(
|
||||
ReflectorClient::TgMonitorFilter(msg.tg()),
|
||||
ReflectorClient::SelectedTgIdleFilter())));
|
||||
} /* SatelliteClient::handleMsgPeerAudio */
|
||||
|
||||
|
||||
@@ -377,7 +379,9 @@ void SatelliteClient::handleMsgPeerFlush(std::istream& is)
|
||||
m_reflector->broadcastUdpMsg(MsgUdpFlushSamples(),
|
||||
ReflectorClient::mkOrFilter(
|
||||
ReflectorClient::TgFilter(msg.tg()),
|
||||
ReflectorClient::TgMonitorFilter(msg.tg())));
|
||||
ReflectorClient::mkAndFilter(
|
||||
ReflectorClient::TgMonitorFilter(msg.tg()),
|
||||
ReflectorClient::SelectedTgIdleFilter())));
|
||||
} /* SatelliteClient::handleMsgPeerFlush */
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user