[asterisk-commits] mmichelson: branch group/CCSS r231232 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 25 15:22:19 CST 2009


Author: mmichelson
Date: Wed Nov 25 15:22:17 2009
New Revision: 231232

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=231232
Log:
Fill in the offer_cc callback 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=231232&r1=231231&r2=231232
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Nov 25 15:22:17 2009
@@ -1444,6 +1444,7 @@
 */
 /*@{*/
 #define SIP_OUTGOING		(1 << 0)	/*!< D: Direction of the last transaction in this dialog */
+#define SIP_OFFER_CC		(1 << 1)	/*!< D: Offer CC on subsequent responses */
 #define SIP_RINGING		(1 << 2)	/*!< D: Have sent 180 ringing */
 #define SIP_PROGRESS_SENT	(1 << 3)	/*!< D: Have sent 183 message progress */
 #define SIP_NEEDREINVITE	(1 << 4)	/*!< D: Do we need to send another reinvite? */
@@ -3367,6 +3368,11 @@
 	 * to mark the original call as being able to offer CC, so we'll set a flag here. Further
 	 * responses sent to the caller will then have CC offers.
 	 */
+	struct sip_cc_agent_pvt *agent_pvt = agent->private_data;
+
+	sip_pvt_lock(agent_pvt->original_call);
+	ast_set_flag(&agent_pvt->original_call->flags[0], SIP_OFFER_CC);
+	sip_pvt_unlock(agent_pvt->original_call);
 	return 0;
 }
 




More information about the asterisk-commits mailing list