support 0 or maximum voice frames (1233 for P25, 141 for DMR, 144 for NXDN);

3.0-rcon_maint
Bryan Biedenkapp 3 years ago
parent e788cfb836
commit 874ecd9f51

@ -164,6 +164,12 @@ void Control::setOptions(yaml::Node& conf, const std::vector<uint32_t> voiceChNo
silenceThreshold = dmr::DEFAULT_SILENCE_THRESHOLD;
}
// either MAX_DMR_VOICE_ERRORS or 0 will disable the threshold logic
if (silenceThreshold == 0) {
LogWarning(LOG_P25, "Silence threshold set to zero, defaulting to %u", dmr::MAX_DMR_VOICE_ERRORS);
silenceThreshold = dmr::MAX_DMR_VOICE_ERRORS;
}
m_slot1->setSilenceThreshold(silenceThreshold);
m_slot2->setSilenceThreshold(silenceThreshold);

@ -237,6 +237,12 @@ void Control::setOptions(yaml::Node& conf, const std::string cwCallsign, const s
m_voice->m_silenceThreshold = nxdn::DEFAULT_SILENCE_THRESHOLD;
}
// either MAX_NXDN_VOICE_ERRORS or 0 will disable the threshold logic
if (m_voice->m_silenceThreshold == 0) {
LogWarning(LOG_P25, "Silence threshold set to zero, defaulting to %u", nxdn::MAX_NXDN_VOICE_ERRORS);
m_voice->m_silenceThreshold = nxdn::MAX_NXDN_VOICE_ERRORS;
}
bool disableCompositeFlag = nxdnProtocol["disableCompositeFlag"].as<bool>(false);
uint8_t serviceClass = NXDN_SIF1_VOICE_CALL_SVC | NXDN_SIF1_DATA_CALL_SVC;
if (m_control) {

@ -268,6 +268,12 @@ void Control::setOptions(yaml::Node& conf, const std::string cwCallsign, const s
m_voice->m_silenceThreshold = p25::DEFAULT_SILENCE_THRESHOLD;
}
// either MAX_P25_VOICE_ERRORS or 0 will disable the threshold logic
if (m_voice->m_silenceThreshold == 0) {
LogWarning(LOG_P25, "Silence threshold set to zero, defaulting to %u", p25::MAX_P25_VOICE_ERRORS);
m_voice->m_silenceThreshold = p25::MAX_P25_VOICE_ERRORS;
}
m_disableNetworkHDU = p25Protocol["disableNetworkHDU"].as<bool>(false);
bool disableCompositeFlag = p25Protocol["disableCompositeFlag"].as<bool>(false);

Loading…
Cancel
Save

Powered by TurnKey Linux.