[libpri-commits] rmudgett: branch group/ccss r1463 - /team/group/ccss/pri_cc.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Fri Jan 29 16:53:27 CST 2010


Author: rmudgett
Date: Fri Jan 29 16:53:23 2010
New Revision: 1463

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1463
Log:
Block attempts to be a CC agent when we are acting like a phone.

Modified:
    team/group/ccss/pri_cc.c

Modified: team/group/ccss/pri_cc.c
URL: http://svnview.digium.com/svn/libpri/team/group/ccss/pri_cc.c?view=diff&rev=1463&r1=1462&r2=1463
==============================================================================
--- team/group/ccss/pri_cc.c (original)
+++ team/group/ccss/pri_cc.c Fri Jan 29 16:53:23 2010
@@ -6833,6 +6833,14 @@
 		if (q931_is_ptmp(ctrl)) {
 			int linkage_id;
 
+			if (!BRI_NT_PTMP(ctrl)) {
+				/*
+				 * No CC agent protocol defined for this mode.
+				 * i.e.,  A device acting like a phone cannot be a CC agent.
+				 */
+				break;
+			}
+
 			linkage_id = pri_cc_new_linkage_id(ctrl);
 			if (linkage_id == CC_PTMP_INVALID_ID) {
 				break;




More information about the libpri-commits mailing list