[asterisk-commits] mmichelson: branch group/CCSS r225241 - in /team/group/CCSS: include/asterisk...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 21 15:20:08 CDT 2009
Author: mmichelson
Date: Wed Oct 21 15:20:04 2009
New Revision: 225241
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=225241
Log:
Add another API for state change stuffz.
Modified:
team/group/CCSS/include/asterisk/ccss.h
team/group/CCSS/main/ccss.c
Modified: team/group/CCSS/include/asterisk/ccss.h
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/include/asterisk/ccss.h?view=diff&rev=225241&r1=225240&r2=225241
==============================================================================
--- team/group/CCSS/include/asterisk/ccss.h (original)
+++ team/group/CCSS/include/asterisk/ccss.h Wed Oct 21 15:20:04 2009
@@ -934,6 +934,20 @@
/*!
* \since 1.6.4
+ * \brief Indicate that a previously unavailable caller has become available
+ *
+ * If a monitor is suspended due to a caller becoming unavailable, then this
+ * function should be called to indicate that the caller has become available.
+ *
+ * \param core_id core_id of the CC transaction
+ * \param debug optional string to print for debugging purposes
+ * \retval 0 Success
+ * \retval -1 Failure
+ */
+int ast_cc_caller_available(int core_id, const char * const debug);
+
+/*!
+ * \since 1.6.4
* \brief Indicate recall has been acknowledged
*
* When we receive confirmation that an endpoint has responded to our
Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=225241&r1=225240&r2=225241
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Oct 21 15:20:04 2009
@@ -1859,7 +1859,7 @@
struct ast_cc_agent *agent = userdata;
struct ast_str *str = ast_str_alloca(128);
ast_str_set(&str, 0, "%s is no longer busy\n", agent->interface);
- cc_request_state_change(CC_ACTIVE, agent->core_id, ast_str_buffer(str));
+ ast_cc_caller_available(agent->core_id, ast_str_buffer(str));
}
static int cc_generic_agent_start_monitoring(struct ast_cc_agent *agent)
@@ -2444,6 +2444,11 @@
cc_ref(monitor, "Bump reference count until cc_devstate_change executes"));
}
+int ast_cc_caller_available(int core_id, const char * const debug)
+{
+ return cc_request_state_change(CC_ACTIVE, core_id, debug);
+}
+
int ast_cc_completed(int core_id, const char * const debug)
{
return cc_request_state_change(CC_COMPLETE, core_id, debug);
More information about the asterisk-commits
mailing list