From 91e884835bf68a3c42304954c9bd3a748895bdf3 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 8 Sep 2006 16:32:15 +0000 Subject: Add support for 56kbps ANSI links in hardhdlc mode. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1440 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp/base.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wct4xxp') diff --git a/wct4xxp/base.c b/wct4xxp/base.c index 341e443..b6c56ab 100644 --- a/wct4xxp/base.c +++ b/wct4xxp/base.c @@ -201,6 +201,8 @@ static int lastdtmfthreshold = VPM_DEFAULT_DTMFTHRESHOLD; static int noburst = 1; static int debugslips = 0; static int polling = 0; +/* For 56kbps links, set this module parameter to 0x7f */ +static int hardhdlcmode = 0xff; #ifdef FANCY_ALARM static int altab[] = { @@ -943,7 +945,7 @@ static int __hdlc_start(struct t4 *wc, unsigned int span, struct zt_chan *chan, /* Make sure we're in the right mode */ __t4_framer_out(wc, span, FRMR_MODE, mode); __t4_framer_out(wc, span, FRMR_TSEO, 0x00); - __t4_framer_out(wc, span, FRMR_TSBS1, 0xff); + __t4_framer_out(wc, span, FRMR_TSBS1, hardhdlcmode); /* Set the interframe gaps, etc */ __t4_framer_out(wc, span, FRMR_CCR1, FRMR_CCR1_ITF|FRMR_CCR1_EITS); @@ -3817,6 +3819,7 @@ MODULE_PARM(loopback, "i"); MODULE_PARM(noburst, "i"); MODULE_PARM(debugslips, "i"); MODULE_PARM(polling, "i"); +MODULE_PARM(hardhdlcmode, "i"); MODULE_PARM(timingcable, "i"); MODULE_PARM(t1e1override, "i"); MODULE_PARM(alarmdebounce, "i"); -- cgit v1.2.3