TwinLink: mirror external trunk-talker state to partner

When TrunkLink receives MsgTrunkTalkerStart/Stop from an external peer,
Reflector now forwards those events to TwinLink via
notifyExternalTrunkTalkerStart/Stop.  TwinLink sends MsgTwinExtTalkerStart
(type 123) / MsgTwinExtTalkerStop (type 124) over the twin link, and the
receiving side calls TGHandler::setTrunkTalkerForTGViaPeer so the partner
twin blocks local clients from keying up the TG.  On disconnect,
clearPeerTalkerState iterates held TGs before clearing them so the partner
is also notified.  No echo loop: Reflector::onTrunkTalkerUpdated does not
feed back into TwinLink.
This commit is contained in:
Audric committed 2026-04-15 21:30:14 +02:00
1 parent 2554efb392
commit 6fb5aa4b91
4 files changed
+54 -11

No files matched your search

+5
View File
@@ -262,6 +262,11 @@ class Reflector : public sigc::trackable
void publishRxUpdate(ReflectorClient* client);
void onClientAuthenticated(const std::string& callsign, uint32_t tg,
const std::string& ip);
void notifyExternalTrunkTalkerStart(uint32_t tg,
const std::string& peer_id,
const std::string& callsign);
void notifyExternalTrunkTalkerStop(uint32_t tg,
const std::string& peer_id);
void onTrunkStateChanged(const std::string& section,
const std::string& peer_id,
const std::string& direction, bool up,