[libpri-commits] mattf: trunk r487 - /trunk/q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Wed Nov 21 16:30:10 CST 2007


Author: mattf
Date: Wed Nov 21 16:30:09 2007
New Revision: 487

URL: http://svn.digium.com/view/libpri?view=rev&rev=487
Log:
Make sure we loop BRI call references for one byte CREFs instead of two

Modified:
    trunk/q931.c

Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?view=diff&rev=487&r1=486&r2=487
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Wed Nov 21 16:30:09 2007
@@ -2212,8 +2212,13 @@
 	do {
 		cur = *pri->callpool;
 		pri->cref++;
-		if (pri->cref > 32767)
-			pri->cref = 1;
+		if (!pri->bri) {
+			if (pri->cref > 32767)
+				pri->cref = 1;
+		} else {
+			if (pri->cref > 127)
+				pri->cref = 1;
+		}
 		while(cur) {
 			if (cur->cr == (0x8000 | pri->cref))
 				break;




More information about the libpri-commits mailing list