Persist PTY MUTE/UNMUTE to Redis when [REDIS] is configured
This commit is contained in:
1 parent
2fc63fc6f3
commit
92c2a94940
1 file changed
+7
@@ -2014,6 +2014,13 @@ 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