From aa2af1d6c40c3ff678bfa43a5169294a1fe476c0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 17 Dec 2009 21:04:54 +0000 Subject: [PATCH] reset audio level on mute/unmute git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15991 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_async.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index bc8bc53c9e..6c3bce19b4 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -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) {