[Asterisk-cvs] zaptel wct4xxp.c,1.8,1.9
martinp at lists.digium.com
martinp at lists.digium.com
Tue Oct 7 14:30:24 CDT 2003
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv21434
Modified Files:
wct4xxp.c
Log Message:
Enable CAS in TE410P when the user configures the E1 circuit with it.
Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- wct4xxp.c 25 Sep 2003 15:30:57 -0000 1.8
+++ wct4xxp.c 7 Oct 2003 19:31:35 -0000 1.9
@@ -710,6 +710,7 @@
static void __t4_configure_e1(struct t4 *wc, int unit, int lineconfig)
{
unsigned int fmr2, fmr1, fmr0;
+ unsigned int cas = 0;
char *crc4 = "";
char *framing, *line;
fmr1 = 0x44; /* FMR1: E1 mode, Automatic force resync, PCM30 mode, 8.192 Mhz backplane, no XAIS */
@@ -736,6 +737,7 @@
framing = "CCS";
} else {
framing = "CAS";
+ cas = 0x40;
}
__t4_framer_out(wc, unit, 0x1c, fmr0);
@@ -764,7 +766,7 @@
__t4_framer_out(wc, unit, 0x39, 0x15); /* PCR: 22 "ones" clear LOS */
__t4_framer_out(wc, unit, 0x20, 0x9f); /* XSW: Spare bits all to 1 */
- __t4_framer_out(wc, unit, 0x21, 0x1c); /* XSP: E-bit set when async. AXS auto, XSIF to 1 */
+ __t4_framer_out(wc, unit, 0x21, 0x1c|cas); /* XSP: E-bit set when async. AXS auto, XSIF to 1 */
/* Generate pulse mask for E1 */
More information about the svn-commits
mailing list