[Asterisk-cvs] libpri q931.c,1.64,1.65

markster at lists.digium.com markster at lists.digium.com
Wed Jun 9 22:54:30 CDT 2004


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

Modified Files:
	q931.c 
Log Message:
Apprently AT&T uses 0x43 for maintenance messages too


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- q931.c	7 Jun 2004 15:55:39 -0000	1.64
+++ q931.c	10 Jun 2004 03:57:43 -0000	1.65
@@ -1424,6 +1424,7 @@
 		{ Q931_PROTOCOL_DISCRIMINATOR, "Q.931" },
 		{ GR303_PROTOCOL_DISCRIMINATOR, "GR-303" },
 		{ 0x3, "AT&T Maintenance" },
+		{ 0x43, "New AT&T Maintenance" },
 	};
 	return code2str(disc, discs, sizeof(discs) / sizeof(discs[0]));
 }
@@ -2037,7 +2038,7 @@
 	pri->q931_rxcount++;
 #endif
 	mh = (q931_mh *)(h->contents + h->crlen);
-	if (h->pd == 0x3) {
+	if ((h->pd == 0x3) || (h->pd == 0x43)) {
 		/* This is the weird maintenance stuff.  We majorly
 		   KLUDGE this by changing byte 4 from a 0xf (SERVICE) 
 		   to a 0x7 (SERVICE ACKNOWLEDGE) */




More information about the svn-commits mailing list