summaryrefslogtreecommitdiff
path: root/wctdm24xxp
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-10 16:54:39 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-10 16:54:39 +0000
commitf76cd8c81d3e7a8c4696d936713b4f5db828f58e (patch)
tree375592ea6a20daabd0d599d494925234616395eb /wctdm24xxp
parentcc20ad8a42e6ae02c8682431793c7c9aa067e9d1 (diff)
for broken analog ports, retain the signaling type that would have been supported if the port wasn't broken
in ztscan, report the port types of analog ports instead of the signaling type git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm24xxp')
-rw-r--r--wctdm24xxp/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wctdm24xxp/base.c b/wctdm24xxp/base.c
index 97efb5f..35700f3 100644
--- a/wctdm24xxp/base.c
+++ b/wctdm24xxp/base.c
@@ -3129,7 +3129,7 @@ static void wctdm_post_initialize(struct wctdm *wc)
wc->chans[x].sigcap = ZT_SIG_FXOKS | ZT_SIG_FXOLS | ZT_SIG_FXOGS | ZT_SIG_SF | ZT_SIG_EM | ZT_SIG_CLEAR;
else if (wc->modtype[x] == MOD_TYPE_QRV)
wc->chans[x].sigcap = ZT_SIG_SF | ZT_SIG_EM | ZT_SIG_CLEAR;
- } else if (!(wc->chans[x].sigcap == ZT_SIG_BROKEN)) {
+ } else if (!(wc->chans[x].sigcap & ZT_SIG_BROKEN)) {
wc->chans[x].sigcap = 0;
}
}
@@ -3992,7 +3992,7 @@ retry:
printk("Port %d: Installed -- MANUAL FXS\n",x + 1);
} else {
printk("Port %d: FAILED FXS (%s)\n", x + 1, fxshonormode ? fxo_modes[_opermode].name : "FCC");
- wc->chans[x].sigcap = ZT_SIG_BROKEN;
+ wc->chans[x].sigcap = ZT_SIG_BROKEN | __ZT_SIG_FXO;
}
} else if (!(ret = wctdm_init_voicedaa(wc, x, 0, 0, sane))) {
wc->cardflag |= (1 << x);