diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-04 01:40:06 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-04 01:40:06 +0000 |
commit | f7d84bc12d8ecf566ba67545344573ffd0954e54 (patch) | |
tree | 4a0fd6c1af54a2f03db90b585d90c6a212dc51f5 /wcfxs.c | |
parent | f7de5e5cee1cb4ebacce807db745ef648aee1a45 (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-x | wcfxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) |