From: Martin Pycko Date: Tue, 12 Aug 2003 20:27:53 +0000 (+0000) Subject: Clear the pri channels when alarm condition drops the calls. X-Git-Tag: 0.5.0~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9f725b4185caf26c545e26ca82043a6d89c38f4;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 7a9ba57c79..e55c947348 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));