From: Jason Parker Date: Thu, 12 Nov 2009 23:30:10 +0000 (+0000) Subject: Fix mute toggling on OSS channels. X-Git-Tag: 11.0.0-beta1~3864 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1ec2df832ef2207311382b912e2e95a13fb398e;p=thirdparty%2Fasterisk.git Fix mute toggling on OSS channels. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@229750 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 6e1fff8aa9..37717049e2 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -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]; if (!strcasecmp(s, "mute")) - o->mute = toggle ? ~o->mute : 1; + o->mute = toggle ? !o->mute : 1; else if (!strcasecmp(s, "unmute")) - o->mute = toggle ? ~o->mute : 0; + o->mute = toggle ? !o->mute : 0; else return CLI_SHOWUSAGE; ast_cli(a->fd, "Console mic is %s\n", o->mute ? "off" : "on");