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
This commit is contained in:
parent
006e49982e
commit
67fb880dfb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue