[svn-commits] mmichelson: trunk r120166 - in /trunk: CHANGES apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 3 16:22:52 CDT 2008


Author: mmichelson
Date: Tue Jun  3 16:22:52 2008
New Revision: 120166

URL: http://svn.digium.com/view/asterisk?view=rev&rev=120166
Log:
Adding two new queue log events. The ADDMEMBER event is logged when
a dynamic realtime queue member is added to the queue, and the 
REMOVEMEMBER event is logged when a dynamic realtime member is
removed. Since no calling channel is associated with these events
the string "REALTIME" is placed where the channel's unique id is
normally placed.

(closes issue #12774)
Reported by: atis
Patches:
      queue_log_rt_members.patch uploaded by atis (license 242)


Modified:
    trunk/CHANGES
    trunk/apps/app_queue.c

Modified: trunk/CHANGES
URL: http://svn.digium.com/view/asterisk/trunk/CHANGES?view=diff&rev=120166&r1=120165&r2=120166
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Tue Jun  3 16:22:52 2008
@@ -481,6 +481,11 @@
 	position announced if their position is less than what is specified by announce-position-limit.
 	If announce-position is set to "more" then callers beyond the position specified by announce-position-limit
 	will be told that their are more than announce-position-limit callers waiting.
+  * Two new queue log events have been added. An ADDMEMBER event will be logged
+    when a realtime queue member is added and a REMOVEMEMBER event will be logged
+	when a realtime queue member is removed. Since there is no calling channel associated
+	with these events, the string "REALTIME" is placed where the channel's unique id
+	is typically placed.
 
 MeetMe Changes
 --------------

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=120166&r1=120165&r2=120166
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Jun  3 16:22:52 2008
@@ -1358,6 +1358,7 @@
 			m->realtime = 1;
 			ast_copy_string(m->rt_uniqueid, rt_uniqueid, sizeof(m->rt_uniqueid));
 			add_to_interfaces(m->state_interface);
+			ast_queue_log(q->name, "REALTIME", m->interface, "ADDMEMBER", "%s", "");
 			ao2_link(q->members, m);
 			ao2_ref(m, -1);
 			m = NULL;
@@ -1542,6 +1543,7 @@
 	mem_iter = ao2_iterator_init(q->members, 0);
 	while ((m = ao2_iterator_next(&mem_iter))) {
 		if (m->dead) {
+			ast_queue_log(q->name, "REALTIME", m->interface, "REMOVEMEMBER", "%s", "");
 			ao2_unlink(q->members, m);
 			remove_from_interfaces(m->state_interface);
 			q->membercount--;
@@ -1649,6 +1651,7 @@
 	mem_iter = ao2_iterator_init(q->members, 0);
 	while ((m = ao2_iterator_next(&mem_iter))) {
 		if (m->dead) {
+			ast_queue_log(q->name, "REALTIME", m->interface, "REMOVEMEMBER", "%s", "");
 			ao2_unlink(q->members, m);
 			remove_from_interfaces(m->state_interface);
 			q->membercount--;




More information about the svn-commits mailing list