From 753ad09c6f006fab697e59dd2f8a194d29afc163 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sun, 28 Dec 2025 20:33:14 -0500 Subject: [PATCH] BUGFIX: dvmpatch did not properly release the network stream ID at the termination of a call, resulting in a hang up; --- src/common/network/Network.cpp | 1 - src/patch/HostPatch.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/network/Network.cpp b/src/common/network/Network.cpp index 8814fdb6..f2d5913e 100644 --- a/src/common/network/Network.cpp +++ b/src/common/network/Network.cpp @@ -472,7 +472,6 @@ void Network::clock(uint32_t ms) } } - if (m_debug) Utils::dump(1U, "Network::clock(), Network Rx, P25", buffer.get(), length); if (length > 512) diff --git a/src/patch/HostPatch.cpp b/src/patch/HostPatch.cpp index 563d49d8..45697a13 100644 --- a/src/patch/HostPatch.cpp +++ b/src/patch/HostPatch.cpp @@ -729,6 +729,7 @@ void HostPatch::processDMRNetwork(uint8_t* buffer, uint32_t length) m_callInProgress = false; m_rxStartTime = 0U; m_rxStreamId = 0U; + m_network->resetDMR(slotNo); return; } @@ -1078,6 +1079,8 @@ void HostPatch::processP25Network(uint8_t* buffer, uint32_t length) m_p25SrcCrypto->resetKeystream(); m_p25DstCrypto->clearMI(); m_p25DstCrypto->resetKeystream(); + + m_network->resetP25(); return; }