[asterisk-commits] mmichelson: branch group/CCSS r214939 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 31 11:03:10 CDT 2009


Author: mmichelson
Date: Mon Aug 31 11:03:06 2009
New Revision: 214939

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=214939
Log:
Stub for CallCompletionCancel function.


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=214939&r1=214938&r2=214939
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Aug 31 11:03:06 2009
@@ -916,8 +916,18 @@
 	return ast_cc_request_state_change(CC_CALLER_REQUESTED, core_instance->core_id, "CallCompletionRequest called");
 }
 
+static char *cccancel_app = "CallCompletionCancel";
+
+static int cccancel_exec(struct ast_channel *chan, const char *data)
+{
+	/* STUB */
+	return 0;
+}
+
 int ast_cc_init(void)
 {
+	int res;
+
 	if (!(pending_cc_offers = ao2_container_alloc(CC_PENDING_OFFER_BUCKETS,
 					pending_offer_hash_fn, pending_offer_cmp_fn))) {
 		return -1;
@@ -936,5 +946,7 @@
 		return -1;
 	}
 	ast_log(LOG_NOTICE, "Successfully created CC sched_thread context\n");
-	return ast_register_application2(ccreq_app, ccreq_exec, NULL, NULL, NULL);
-}
+	res = ast_register_application2(ccreq_app, ccreq_exec, NULL, NULL, NULL);
+	res |= ast_register_application2(cccancel_app, cccancel_exec, NULL, NULL, NULL);
+	return res;
+}




More information about the asterisk-commits mailing list