summaryrefslogtreecommitdiff
path: root/wctdm.c
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-03 18:57:42 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-03 18:57:42 +0000
commitdc11af5bb866816c302af4ec71d5b7250358ac97 (patch)
treef1a0ac38baabb50ebe66d25998aa1cb32444a942 /wctdm.c
parent13d45d04cc0f078e6db246a3885431aab63929f6 (diff)
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.2@2683 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.c')
-rw-r--r--wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wctdm.c b/wctdm.c
index 0c8ffe4..13346ab 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -1733,7 +1733,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;