correct P25 network voice grant rejection handling to reset call state and prevent denied calls from entering active network audio;

pull/141/head
Bryan Biedenkapp 1 day ago
parent 8acd571171
commit ce4c2c6c87

@ -1957,34 +1957,29 @@ void Voice::writeNet_LDU1()
LogError(LOG_NET, P25_HDU_STR " call rejected, network call not granted, dstId = %u", dstId);
}
if ((!m_p25->m_networkWatchdog.isRunning() || m_p25->m_networkWatchdog.hasExpired()) &&
m_p25->m_netLastDstId != 0U) {
LogWarning(LOG_NET, P25_HDU_STR ", call rejected, network watchdog not running or expired, netLastDstId = %u", m_p25->m_netLastDstId);
if (m_p25->m_network != nullptr)
m_p25->m_network->resetP25();
if (m_p25->m_network != nullptr)
m_p25->m_network->resetP25();
resetWithNullAudio(m_netLDU1, false);
resetWithNullAudio(m_netLDU2, false);
resetWithNullAudio(m_netLDU1, false);
resetWithNullAudio(m_netLDU2, false);
m_p25->m_netTimeoutTimer.stop();
m_p25->m_netTimeout = false;
m_p25->m_netTGHang.stop();
m_p25->m_networkWatchdog.stop();
m_p25->m_netTimeoutTimer.stop();
m_p25->m_netTimeout = false;
m_p25->m_networkWatchdog.stop();
m_netLC = lc::LC();
m_netLastLDU1 = lc::LC();
m_netLastFrameType = FrameType::DATA_UNIT;
m_p25->m_netState = RS_NET_IDLE;
m_p25->m_netLastDstId = 0U;
m_p25->m_netLastSrcId = 0U;
resetNet();
m_netLastFrameType = FrameType::DATA_UNIT;
if (m_p25->m_rfState == RS_RF_REJECTED) {
m_p25->m_rfState = RS_RF_LISTENING;
}
m_p25->m_netState = RS_NET_IDLE;
m_p25->m_netLastDstId = 0U;
m_p25->m_netLastSrcId = 0U;
return;
if (m_p25->m_rfState == RS_RF_REJECTED) {
m_p25->m_rfState = RS_RF_LISTENING;
}
return;
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.