From: Mark Spencer Date: Wed, 13 Aug 2003 21:06:00 +0000 (+0000) Subject: Make chan_zap compile for people without libpri again X-Git-Tag: 0.5.0~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67fb880dfb1464d6658dca0cf97ac62305842016;p=thirdparty%2Fasterisk.git Make chan_zap compile for people without libpri again git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1316 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 09a2db6063..c09d550cf8 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2570,12 +2570,14 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) } break; case ZT_EVENT_ALARM: +#ifdef ZAPATA_PRI #ifdef PRI_DESTROYCALL - pri_destroycall(p->pri->pri, p->call); + if (p->call && p->pri->pri) + pri_destroycall(p->pri->pri, p->call); p->call = NULL; - p->owner = NULL; #else #error Please "cvs update" and recompile libpri +#endif #endif p->inalarm = 1; res = get_alarms(p);