summaryrefslogtreecommitdiff
path: root/wct4xxp
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-09-08 16:32:15 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-09-08 16:32:15 +0000
commit91e884835bf68a3c42304954c9bd3a748895bdf3 (patch)
tree0b18b0eb1fa2d3121eb7665dd2217157c5c87675 /wct4xxp
parent7714951569543658b31c0ed23f80296fa848c82d (diff)
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
Diffstat (limited to 'wct4xxp')
-rw-r--r--wct4xxp/base.c5
1 files changed, 4 insertions, 1 deletions
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");