Clear the pri channels when alarm condition drops the calls.
authorMartin Pycko <martinp@digium.com>
Tue, 12 Aug 2003 20:27:53 +0000 (20:27 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 12 Aug 2003 20:27:53 +0000 (20:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1300 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 7a9ba57..e55c947 100755 (executable)
@@ -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));