diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 23:30:10 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 23:30:10 +0000 |
commit | f1a42f813ca15d7b340c8a9ea4076cd9882cebe2 (patch) | |
tree | 326b4d6e5b1c9ef08e5fb48f57af2b5badbb04c8 /channels/chan_oss.c | |
parent | 4bd99584e5bbc16dae991b7dc3eb81e12d1a18b6 (diff) |
Fix mute toggling on OSS channels.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229750 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r-- | channels/chan_oss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 6e1fff8aa..37717049e 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"); |