[Freeswitch-svn] [commit] r4067 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN anthm at freeswitch.org
Sat Jan 27 11:37:10 EST 2007


Author: anthm
Date: Sat Jan 27 11:37:10 2007
New Revision: 4067

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
fix mute

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Sat Jan 27 11:37:10 2007
@@ -911,6 +911,9 @@
 			conf_api_sub_mute(member, NULL, NULL);
 		} else {
 			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 @@
 	if (member != NULL) {
 		if (switch_test_flag(member, MFLAG_CAN_SPEAK)) {
 			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 {
 			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);
+            }
 		}
 	}
 }



More information about the Freeswitch-svn mailing list