if (i & ZT_IOMUX_SIGEVENT) { res = zt_get_event(p->subs[index].zfd); ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); res = 0; /* Let us detect callerid when the telco uses distinctive ring */ curRingData[receivedRingT] = p->ringt; if (p->ringt < p->ringt_base/2) break; ++receivedRingT; /* Increment the ringT counter so we can match it against values in zapata.conf for distinctive ring */ } else if (i & ZT_IOMUX_READ) {