[Asterisk-cvs] libpri q931.c,1.50,1.51

markster at lists.digium.com markster at lists.digium.com
Fri Apr 16 14:02:29 CDT 2004


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

Modified Files:
	q931.c 
Log Message:
On EuroISDN don't send layer1/2 since some switches seem to be concerned.  (bug #960)


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- q931.c	11 Apr 2004 01:55:54 -0000	1.50
+++ q931.c	16 Apr 2004 18:05:41 -0000	1.51
@@ -639,6 +639,10 @@
 	}
 	ie->data[0] = 0x80 | tc;
 	ie->data[1] = call->transmoderate | 0x80;
+	if ((tc & PRI_TRANS_CAP_DIGITAL)&&(pri->switchtype == PRI_SWITCH_EUROISDN_E1)) {
+		/* Apparently EuroISDN switches don't seem to like user layer 2/3 */
+		return 4;
+	}
 	if (call->transmoderate != TRANS_MODE_PACKET) {
 		/* If you have an AT&T 4ESS, you don't send any more info */
 		if ((pri->switchtype != PRI_SWITCH_ATT4ESS) && (call->userl1 > -1)) {




More information about the svn-commits mailing list