[asterisk-commits] mmichelson: branch group/CCSS r231237 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 25 15:52:05 CST 2009
Author: mmichelson
Date: Wed Nov 25 15:52:03 2009
New Revision: 231237
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=231237
Log:
Fill in the status request for SIP CC agent.
Modified:
team/group/CCSS/channels/chan_sip.c
Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=231237&r1=231236&r2=231237
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Nov 25 15:52:03 2009
@@ -3417,8 +3417,9 @@
static int sip_cc_agent_status_request(struct ast_cc_agent *agent)
{
- /* XXX STUB */
- return 0;
+ struct sip_cc_agent_pvt *agent_pvt = agent->private_data;
+ enum ast_device_state state = agent_pvt->is_available ? AST_DEVICE_NOT_INUSE : AST_DEVICE_INUSE;
+ return ast_cc_agent_status_response(agent->core_id, state);
}
static int sip_cc_agent_start_monitoring(struct ast_cc_agent *agent)
More information about the asterisk-commits
mailing list