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
@@ -2036,12 +2036,6 @@ void Reflector::ctrlPtyDataReceived(const void *buf, size_t count)
|
||||
if (subcmd == "MUTE") link->muteCallsign(callsign);
|
||||
else link->unmuteCallsign(callsign);
|
||||
|
||||
if (m_redis) {
|
||||
if (subcmd == "MUTE") m_redis->addTrunkMute(section, callsign);
|
||||
else m_redis->removeTrunkMute(section, callsign);
|
||||
m_redis->publishConfigChanged("trunk:" + section);
|
||||
}
|
||||
|
||||
m_cmd_pty->write(section + ": " + subcmd + " " + callsign + "\n");
|
||||
}
|
||||
else if (subcmd == "RELOAD")
|
||||
|
||||
Reference in new issue
Block a user