mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Fix mute toggling on OSS channels.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@229750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1140,9 +1140,9 @@ static char *console_mute(struct ast_cli_entry *e, int cmd, struct ast_cli_args
|
|||||||
}
|
}
|
||||||
s = a->argv[e->args-2];
|
s = a->argv[e->args-2];
|
||||||
if (!strcasecmp(s, "mute"))
|
if (!strcasecmp(s, "mute"))
|
||||||
o->mute = toggle ? ~o->mute : 1;
|
o->mute = toggle ? !o->mute : 1;
|
||||||
else if (!strcasecmp(s, "unmute"))
|
else if (!strcasecmp(s, "unmute"))
|
||||||
o->mute = toggle ? ~o->mute : 0;
|
o->mute = toggle ? !o->mute : 0;
|
||||||
else
|
else
|
||||||
return CLI_SHOWUSAGE;
|
return CLI_SHOWUSAGE;
|
||||||
ast_cli(a->fd, "Console mic is %s\n", o->mute ? "off" : "on");
|
ast_cli(a->fd, "Console mic is %s\n", o->mute ? "off" : "on");
|
||||||
|
|||||||
Reference in New Issue
Block a user