diff options
Diffstat (limited to 'xpp/card_fxs.c')
-rw-r--r-- | xpp/card_fxs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpp/card_fxs.c b/xpp/card_fxs.c index 0050348..99dd354 100644 --- a/xpp/card_fxs.c +++ b/xpp/card_fxs.c @@ -821,10 +821,10 @@ HANDLER_DEF(FXS, SLIC_REPLY) BIT_CLR(lines, channo); BIT_SET(lines, newchanno); xpd->ringing[newchanno] = 0; // Stop ringing. No leds for digital inputs. - if(offhook && !IS_SET(xpd->hookstate, newchanno)) { // OFFHOOK + if(offhook && !IS_SET(xpd->offhook, newchanno)) { // OFFHOOK DBG("%s/%s/%d: OFFHOOK\n", xbus->busname, xpd->xpdname, newchanno); update_line_status(xpd, newchanno, 1); - } else if(!offhook && IS_SET(xpd->hookstate, newchanno)) { // ONHOOK + } else if(!offhook && IS_SET(xpd->offhook, newchanno)) { // ONHOOK DBG("%s/%s/%d: ONHOOK\n", xbus->busname, xpd->xpdname, newchanno); update_line_status(xpd, newchanno, 0); } |