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

FreeSWITCH SVN mikej at freeswitch.org
Wed Feb 4 15:16:32 PST 2009


Author: mikej
Date: Wed Feb  4 17:16:32 2009
New Revision: 11644

Log:
mod_conference: add conference list summary command (MODAPP-197)

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	Wed Feb  4 17:16:32 2009
@@ -3060,6 +3060,7 @@
 	void *val;
 	char *d = ";";
 	int pretty = 0;
+	int summary = 0;
 	int argofs = (argc >= 2 && strcasecmp(argv[1], "list") == 0);	/* detect being called from chat vs. api */
 
 	if (argv[1 + argofs]) {
@@ -3078,6 +3079,8 @@
 			}
 		} else if (strcasecmp(argv[1 + argofs], "pretty") == 0) {
 			pretty = 1;
+		} else if (strcasecmp(argv[1 + argofs], "summary") == 0) {
+			summary = 1;
 		}
 	}
 
@@ -3090,10 +3093,12 @@
 								   conference->name,
 								   conference->count, conference->count == 1 ? "" : "s", switch_test_flag(conference, CFLAG_LOCKED) ? " locked" : "");
 			count++;
-			if (pretty) {
-				conference_list_pretty(conference, stream);
-			} else {
-				conference_list(conference, stream, d);
+			if (!summary) {
+				if (pretty) {
+					conference_list_pretty(conference, stream);
+				} else {
+					conference_list(conference, stream, d);
+				}
 			}
 		}
 	} else {



More information about the Freeswitch-svn mailing list