aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-12 23:31:44 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-12 23:31:44 +0000
commit3eaf6902ca979fe1686545a40cf7d579db36a76e (patch)
treeddc6396b7b52cf4cb69f0c43a3d7b80fe5dd2664 /channels/chan_oss.c
parentda60bd892e599e9c5e2a64306882e80088eb66dc (diff)
Merged revisions 229750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r229750 | qwell | 2009-11-12 17:30:10 -0600 (Thu, 12 Nov 2009) | 1 line Fix mute toggling on OSS channels. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@229752 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r--channels/chan_oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 66de2dd7b..a7e41899a 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1147,9 +1147,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");