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
This commit is contained in:
parent
6034c8aac6
commit
542ebb64a4
|
@ -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);
|
||||
|
|
Reference in New Issue