[asterisk-commits] mmichelson: branch group/CCSS r236139 - /team/group/CCSS/main/ccss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 22 13:17:12 CST 2009
Author: mmichelson
Date: Tue Dec 22 13:17:10 2009
New Revision: 236139
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236139
Log:
Make the stop_ringing callback optional.
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=236139&r1=236138&r2=236139
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Tue Dec 22 13:17:10 2009
@@ -3135,9 +3135,11 @@
static int cc_stop_ringing(void *data)
{
struct cc_core_instance *core_instance = data;
- int res;
-
- res = core_instance->agent->callbacks->stop_ringing(core_instance->agent);
+ int res = 0;
+
+ if (core_instance->agent->callbacks->stop_ringing) {
+ res = core_instance->agent->callbacks->stop_ringing(core_instance->agent);
+ }
/* If an agent is being asked to stop ringing, then he needs to be prepared if for
* whatever reason he needs to be called back again. The proper state to be in to
* detect such a circumstance is the CC_ACTIVE state.
More information about the asterisk-commits
mailing list