|
|
|
|
@ -177,13 +177,15 @@ int HostFNE::run()
|
|
|
|
|
// try to load radio IDs table
|
|
|
|
|
std::string ridLookupFile = systemConf["radio_id"]["file"].as<std::string>();
|
|
|
|
|
uint32_t ridReloadTime = systemConf["radio_id"]["time"].as<uint32_t>(0U);
|
|
|
|
|
bool verboseRIDRules = systemConf["radio_id"]["verbose"].as<bool>(false);
|
|
|
|
|
|
|
|
|
|
LogInfo("Radio Id Lookups");
|
|
|
|
|
LogInfo(" File: %s", ridLookupFile.length() > 0U ? ridLookupFile.c_str() : "None");
|
|
|
|
|
if (ridReloadTime > 0U)
|
|
|
|
|
LogInfo(" Reload: %u mins", ridReloadTime);
|
|
|
|
|
LogInfo(" Verbose: %s", verboseRIDRules ? "true" : "false");
|
|
|
|
|
|
|
|
|
|
m_ridLookup = new RadioIdLookup(ridLookupFile, ridReloadTime, true);
|
|
|
|
|
m_ridLookup = new RadioIdLookup(ridLookupFile, ridReloadTime, true, verboseRIDRules);
|
|
|
|
|
m_ridLookup->read();
|
|
|
|
|
|
|
|
|
|
// initialize master networking
|
|
|
|
|
@ -400,6 +402,7 @@ bool HostFNE::readParams()
|
|
|
|
|
yaml::Node talkgroupRules = masterConf["talkgroup_rules"];
|
|
|
|
|
std::string talkgroupConfig = talkgroupRules["file"].as<std::string>();
|
|
|
|
|
uint32_t talkgroupConfigReload = talkgroupRules["time"].as<uint32_t>(30U);
|
|
|
|
|
bool verboseTalkgroupRules = talkgroupRules["verbose"].as<bool>(true);
|
|
|
|
|
|
|
|
|
|
yaml::Node adjSiteMapRules = masterConf["adj_site_map"];
|
|
|
|
|
std::string adjSiteMapConfig = adjSiteMapRules["file"].as<std::string>();
|
|
|
|
|
@ -417,13 +420,15 @@ bool HostFNE::readParams()
|
|
|
|
|
std::string peerListLookupFile = systemConf["peer_acl"]["file"].as<std::string>();
|
|
|
|
|
bool peerListLookupEnable = systemConf["peer_acl"]["enable"].as<bool>(false);
|
|
|
|
|
uint32_t peerListConfigReload = systemConf["peer_acl"]["time"].as<uint32_t>(30U);
|
|
|
|
|
bool verbosePeerListRules = systemConf["peer_acl"]["verbose"].as<bool>(true);
|
|
|
|
|
|
|
|
|
|
LogInfo("Talkgroup Rule Lookups");
|
|
|
|
|
LogInfo(" File: %s", talkgroupConfig.length() > 0U ? talkgroupConfig.c_str() : "None");
|
|
|
|
|
if (talkgroupConfigReload > 0U)
|
|
|
|
|
LogInfo(" Reload: %u mins", talkgroupConfigReload);
|
|
|
|
|
LogInfo(" Verbose: %s", verboseTalkgroupRules ? "true" : "false");
|
|
|
|
|
|
|
|
|
|
m_tidLookup = new TalkgroupRulesLookup(talkgroupConfig, talkgroupConfigReload, true);
|
|
|
|
|
m_tidLookup = new TalkgroupRulesLookup(talkgroupConfig, talkgroupConfigReload, true, verboseTalkgroupRules);
|
|
|
|
|
m_tidLookup->sendTalkgroups(sendTalkgroups);
|
|
|
|
|
m_tidLookup->read();
|
|
|
|
|
|
|
|
|
|
@ -433,8 +438,9 @@ bool HostFNE::readParams()
|
|
|
|
|
LogInfo(" File: %s", peerListLookupFile.length() > 0U ? peerListLookupFile.c_str() : "None");
|
|
|
|
|
if (peerListConfigReload > 0U)
|
|
|
|
|
LogInfo(" Reload: %u mins", peerListConfigReload);
|
|
|
|
|
LogInfo(" Verbose: %s", verbosePeerListRules ? "true" : "false");
|
|
|
|
|
|
|
|
|
|
m_peerListLookup = new PeerListLookup(peerListLookupFile, peerListConfigReload, peerListLookupEnable);
|
|
|
|
|
m_peerListLookup = new PeerListLookup(peerListLookupFile, peerListConfigReload, peerListLookupEnable, verbosePeerListRules);
|
|
|
|
|
m_peerListLookup->read();
|
|
|
|
|
|
|
|
|
|
LogInfo("Adjacent Site Map Lookups");
|
|
|
|
|
|