[asterisk-commits] mmichelson: branch group/CCSS r217480 - /team/group/CCSS/main/ccss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 9 14:54:02 CDT 2009
Author: mmichelson
Date: Wed Sep 9 14:54:00 2009
New Revision: 217480
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217480
Log:
Move a state change to the appropriate place.
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=217480&r1=217479&r2=217480
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Sep 9 14:54:00 2009
@@ -732,7 +732,6 @@
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);
- ast_cc_request_state_change(CC_ACTIVE, agent->core_id, ast_str_buffer(str));
}
static int cc_generic_agent_start_monitoring(struct ast_cc_agent *agent)
@@ -750,7 +749,7 @@
AST_EVENT_IE_END))) {
return -1;
}
- return 0;
+ return ast_cc_request_state_change(CC_ACTIVE, agent->core_id, ast_str_buffer(str));
}
static int cc_generic_agent_stop_monitoring(struct ast_cc_agent *agent)
More information about the asterisk-commits
mailing list