[svn-commits] mmichelson: branch group/CCSS r223329 - /team/group/CCSS/main/ccss.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 9 15:54:38 CDT 2009


Author: mmichelson
Date: Fri Oct  9 15:54:34 2009
New Revision: 223329

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=223329
Log:
Getting things further re-organized.


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

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=223329&r1=223328&r2=223329
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Fri Oct  9 15:54:34 2009
@@ -1791,6 +1791,30 @@
 	return 0;
 }
 
+int ast_cc_request_within_limits(void)
+{
+	return cc_request_count < global_cc_max_requests;
+}
+
+int ast_cc_get_current_core_id(struct ast_channel *chan)
+{
+	struct ast_datastore *datastore;
+	struct dialed_cc_interfaces *cc_interfaces;
+	int core_id_return;
+
+	ast_channel_lock(chan);
+	if (!(datastore = ast_channel_datastore_find(chan, &dialed_cc_interfaces_info, NULL))) {
+		ast_channel_unlock(chan);
+		return -1;
+	}
+
+	cc_interfaces = datastore->data;
+	core_id_return = cc_interfaces->core_id;
+	ast_channel_unlock(chan);
+	return core_id_return;
+
+}
+
 static long count_agents(const char * const caller)
 {
 	long agent_count = 0;
@@ -2492,30 +2516,6 @@
 	return core_id_return;
 }
 
-int ast_cc_get_current_core_id(struct ast_channel *chan)
-{
-	struct ast_datastore *datastore;
-	struct dialed_cc_interfaces *cc_interfaces;
-	int core_id_return;
-
-	ast_channel_lock(chan);
-	if (!(datastore = ast_channel_datastore_find(chan, &dialed_cc_interfaces_info, NULL))) {
-		ast_channel_unlock(chan);
-		return -1;
-	}
-
-	cc_interfaces = datastore->data;
-	core_id_return = cc_interfaces->core_id;
-	ast_channel_unlock(chan);
-	return core_id_return;
-
-}
-
-int ast_cc_request_within_limits(void)
-{
-	return cc_request_count < global_cc_max_requests;
-}
-
 int ast_set_cc_interfaces_chanvar(struct ast_channel *chan, const char * const extension)
 {
 	struct ast_datastore *recall_datastore;




More information about the svn-commits mailing list