fix(twin): notify twin partner of satellite-originated talker traffic
SatelliteLink::handleMsgPeer{TalkerStart,TalkerStop,Audio,Flush} now
inform the twin partner the same way local-client TX already does
(Reflector.cpp:1433/1499/1662). Adds Reflector::forwardSatellite*ToTwin
helpers (one per event, guarded by m_twin_link != nullptr) that delegate
to TwinLink's existing onLocal* API; the satellite is presented to the
twin as a downstream-local talker, mirroring how it's already presented
to trunk peers via the parallel forwardSatellite*ToTrunks family.
Fixes issue #7. test_X3_satellite_tx_reaches_twin_partner (added in
the previous commit) now passes; full integration suite 73/73 green.
This commit is contained in:
1 parent
303186b083
commit
ace9da635b
3 files changed
+57
No files matched your search
@@ -2813,6 +2813,44 @@ void Reflector::forwardSatelliteFlushToTrunks(uint32_t tg)
|
||||
} /* Reflector::forwardSatelliteFlushToTrunks */
|
||||
|
||||
|
||||
void Reflector::forwardSatelliteAudioToTwin(uint32_t tg,
|
||||
const std::string& callsign)
|
||||
{
|
||||
if (m_twin_link != nullptr)
|
||||
{
|
||||
m_twin_link->onLocalTalkerUpdated(tg, callsign);
|
||||
}
|
||||
} /* Reflector::forwardSatelliteAudioToTwin */
|
||||
|
||||
|
||||
void Reflector::forwardSatelliteStopToTwin(uint32_t tg)
|
||||
{
|
||||
if (m_twin_link != nullptr)
|
||||
{
|
||||
m_twin_link->onLocalTalkerUpdated(tg, "");
|
||||
}
|
||||
} /* Reflector::forwardSatelliteStopToTwin */
|
||||
|
||||
|
||||
void Reflector::forwardSatelliteRawAudioToTwin(uint32_t tg,
|
||||
const std::vector<uint8_t>& audio)
|
||||
{
|
||||
if (m_twin_link != nullptr)
|
||||
{
|
||||
m_twin_link->onLocalAudio(tg, audio);
|
||||
}
|
||||
} /* Reflector::forwardSatelliteRawAudioToTwin */
|
||||
|
||||
|
||||
void Reflector::forwardSatelliteFlushToTwin(uint32_t tg)
|
||||
{
|
||||
if (m_twin_link != nullptr)
|
||||
{
|
||||
m_twin_link->onLocalFlush(tg);
|
||||
}
|
||||
} /* Reflector::forwardSatelliteFlushToTwin */
|
||||
|
||||
|
||||
void Reflector::forwardAudioToSatellitesExcept(SatelliteLink* except,
|
||||
uint32_t tg, const std::vector<uint8_t>& audio)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user