summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-08-12 20:27:53 +0000
committerMartin Pycko <martinp@digium.com>2003-08-12 20:27:53 +0000
commite9f725b4185caf26c545e26ca82043a6d89c38f4 (patch)
tree565a807b34739f1fe146b55b4aed74147f8fd03f
parent655f60e567427518de3b05163b72e39f4d2d9ff9 (diff)
Clear the pri channels when alarm condition drops the calls.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannels/chan_zap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 7a9ba57c7..e55c94734 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2570,6 +2570,12 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
}
break;
case ZT_EVENT_ALARM:
+#ifdef PRI_DESTROYCALL
+ pri_destroycall(p->pri->pri, p->call);
+ p->call = NULL;
+#else
+#error Please "cvs update" and recompile libpri
+#endif
p->inalarm = 1;
res = get_alarms(p);
ast_log(LOG_WARNING, "Detected alarm on channel %d: %s\n", p->channel, alarm2str(res));