[Asterisk-cvs] asterisk/apps app_queue.c,1.92,1.93

markster at lists.digium.com markster at lists.digium.com
Tue Nov 9 00:37:05 CST 2004


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

Modified Files:
	app_queue.c 
Log Message:
Show status of agents...


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- app_queue.c	26 Oct 2004 22:25:43 -0000	1.92
+++ app_queue.c	9 Nov 2004 05:38:40 -0000	1.93
@@ -584,6 +584,17 @@
 	while(cur) {
 		if (member == cur) {
 			cur->status = status;
+			manager_event(EVENT_FLAG_AGENT, "QueueMemberStatus",
+				"Queue: %s\r\n"
+				"Location: %s/%s\r\n"
+				"Membership: %s\r\n"
+				"Penalty: %d\r\n"
+				"CallsTaken: %d\r\n"
+				"LastCall: %ld\r\n"
+				"Status: %d\r\n"
+				"\r\n",
+					q->name, cur->tech, cur->loc, cur->dynamic ? "dynamic" : "static",
+					cur->penalty, cur->calls, cur->lastcall, cur->status);
 			break;
 		}
 		cur = cur->next;
@@ -2281,10 +2292,11 @@
 				"Penalty: %d\r\n"
 				"CallsTaken: %d\r\n"
 				"LastCall: %ld\r\n"
+				"Status: %d\r\n"
 				"%s"
 				"\r\n",
 					q->name, mem->tech, mem->loc, mem->dynamic ? "dynamic" : "static",
-					mem->penalty, mem->calls, mem->lastcall, idText);
+					mem->penalty, mem->calls, mem->lastcall, mem->status, idText);
 
 		/* List Queue Entries */
 




More information about the svn-commits mailing list