[libpri-commits] rmudgett: branch 1.4 r1703 - /branches/1.4/q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Wed May 19 16:50:37 CDT 2010


Author: rmudgett
Date: Wed May 19 16:50:34 2010
New Revision: 1703

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1703
Log:
T309 should not do anything with the global call reference call record.

Modified:
    branches/1.4/q931.c

Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=1703&r1=1702&r2=1703
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Wed May 19 16:50:34 2010
@@ -7600,7 +7600,10 @@
 			pri_message(ctrl, DBGHEAD "link is DOWN\n", DBGINFO);
 		}
 		for (cur = *ctrl->callpool; cur; cur = cur->next) {
-			if (cur->ourcallstate == Q931_CALL_STATE_ACTIVE) {
+			if (!(cur->cr & ~Q931_CALL_REFERENCE_FLAG)) {
+				/* Don't do anything on the global call reference call record. */
+				continue;
+			} else if (cur->ourcallstate == Q931_CALL_STATE_ACTIVE) {
 				/* For a call in Active state, activate T309 only if there is no timer already running. */
 				if (!cur->retranstimer) {
 					if (ctrl->debug & PRI_DEBUG_Q931_STATE) {
@@ -7628,7 +7631,10 @@
 			pri_message(ctrl, DBGHEAD "link is UP\n", DBGINFO);
 		}
 		for (cur = *ctrl->callpool; cur; cur = cur->next) {
-			if (cur->ourcallstate == Q931_CALL_STATE_ACTIVE && cur->retranstimer) {
+			if (!(cur->cr & ~Q931_CALL_REFERENCE_FLAG)) {
+				/* Don't do anything on the global call reference call record. */
+				continue;
+			} else if (cur->ourcallstate == Q931_CALL_STATE_ACTIVE && cur->retranstimer) {
 				if (ctrl->debug & PRI_DEBUG_Q931_STATE) {
 					pri_message(ctrl,
 						DBGHEAD "cancel T309 for call %d on channel %d\n", DBGINFO,




More information about the libpri-commits mailing list