Index: channels/chan_zap.c =================================================================== --- channels/chan_zap.c (revision 7849) +++ channels/chan_zap.c (working copy) @@ -5973,10 +5973,12 @@ lax); ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); if (p->cid_signalling == CID_SIG_V23_JP) { +#ifdef ZT_EVENT_RINGBEGIN if (res == ZT_EVENT_RINGBEGIN) { res = zt_set_hook(p->subs[SUB_REAL].zfd, ZT_OFFHOOK); usleep(1); } +#endif } else { res = 0; break;