diff options
author | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-03 18:58:24 +0000 |
---|---|---|
committer | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-03 18:58:24 +0000 |
commit | ae4925c9ed43c29bf997192fda23b379428bf4b7 (patch) | |
tree | 659ca82cb7b7f2211b029e65b66b2c8da2e96dbe /wctdm.c | |
parent | 5885af2b5d18dbe76b5e5efe6ca0f0d22ce90136 (diff) |
Merged revisions 2683 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2683 | qwell | 2007-07-03 13:57:42 -0500 (Tue, 03 Jul 2007) | 4 lines
Fix a potential issue with the reversepolarity module option in wctdm.
Issue 7191, patch by Thomas Andrews.
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2684 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.c')
-rw-r--r-- | wctdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1810,7 +1810,7 @@ static int wctdm_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat wc->mod[chan->chanpos - 1].fxs.idletxhookstate = 0x6; /* OHT mode when idle */ else wc->mod[chan->chanpos - 1].fxs.idletxhookstate = 0x2; - if (wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x1) { + if (wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x1 || wc->mod[chan->chanpos - 1].fxs.lasttxhook == 0x5) { /* Apply the change if appropriate */ if (reversepolarity) wc->mod[chan->chanpos - 1].fxs.lasttxhook = 0x6; |