It looks like the sense of the T1/E1 test changed at r3278. The result is that T1 spans won't configure.

The following patch applied to r3545 worked for me.

Steve


Index: wct1xxp.c
===================================================================
--- wct1xxp.c	(revision 3545)
+++ wct1xxp.c	(working copy)
@@ -784,12 +784,12 @@
 	wc->span.pvt = wc;
 	if (wc->ise1) {
 		wc->span.deflaw = ZT_LAW_ALAW;
+		wc->span.linecompat = ZT_CONFIG_HDB3 | ZT_CONFIG_CCS | ZT_CONFIG_CRC4;
+		wc->span.spantype = "E1";
+	} else {
+		wc->span.deflaw = ZT_LAW_MULAW;
 		wc->span.linecompat = ZT_CONFIG_AMI | ZT_CONFIG_B8ZS | ZT_CONFIG_D4 | ZT_CONFIG_ESF;
 		wc->span.spantype = "T1";
-	} else {
-		wc->span.deflaw = ZT_LAW_MULAW;
-		wc->span.linecompat = ZT_CONFIG_HDB3 | ZT_CONFIG_CCS | ZT_CONFIG_CRC4;
-		wc->span.spantype = "E1";
 	}
 	init_waitqueue_head(&wc->span.maintq);
 	for (x=0;x<wc->span.channels;x++) {
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to