[asterisk-commits] mmichelson: branch group/CCSS r231600 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 30 14:37:15 CST 2009
Author: mmichelson
Date: Mon Nov 30 14:37:13 2009
New Revision: 231600
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=231600
Log:
Now the new transmit_cc_notify function is actually used somewhere.
Oh, and I got to rid myself of a XXX note at the same time.
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=231600&r1=231599&r2=231600
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Mon Nov 30 14:37:13 2009
@@ -2955,6 +2955,7 @@
static int transmit_refer(struct sip_pvt *p, const char *dest);
static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs, const char *vmexten);
static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq, char *message, int terminate);
+static int transmit_cc_notify(struct ast_cc_agent *agent, struct sip_pvt *subscription, enum sip_cc_notify_state state);
static int transmit_register(struct sip_registry *r, int sipmethod, const char *auth, const char *authheader);
static int send_response(struct sip_pvt *p, struct sip_request *req, enum xmittype reliable, int seqno);
static int send_request(struct sip_pvt *p, struct sip_request *req, enum xmittype reliable, int seqno);
@@ -3430,8 +3431,8 @@
sip_pvt_lock(agent_pvt->subscribe_pvt);
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);
- /* XXX Need to send a NOTIFY here with the "queued" state. */
}
static int sip_cc_agent_status_request(struct ast_cc_agent *agent)
More information about the asterisk-commits
mailing list