[asterisk-commits] mmichelson: branch group/CCSS r232531 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 2 14:21:52 CST 2009
Author: mmichelson
Date: Wed Dec 2 14:21:48 2009
New Revision: 232531
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232531
Log:
Set is_available to TRUE when we acknowledge the
SUBSCRIBE.
Also prefer the TRUE and FALSE constants over 1 and 0.
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=232531&r1=232530&r2=232531
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Dec 2 14:21:48 2009
@@ -3488,6 +3488,7 @@
transmit_response(agent_pvt->subscribe_pvt, "200 OK", &agent_pvt->subscribe_pvt->initreq);
transmit_cc_notify(agent, agent_pvt->subscribe_pvt, CC_QUEUED);
sip_pvt_unlock(agent_pvt->subscribe_pvt);
+ agent_pvt->is_available = TRUE;
}
static int sip_cc_agent_status_request(struct ast_cc_agent *agent)
@@ -23333,7 +23334,7 @@
* to send an initial CC PUBLISH with state "open"
*/
- agent_pvt->is_available = 0;
+ agent_pvt->is_available = FALSE;
/* It's possible to get a PUBLISH before we have sent a NOTIFY that a callee is
* available. If that is the case, this call to ast_cc_agent_caller_busy will not
* have any effect. We handle that case properly, though, in the SIP agent's recall
More information about the asterisk-commits
mailing list