assume better defaults when the controlCh block is missing; split logic checks for ignoring a notifyCC_* call for clarity; add extra logging messages for whether or not CC notify is enabled, and whether or not CC REST API parameters were passed;
::LogError(LOG_DMR,"DMR Slot %u, failed to notify the CC %s:%u of the release of, dstId = %u",m_slotNo,m_controlChData.address().c_str(),m_controlChData.port(),dstId);
}
if(m_controlChData.port()==0){
return;
}
if(!m_notifyCC){
return;
}
// callback REST API to release the granted TG on the specified control channel
::LogError(LOG_DMR,"DMR Slot %u, failed to notify the CC %s:%u of the release of, dstId = %u",m_slotNo,m_controlChData.address().c_str(),m_controlChData.port(),dstId);
::LogError(LOG_DMR,"DMR Slot %u, failed to notify the CC %s:%u of the touch of, dstId = %u",m_slotNo,m_controlChData.address().c_str(),m_controlChData.port(),dstId);
}
if(m_controlChData.port()==0){
return;
}
if(!m_notifyCC){
return;
}
// callback REST API to touch the granted TG on the specified control channel
::LogError(LOG_DMR,"DMR Slot %u, failed to notify the CC %s:%u of the touch of, dstId = %u",m_slotNo,m_controlChData.address().c_str(),m_controlChData.port(),dstId);