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
1.0
Martin Pycko 22 years ago
parent 655f60e567
commit e9f725b418

@ -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));

Loading…
Cancel
Save