[asterisk-commits] mmichelson: branch group/CCSS r214273 - /team/group/CCSS/main/ccss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 26 16:56:58 CDT 2009
Author: mmichelson
Date: Wed Aug 26 16:56:55 2009
New Revision: 214273
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=214273
Log:
Add taskprocessor to the core.
This will be used by the state change function to ensure
that state change requests are parsed in the proper order.
Modified:
team/group/CCSS/main/ccss.c
Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=214273&r1=214272&r2=214273
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Aug 26 16:56:55 2009
@@ -67,6 +67,8 @@
.recall = cc_generic_agent_recall,
.destructor = cc_generic_agent_destructor,
};
+
+struct ast_taskprocessor *cc_core_taskprocessor;
struct ast_cc_config_params *__ast_cc_config_params_init(const char *file, int line, const char *function)
{
@@ -620,5 +622,8 @@
pending_offer_hash_fn, pending_offer_cmp_fn))) {
return -1;
}
- return 0;
-}
+ if (!(cc_core_taskprocessor = ast_taskprocessor_get("CCSS core", TPS_REF_DEFAULT))) {
+ return -1;
+ }
+ return 0;
+}
More information about the asterisk-commits
mailing list