Remove Redis mute plumbing; expose mute list in /status JSON
Dashboard will write mutes directly to the PTY rather than Redis; the Redis addTrunkMute/removeTrunkMute/loadTrunkMutes methods and the PTY write-through were unused. Mute state is now reflected in the /status JSON as a per-trunk 'muted' array so operators and dashboards can see current state without polling Redis.
This commit is contained in:
1 parent
aed5566956
commit
bc412e1847
6 files changed
+10
-98
No files matched your search
@@ -154,6 +154,10 @@ class TrunkLink : public sigc::trackable
|
||||
{
|
||||
return m_muted_callsigns.count(callsign) > 0;
|
||||
}
|
||||
const std::set<std::string>& mutedCallsigns(void) const
|
||||
{
|
||||
return m_muted_callsigns;
|
||||
}
|
||||
// Re-parse BLACKLIST_TGS, ALLOW_TGS and TG_MAP from current config
|
||||
void reloadConfig(void);
|
||||
// One-line summary for TRUNK STATUS
|
||||
|
||||
Reference in new issue
Block a user