[asterisk-commits] qwell: branch 1.6.1 r229751 - in /branches/1.6.1: ./ channels/chan_oss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 12 17:31:15 CST 2009


Author: qwell
Date: Thu Nov 12 17:31:12 2009
New Revision: 229751

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229751
Log:
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.
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_oss.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_oss.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/channels/chan_oss.c?view=diff&rev=229751&r1=229750&r2=229751
==============================================================================
--- branches/1.6.1/channels/chan_oss.c (original)
+++ branches/1.6.1/channels/chan_oss.c Thu Nov 12 17:31:12 2009
@@ -1147,9 +1147,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