]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reset audio level on mute/unmute
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 17 Dec 2009 21:04:54 +0000 (21:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 17 Dec 2009 21:04:54 +0000 (21:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15991 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index bc8bc53c9e349fc985200f1027986174b202319f..6c3bce19b44e97dda4a0a59aa584bc1e34b98218 100644 (file)
@@ -1462,9 +1462,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_audio(switch_core_session_t *
        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) {