aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-12 20:27:53 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-12 20:27:53 +0000
commitf13d73aef1db7bf124c952ed54a99b2e706a118c (patch)
tree565a807b34739f1fe146b55b4aed74147f8fd03f /channels
parentfec2674d0ffccb2ffbae5643b8a068461e27018a (diff)
Clear the pri channels when alarm condition drops the calls.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1300 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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));