[Asterisk-cvs] libpri q931.c,1.42,1.43

markster at lists.digium.com markster at lists.digium.com
Sat Jan 17 09:22:16 CST 2004


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv24080

Modified Files:
	q931.c 
Log Message:
Fix SERVICE_ACKNOWLEDGE even with different address sizes


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- q931.c	9 Dec 2003 15:55:48 -0000	1.42
+++ q931.c	17 Jan 2004 15:14:11 -0000	1.43
@@ -1935,7 +1935,7 @@
 		/* This is the weird maintenance stuff.  We majorly
 		   KLUDGE this by changing byte 4 from a 0xf (SERVICE) 
 		   to a 0x7 (SERVICE ACKNOWLEDGE) */
-		h->raw[3] -= 0x8;
+		h->raw[h->crlen + 2] -= 0x8;
 		q931_xmit(pri, h, len, 1);
 		return 0;
 	} else if (h->pd != Q931_PROTOCOL_DISCRIMINATOR) {




More information about the svn-commits mailing list