diff zaptel-1.0.7/wcfxs.c zaptel-1.0.7.new/wcfxs.c 1603a1604,1619 > case ZT_SETPOLARITY: > if (wc->modtype[chan->chanpos - 1] != MOD_TYPE_FXS) > return -EINVAL; > if (get_user(x, (int *)data)) > return -EFAULT; > /* Can't change polarity while ringing or when open */ > if ((wc->mod.fxs.lasttxhook[chan->chanpos -1 ] == 0x04) || > (wc->mod.fxs.lasttxhook[chan->chanpos -1 ] == 0x00)) > return -EINVAL; > > if (x) > wc->mod.fxs.lasttxhook[chan->chanpos - 1] |= 0x04; > else > wc->mod.fxs.lasttxhook[chan->chanpos - 1] &= ~0x04; > wctdm_setreg(wc, chan->chanpos - 1, 64, wc->mod.fxs.lasttxhook[chan->chanpos - 1]); > break;