git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4067 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-01-27 16:37:10 +00:00
parent 85dab893d9
commit b4e374af10
1 changed files with 9 additions and 2 deletions

View File

@ -911,6 +911,9 @@ static void conference_loop_fn_mute_toggle(conference_member_t *member, void *da
conf_api_sub_mute(member, NULL, NULL); conf_api_sub_mute(member, NULL, NULL);
} else { } else {
conf_api_sub_unmute(member, NULL, NULL); conf_api_sub_unmute(member, NULL, NULL);
if (!switch_test_flag(member, MFLAG_CAN_HEAR)) {
conf_api_sub_undeaf(member, NULL, NULL);
}
} }
} }
} }
@ -920,10 +923,14 @@ static void conference_loop_fn_deafmute_toggle(conference_member_t *member, void
if (member != NULL) { if (member != NULL) {
if (switch_test_flag(member, MFLAG_CAN_SPEAK)) { if (switch_test_flag(member, MFLAG_CAN_SPEAK)) {
conf_api_sub_mute(member, NULL, NULL); conf_api_sub_mute(member, NULL, NULL);
conf_api_sub_deaf(member, NULL, NULL); if (switch_test_flag(member, MFLAG_CAN_HEAR)) {
conf_api_sub_deaf(member, NULL, NULL);
}
} else { } else {
conf_api_sub_unmute(member, NULL, NULL); conf_api_sub_unmute(member, NULL, NULL);
conf_api_sub_undeaf(member, NULL, NULL); if (!switch_test_flag(member, MFLAG_CAN_HEAR)) {
conf_api_sub_undeaf(member, NULL, NULL);
}
} }
} }
} }