diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-13 21:06:00 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-13 21:06:00 +0000 |
commit | 542ebb64a47df195c3887c711a7c4301a45de499 (patch) | |
tree | 0bf7f34b694e4439208a5275d8e5858229150665 | |
parent | 6034c8aac67eccd59011b59b34b6d27bd967e351 (diff) |
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
-rwxr-xr-x | channels/chan_zap.c | 6 |
1 files 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,13 +2570,15 @@ 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); ast_log(LOG_WARNING, "Detected alarm on channel %d: %s\n", p->channel, alarm2str(res)); |