@ -140,6 +140,7 @@ Control::Control(bool authoritative, uint32_t ran, uint32_t callHang, uint32_t q
m_aveRSSI ( 0U ) ,
m_aveRSSI ( 0U ) ,
m_rssiCount ( 0U ) ,
m_rssiCount ( 0U ) ,
m_dumpRCCH ( dumpRCCHData ) ,
m_dumpRCCH ( dumpRCCHData ) ,
m_notifyCC ( true ) ,
m_verbose ( verbose ) ,
m_verbose ( verbose ) ,
m_debug ( debug )
m_debug ( debug )
{
{
@ -316,6 +317,10 @@ void Control::setOptions(yaml::Node& conf, bool supervisor, const std::string cw
m_trunk - > m_disableGrantSrcIdCheck = control [ " disableGrantSourceIdCheck " ] . as < bool > ( false ) ;
m_trunk - > m_disableGrantSrcIdCheck = control [ " disableGrantSourceIdCheck " ] . as < bool > ( false ) ;
yaml : : Node rfssConfig = systemConf [ " config " ] ;
yaml : : Node controlCh = rfssConfig [ " controlCh " ] ;
m_notifyCC = controlCh [ " notifyEnable " ] . as < bool > ( true ) ;
if ( printOptions ) {
if ( printOptions ) {
LogInfo ( " Silence Threshold: %u (%.1f%%) " , m_voice - > m_silenceThreshold , float ( m_voice - > m_silenceThreshold ) / 12.33F ) ;
LogInfo ( " Silence Threshold: %u (%.1f%%) " , m_voice - > m_silenceThreshold , float ( m_voice - > m_silenceThreshold ) / 12.33F ) ;
@ -893,8 +898,7 @@ void Control::notifyCC_ReleaseGrant(uint32_t dstId)
{
{
// callback REST API to release the granted TG on the specified control channel
// callback REST API to release the granted TG on the specified control channel
if ( ! m_controlChData . address ( ) . empty ( ) & & m_controlChData . port ( ) > 0 ) {
if ( ! m_controlChData . address ( ) . empty ( ) & & m_controlChData . port ( ) > 0 ) {
if ( m_controlChData . address ( ) = = " 127.0.0.1 " ) {
if ( ! m_notifyCC ) {
// cowardly ignore trying to send release grants to ourselves
return ;
return ;
}
}
@ -919,8 +923,7 @@ void Control::notifyCC_TouchGrant(uint32_t dstId)
{
{
// callback REST API to touch the granted TG on the specified control channel
// callback REST API to touch the granted TG on the specified control channel
if ( ! m_controlChData . address ( ) . empty ( ) & & m_controlChData . port ( ) > 0 ) {
if ( ! m_controlChData . address ( ) . empty ( ) & & m_controlChData . port ( ) > 0 ) {
if ( m_controlChData . address ( ) = = " 127.0.0.1 " ) {
if ( ! m_notifyCC ) {
// cowardly ignore trying to send touch grants to ourselves
return ;
return ;
}
}