[svn-commits] mattf: branch mattf/libpri-1.4-q921-rewrite r1301 - /team/mattf/libpri-1.4-q9...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 11 16:59:29 CST 2009


Author: mattf
Date: Wed Nov 11 16:59:25 2009
New Revision: 1301

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1301
Log:
Make sure we transmit frames only if we're in MULTI_FRAME_ESTABLISHED state

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

Modified: team/mattf/libpri-1.4-q921-rewrite/q921.c
URL: http://svnview.digium.com/svn/libpri/team/mattf/libpri-1.4-q921-rewrite/q921.c?view=diff&rev=1301&r1=1300&r2=1301
==============================================================================
--- team/mattf/libpri-1.4-q921-rewrite/q921.c (original)
+++ team/mattf/libpri-1.4-q921-rewrite/q921.c Wed Nov 11 16:59:25 2009
@@ -2126,8 +2126,10 @@
 
 static void q921_statemachine_check(struct pri *pri)
 {
-	q921_send_queued_iframes(pri);
-	q921_acknowledge_pending_check(pri);
+	if (pri->q921_state == Q921_MULTI_FRAME_ESTABLISHED) {
+		q921_send_queued_iframes(pri);
+		q921_acknowledge_pending_check(pri);
+	}
 }
 
 static pri_event *q921_handle_unmatched_frame(struct pri *pri, q921_h *h, int len)




More information about the svn-commits mailing list