summaryrefslogtreecommitdiff
path: root/wcfxs.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-04 01:40:06 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-04 01:40:06 +0000
commitf7d84bc12d8ecf566ba67545344573ffd0954e54 (patch)
tree4a0fd6c1af54a2f03db90b585d90c6a212dc51f5 /wcfxs.c
parentf7de5e5cee1cb4ebacce807db745ef648aee1a45 (diff)
Fix fxstest
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxs.c')
-rwxr-xr-xwcfxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcfxs.c b/wcfxs.c
index d7fd1b3..4d29228 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1366,7 +1366,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
return -EFAULT;
break;
case WCFXS_GET_REGS:
- if (wc->modtype == MOD_TYPE_FXS) {
+ if (wc->modtype[chan->chanpos - 1] == MOD_TYPE_FXS) {
for (x=0;x<NUM_INDIRECT_REGS;x++)
regs.indirect[x] = wcfxs_proslic_getreg_indirect(wc, chan->chanpos -1, x);
for (x=0;x<NUM_REGS;x++)