From 053a74843ca60f6135afb468c27cee67c4ee3136 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 19 Jun 2023 12:58:06 -0400 Subject: [PATCH] add blatent error message for my sanity during debugging; --- src/p25/packet/Voice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p25/packet/Voice.cpp b/src/p25/packet/Voice.cpp index 492871dd..e3d9a4f6 100644 --- a/src/p25/packet/Voice.cpp +++ b/src/p25/packet/Voice.cpp @@ -1138,6 +1138,10 @@ void Voice::writeNet_LDU1() } } else { + if (m_p25->m_rfLastDstId != 0U) { + resetNet(); + return; + } LogWarning(LOG_NET, P25_LDU1_STR ", last LDU1 LC has bad data, dstId = 0"); } @@ -1272,6 +1276,8 @@ void Voice::writeNet_LDU1() (m_netLC.getPriority() & 0x07U); // Priority if (!m_p25->m_trunk->writeRF_TSDU_Grant(srcId, dstId, serviceOptions, group, false, true)) { + LogError(LOG_NET, P25_HDU_STR " call failure, not granted, this should not happen, dstId = %u", dstId); + if (m_network != nullptr) m_network->resetP25();