Revision
15991
Author
anthm
Date
2009-12-17 15:04:54 -0600 (Thu, 17 Dec 2009)

Log Message

reset audio level on mute/unmute

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_async.c (15990 => 15991)


--- freeswitch/trunk/src/switch_ivr_async.c	2009-12-17 20:49:46 UTC (rev 15990)
+++ freeswitch/trunk/src/switch_ivr_async.c	2009-12-17 21:04:54 UTC (rev 15991)
@@ -1462,9 +1462,11 @@
 	if (!strcasecmp(cmd, "mute")) {
 		if (c_read) {
 			pvt->read_mute = level;
+			pvt->read_level = 0;
 		}
 		if (c_write) {
 			pvt->write_mute = level;
+			pvt->write_level = 0;
 		}
 	} else if (!strcasecmp(cmd, "level")) {
 		if (level < 5 && level > -5) {