[libpri-commits] rmudgett: branch group/ccss r1404 - in /team/group/ccss: libpri.h pri_cc.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Mon Jan 11 18:25:23 CST 2010


Author: rmudgett
Date: Mon Jan 11 18:25:19 2010
New Revision: 1404

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1404
Log:
Added is_agent flag to PRI_SUBCMD_CC_CANCEL message.

Modified:
    team/group/ccss/libpri.h
    team/group/ccss/pri_cc.c

Modified: team/group/ccss/libpri.h
URL: http://svnview.digium.com/svn/libpri/team/group/ccss/libpri.h?view=diff&rev=1404&r1=1403&r2=1404
==============================================================================
--- team/group/ccss/libpri.h (original)
+++ team/group/ccss/libpri.h Mon Jan 11 18:25:19 2010
@@ -611,6 +611,17 @@
 	int status;
 };
 
+struct pri_subcmd_cc_cancel {
+	/*! \brief Call-Completion record id */
+	long cc_id;
+	/*!
+	 * \brief TRUE if the cc_id is for an agent.
+	 * \note This is a convenience value so the upper layer can know which
+	 * list it should search for the cc_id.
+	 */
+	int is_agent;
+};
+
 struct pri_subcommand {
 	/*! PRI_SUBCMD_xxx defined values */
 	int cmd;
@@ -632,7 +643,7 @@
 		struct pri_subcmd_cc_status cc_status_req_rsp;
 		struct pri_subcmd_cc_status cc_status;
 		struct pri_subcmd_cc_id cc_call;
-		struct pri_subcmd_cc_id cc_cancel;
+		struct pri_subcmd_cc_cancel cc_cancel;
 	} u;
 };
 

Modified: team/group/ccss/pri_cc.c
URL: http://svnview.digium.com/svn/libpri/team/group/ccss/pri_cc.c?view=diff&rev=1404&r1=1403&r2=1404
==============================================================================
--- team/group/ccss/pri_cc.c (original)
+++ team/group/ccss/pri_cc.c Mon Jan 11 18:25:19 2010
@@ -3881,6 +3881,7 @@
 
 	subcmd->cmd = PRI_SUBCMD_CC_CANCEL;
 	subcmd->u.cc_cancel.cc_id =  cc_record->record_id;
+	subcmd->u.cc_cancel.is_agent = cc_record->is_agent;
 }
 
 /*!




More information about the libpri-commits mailing list