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

FreeSWITCH SVN brian at freeswitch.org
Tue Jan 27 15:34:43 PST 2009


Author: brian
Date: Tue Jan 27 17:34:43 2009
New Revision: 11523

Log:
MINTWO flag to kick both out if its two

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

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	Tue Jan 27 17:34:43 2009
@@ -140,7 +140,8 @@
 	MFLAG_ENDCONF = (1 << 9),
 	MFLAG_HAS_AUDIO = (1 << 10),
 	MFLAG_TALKING = (1 << 11),
-	MFLAG_RESTART = (1 << 12)
+	MFLAG_RESTART = (1 << 12),
+	MFLAG_MINTWO = (1 << 13)
 } member_flag_t;
 
 typedef enum {
@@ -4307,6 +4308,10 @@
 		if (strstr(flags, "endconf")) {
 			*f |= MFLAG_ENDCONF;
 		}
+
+		if (strstr(flags, "mintwo")) {
+			*f |= MFLAG_MINTWO;
+		}
 	}
 }
 
@@ -4815,6 +4820,10 @@
 	set_mflags(flags_str, &mflags);
 	switch_set_flag_locked((&member), MFLAG_RUNNING | mflags);
 
+	if (mflags & MFLAG_MINTWO) {
+		conference->min = 2;
+	}
+	
 	/* Add the caller to the conference */
 	if (conference_add_member(conference, &member) != SWITCH_STATUS_SUCCESS) {
 		switch_core_codec_destroy(&member.read_codec);



More information about the Freeswitch-svn mailing list