dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2003-08-13 21:06:00 +00:00
parent 6034c8aac6
commit 542ebb64a4
1 changed files with 4 additions and 2 deletions

View File

@ -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);