[asterisk-commits] qwell: branch qwell/queue_events r390400 - /team/qwell/queue_events/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 4 11:15:14 CDT 2013


Author: qwell
Date: Tue Jun  4 11:15:12 2013
New Revision: 390400

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390400
Log:
Remove routes on unload.  I think INIT/CLEANUP macros need some work...

Modified:
    team/qwell/queue_events/apps/app_queue.c

Modified: team/qwell/queue_events/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/queue_events/apps/app_queue.c?view=diff&rev=390400&r1=390399&r2=390400
==============================================================================
--- team/qwell/queue_events/apps/app_queue.c (original)
+++ team/qwell/queue_events/apps/app_queue.c Tue Jun  4 11:15:12 2013
@@ -9912,6 +9912,26 @@
 	struct ao2_iterator q_iter;
 	struct call_queue *q = NULL;
 
+	struct stasis_message_router *message_router;
+
+	message_router = ast_manager_get_message_router();
+	if (message_router) {
+		stasis_message_router_remove(message_router, queue_caller_join_type());
+		stasis_message_router_remove(message_router, queue_caller_leave_type());
+		stasis_message_router_remove(message_router, queue_caller_abandon_type());
+		stasis_message_router_remove(message_router, queue_member_status_type());
+		stasis_message_router_remove(message_router, queue_member_added_type());
+		stasis_message_router_remove(message_router, queue_member_removed_type());
+		stasis_message_router_remove(message_router, queue_member_pause_type());
+		stasis_message_router_remove(message_router, queue_member_penalty_type());
+		stasis_message_router_remove(message_router, queue_member_ringinuse_type());
+		stasis_message_router_remove(message_router, queue_agent_called_type());
+		stasis_message_router_remove(message_router, queue_agent_connect_type());
+		stasis_message_router_remove(message_router, queue_agent_complete_type());
+		stasis_message_router_remove(message_router, queue_agent_dump_type());
+		stasis_message_router_remove(message_router, queue_agent_ringnoanswer_type());
+	}
+
 	STASIS_MESSAGE_TYPE_CLEANUP(queue_caller_join_type);
 	STASIS_MESSAGE_TYPE_CLEANUP(queue_caller_leave_type);
 	STASIS_MESSAGE_TYPE_CLEANUP(queue_caller_abandon_type);




More information about the asterisk-commits mailing list