summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-03 18:59:30 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-03 18:59:30 +0000
commitc963f0243b078172d27c9dbbc055bc5b510ac485 (patch)
tree969190ee209ba018e812f695c421d64bcfa8da03
parent0b1e52fd00a2251d408b8f98de55ed24a1103e53 (diff)
Merged revisions 2684 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.4 Closes issue #7191 ................ r2684 | qwell | 2007-07-03 13:58:24 -0500 (Tue, 03 Jul 2007) | 12 lines 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/trunk@2685 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wctdm.c b/wctdm.c
index 05ec616..644b4fe 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -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;