[svn-commits] mattf: branch mattf/libpri-1.4-ntptmp r942 - /team/mattf/libpri-1.4-ntptmp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 17 17:30:59 CDT 2009


Author: mattf
Date: Fri Jul 17 17:30:56 2009
New Revision: 942

URL: http://svn.asterisk.org/svn-view/libpri?view=rev&rev=942
Log:
Only reschedule T203 when we have received an I frame or an S frame on a link managing a TEI.

Modified:
    team/mattf/libpri-1.4-ntptmp/q921.c

Modified: team/mattf/libpri-1.4-ntptmp/q921.c
URL: http://svn.asterisk.org/svn-view/libpri/team/mattf/libpri-1.4-ntptmp/q921.c?view=diff&rev=942&r1=941&r2=942
==============================================================================
--- team/mattf/libpri-1.4-ntptmp/q921.c (original)
+++ team/mattf/libpri-1.4-ntptmp/q921.c Fri Jul 17 17:30:56 2009
@@ -1037,6 +1037,10 @@
 			pri_error(pri, "!! Received short I-frame (expected 4, got %d)\n", len);
 			break;
 		}
+
+		/* T203 is rescheduled only on reception of I frames or S frames */
+		reschedule_t203(pri);
+
 		return q921_handle_iframe(pri, &h->i, len);	
 		break;
 	case 1:
@@ -1048,6 +1052,10 @@
 			pri_error(pri, "!! Received short S-frame (expected 4, got %d)\n", len);
 			break;
 		}
+
+		/* T203 is rescheduled only on reception of I frames or S frames */
+		reschedule_t203(pri);
+
 		switch(h->s.ss) {
 		case 0:
 			/* Receiver Ready */
@@ -1322,7 +1330,6 @@
 	if (pri->debug & PRI_DEBUG_Q921_DUMP)
 		pri_message(pri, "Handling message for SAPI/TEI=%d/%d\n", h->h.sapi, h->h.tei);
 	ev = __q921_receive_qualified(pri, h, len);
-	reschedule_t203(pri);
 	return ev;
 }
 




More information about the svn-commits mailing list