From c963f0243b078172d27c9dbbc055bc5b510ac485 Mon Sep 17 00:00:00 2001 From: qwell Date: Tue, 3 Jul 2007 18:59:30 +0000 Subject: 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 --- wctdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3