]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6950 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Oct 2014 20:01:02 +0000 (15:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Oct 2014 20:01:08 +0000 (15:01 -0500)
src/mod/applications/mod_conference/mod_conference.c

index dbcab987c81e112a788e123f1653ce2a2b7bba49..4fbce0152af069a4877a571ee245c8b090992cff 100644 (file)
@@ -2822,6 +2822,10 @@ static switch_status_t conference_del_member(conference_obj_t *conference, confe
                gen_arc(conference, NULL);
        }
 
+       if (member->session) {
+               switch_core_media_hard_mute(member->session, SWITCH_FALSE);
+       }
+
        switch_mutex_unlock(conference->mutex);
        status = SWITCH_STATUS_SUCCESS;
 
@@ -9574,6 +9578,11 @@ SWITCH_STANDARD_APP(conference_function)
        mflags = conference->mflags;
        set_mflags(flags_str, &mflags);
        mflags |= MFLAG_RUNNING;
+
+       if (!(mflags & MFLAG_CAN_SPEAK) && (mflags & MFLAG_INDICATE_MUTE)) {
+               switch_core_media_hard_mute(member.session, SWITCH_TRUE);
+       }
+
        if (mpin_matched) {
                mflags |= MFLAG_MOD;
        }