[svn-commits] qwell: branch 1.2 r2683 - /branches/1.2/wctdm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 3 13:57:42 CDT 2007


Author: qwell
Date: Tue Jul  3 13:57:42 2007
New Revision: 2683

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2683
Log:
Fix a potential issue with the reversepolarity module option in wctdm.

Issue 7191, patch by Thomas Andrews.

Modified:
    branches/1.2/wctdm.c

Modified: branches/1.2/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm.c?view=diff&rev=2683&r1=2682&r2=2683
==============================================================================
--- branches/1.2/wctdm.c (original)
+++ branches/1.2/wctdm.c Tue Jul  3 13:57:42 2007
@@ -1733,7 +1733,7 @@
 			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;




More information about the svn-commits mailing list