From 75583df7794f7b70f486db359ec10ded968d50a3 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Fri, 27 Feb 2026 22:53:55 -0500 Subject: [PATCH] reset callStartTime for TGs who receive Non-Call TDU/Terminators; --- src/fne/network/callhandler/TagDMRData.cpp | 4 ++++ src/fne/network/callhandler/TagP25Data.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/fne/network/callhandler/TagDMRData.cpp b/src/fne/network/callhandler/TagDMRData.cpp index 33fb4b34..7c1709b4 100644 --- a/src/fne/network/callhandler/TagDMRData.cpp +++ b/src/fne/network/callhandler/TagDMRData.cpp @@ -235,6 +235,10 @@ bool TagDMRData::processFrame(const uint8_t* data, uint32_t len, uint32_t peerId LogInfoEx(LOG_PEER, NONCALL_END_LOG); else if (!fromUpstream) LogInfoEx(LOG_MASTER, NONCALL_END_LOG); + + m_status.lock(false); + m_status[dstId].callStartTime = pktTime; // because Non-Call Terminators can just happen lets reset the callStartTime to pktTime to prevent insane durations + m_status.unlock(); } } diff --git a/src/fne/network/callhandler/TagP25Data.cpp b/src/fne/network/callhandler/TagP25Data.cpp index 3b0ffe5a..8b6fbd6b 100644 --- a/src/fne/network/callhandler/TagP25Data.cpp +++ b/src/fne/network/callhandler/TagP25Data.cpp @@ -324,6 +324,10 @@ bool TagP25Data::processFrame(const uint8_t* data, uint32_t len, uint32_t peerId LogInfoEx(LOG_PEER, NONCALL_TDU_LOG); else if (!fromUpstream) LogInfoEx(LOG_MASTER, NONCALL_TDU_LOG); + + m_status.lock(false); + m_status[dstId].callStartTime = pktTime; // because Non-Call TDUs can just happen lets reset the callStartTime to pktTime to prevent insane durations + m_status.unlock(); } }