[asterisk-commits] mmichelson: branch group/CCSS_Monitor_Restructure r242041 - /team/group/CCSS_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 15:01:38 CST 2010


Author: mmichelson
Date: Thu Jan 21 15:01:34 2010
New Revision: 242041

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242041
Log:
Correctly call status_response2 callback.


Modified:
    team/group/CCSS_Monitor_Restructure/main/ccss.c

Modified: team/group/CCSS_Monitor_Restructure/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS_Monitor_Restructure/main/ccss.c?view=diff&rev=242041&r1=242040&r2=242041
==============================================================================
--- team/group/CCSS_Monitor_Restructure/main/ccss.c (original)
+++ team/group/CCSS_Monitor_Restructure/main/ccss.c Thu Jan 21 15:01:34 2010
@@ -3261,14 +3261,19 @@
 {
 	struct cc_status_response_args *args = data;
 	struct cc_core_instance *core_instance = args->core_instance;
+	struct cc_monitor *monitor_iter;
 	enum ast_device_state devstate = args->devstate;
-	int res;
 
 	ast_free(args);
 
-	res = core_instance->monitor->callbacks->status_response(core_instance->monitor, core_instance->core_id, devstate);
+	AST_DLLIST_TRAVERSE(core_instance->monitors, monitor_iter, next) {
+		if (monitor_iter->interface->monitor_class == AST_CC_DEVICE_MONITOR &&
+				monitor_iter->callbacks->status_response2) {
+			monitor_iter->callbacks->status_response2(monitor_iter, devstate);
+		}
+	}
 	cc_unref(core_instance, "Status response finished. Unref core instance");
-	return res;
+	return 0;
 }
 
 int ast_cc_agent_status_response(int core_id, enum ast_device_state devstate)




More information about the asterisk-commits mailing list