diff --git a/config.yml b/config.yml index 3ba20f8c..349f8e8f 100644 --- a/config.yml +++ b/config.yml @@ -56,6 +56,7 @@ protocols: interval: 300 duration: 1 voiceOnControl: false + disableCompositeFlag: false inhibitIllegal: false legacyGroupGrnt: true legacyGroupReg: false diff --git a/p25/Control.cpp b/p25/Control.cpp index d4c47e5c..e13cdd30 100644 --- a/p25/Control.cpp +++ b/p25/Control.cpp @@ -222,13 +222,16 @@ void Control::setOptions(yaml::Node& conf, const std::string cwCallsign, const s m_disableNetworkHDU = p25Protocol["disableNetworkHDU"].as(false); + bool disableCompositeFlag = p25Protocol["disableCompositeFlag"].as(false); uint8_t serviceClass = P25_SVC_CLS_VOICE | P25_SVC_CLS_DATA; if (m_control) { serviceClass |= P25_SVC_CLS_REG; } if (m_voiceOnControl) { - serviceClass |= P25_SVC_CLS_COMPOSITE; + if (!disableCompositeFlag) { + serviceClass |= P25_SVC_CLS_COMPOSITE; + } } m_siteData = SiteData(netId, sysId, rfssId, siteId, 0U, channelId, channelNo, serviceClass);