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:
Audric committed 2026-04-15 13:45:00 +02:00
1 parent aed5566956
commit bc412e1847
6 files changed
+10 -98

No files matched your search

-6
View File
@@ -56,12 +56,6 @@ class RedisStore : public sigc::trackable
std::string loadTrunkFilter(const std::string& section,
const std::string& field); // "blacklist"|"allow"
std::map<uint32_t, uint32_t> loadTrunkTgMap(const std::string& section);
std::set<std::string> loadTrunkMutes(const std::string& section);
// Mute set ops (sync, used by PTY persistence).
void addTrunkMute(const std::string& section, const std::string& callsign);
void removeTrunkMute(const std::string& section, const std::string& callsign);
// Publish a config.changed scope token (sync).
void publishConfigChanged(const std::string& scope);