implement disableCompositeFlag configuration parameter to disable flagging the control channel as composite in a voice on control condition;

pull/12/head
Bryan Biedenkapp 4 years ago
parent c537deeaf4
commit 2aecd682c3

@ -56,6 +56,7 @@ protocols:
interval: 300 interval: 300
duration: 1 duration: 1
voiceOnControl: false voiceOnControl: false
disableCompositeFlag: false
inhibitIllegal: false inhibitIllegal: false
legacyGroupGrnt: true legacyGroupGrnt: true
legacyGroupReg: false legacyGroupReg: false

@ -222,14 +222,17 @@ void Control::setOptions(yaml::Node& conf, const std::string cwCallsign, const s
m_disableNetworkHDU = p25Protocol["disableNetworkHDU"].as<bool>(false); m_disableNetworkHDU = p25Protocol["disableNetworkHDU"].as<bool>(false);
bool disableCompositeFlag = p25Protocol["disableCompositeFlag"].as<bool>(false);
uint8_t serviceClass = P25_SVC_CLS_VOICE | P25_SVC_CLS_DATA; uint8_t serviceClass = P25_SVC_CLS_VOICE | P25_SVC_CLS_DATA;
if (m_control) { if (m_control) {
serviceClass |= P25_SVC_CLS_REG; serviceClass |= P25_SVC_CLS_REG;
} }
if (m_voiceOnControl) { if (m_voiceOnControl) {
if (!disableCompositeFlag) {
serviceClass |= P25_SVC_CLS_COMPOSITE; serviceClass |= P25_SVC_CLS_COMPOSITE;
} }
}
m_siteData = SiteData(netId, sysId, rfssId, siteId, 0U, channelId, channelNo, serviceClass); m_siteData = SiteData(netId, sysId, rfssId, siteId, 0U, channelId, channelNo, serviceClass);
m_siteData.setCallsign(cwCallsign); m_siteData.setCallsign(cwCallsign);

Loading…
Cancel
Save

Powered by TurnKey Linux.