projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
006e499
)
Make chan_zap compile for people without libpri again
author
Mark Spencer
<markster@digium.com>
Wed, 13 Aug 2003 21:06:00 +0000
(21:06 +0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 13 Aug 2003 21:06:00 +0000
(21:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1316
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
09a2db6
..
c09d550
100755
(executable)
--- 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));