[Asterisk-cvs] asterisk/apps app_meetme.c,1.24,1.25

markster at lists.digium.com markster at lists.digium.com
Thu May 13 14:51:58 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv5515/apps

Modified Files:
	app_meetme.c 
Log Message:
Add events for join/leave (bug #1625)


Index: app_meetme.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_meetme.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- app_meetme.c	29 Apr 2004 02:30:14 -0000	1.24
+++ app_meetme.c	13 May 2004 19:02:47 -0000	1.25
@@ -20,6 +20,7 @@
 #include <asterisk/config.h>
 #include <asterisk/app.h>
 #include <asterisk/musiconhold.h>
+#include <asterisk/manager.h>
 #include <asterisk/options.h>
 #include <asterisk/cli.h>
 #include <asterisk/say.h>
@@ -380,6 +381,14 @@
 		goto outrun;
 	}
 	ast_log(LOG_DEBUG, "Placed channel %s in ZAP conf %d\n", chan->name, conf->zapconf);
+
+	manager_event(EVENT_FLAG_CALL, "MeetmeJoin", 
+			"Channel: %s\r\n"
+			"Uniqueid: %s\r\n"
+			"Meetme: %s\r\n",
+			chan->name, chan->uniqueid, conf->confno);
+
+
 	if (!firstpass && !(confflags & CONFFLAG_MONITOR) && !(confflags & CONFFLAG_ADMIN)) {
 		firstpass = 1;
 		if (!(confflags & CONFFLAG_QUIET))
@@ -505,6 +514,16 @@
 	ast_mutex_lock(&conflock);
 	/* Clean up */
 	conf->users--;
+
+	ast_log(LOG_DEBUG, "Removed channel %s from ZAP conf %d\n", chan->name, conf->zapconf);
+
+	manager_event(EVENT_FLAG_CALL, "MeetmeLeave", 
+			"Channel: %s\r\n"
+			"Uniqueid: %s\r\n"
+			"Meetme: %s\r\n",
+			chan->name, chan->uniqueid, conf->confno);
+
+
 	if (!conf->users) {
 		/* No more users -- close this one out */
 		cur = confs;




More information about the svn-commits mailing list