dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
martinp 2003-08-12 20:27:53 +00:00
parent fec2674d0f
commit f13d73aef1
1 changed files with 6 additions and 0 deletions

View File

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