[asterisk-commits] qwell: trunk r229750 - /trunk/channels/chan_oss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Nov 12 17:30:13 CST 2009
Author: qwell
Date: Thu Nov 12 17:30:10 2009
New Revision: 229750
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229750
Log:
Fix mute toggling on OSS channels.
Modified:
trunk/channels/chan_oss.c
Modified: trunk/channels/chan_oss.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_oss.c?view=diff&rev=229750&r1=229749&r2=229750
==============================================================================
--- trunk/channels/chan_oss.c (original)
+++ trunk/channels/chan_oss.c Thu Nov 12 17:30:10 2009
@@ -1140,9 +1140,9 @@
}
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");
More information about the asterisk-commits
mailing list