From 542ebb64a47df195c3887c711a7c4301a45de499 Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 13 Aug 2003 21:06:00 +0000 Subject: Make chan_zap compile for people without libpri again git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1316 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_zap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 09a2db606..c09d550cf 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); -- cgit v1.2.3