diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 23:31:12 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 23:31:12 +0000 |
commit | 3ccc99c0bfb60134420c632ff7944351a410f588 (patch) | |
tree | 1a939fd84481a9300b4ed34afea377ac100b01a8 /channels | |
parent | 9817e55f67fe618354ada60699575e945f53829c (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.1@229751 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 13886cdca..cc29608ca 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"); |