forked from Mirrors/freeswitch
reset audio level on mute/unmute
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15991 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a11493be5d
commit
aa2af1d6c4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user