Don't hangup the call for SS7 if we get an alarm

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Matthew Fredrickson 18 years ago
parent 8fae310e81
commit b5a162a746

@ -4106,6 +4106,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
break;
case ZT_EVENT_ALARM:
#ifdef HAVE_PRI
if (p->sig == SIG_PRI) {
if (!p->pri || !p->pri->pri || (pri_get_timer(p->pri->pri, PRI_TIMER_T309) < 0)) {
/* T309 is not enabled : hangup calls when alarm occurs */
if (p->call) {
@ -4123,6 +4124,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
if (p->owner)
p->owner->_softhangup |= AST_SOFTHANGUP_DEV;
}
}
if (p->bearer)
p->bearer->inalarm = 1;
else
@ -4140,6 +4142,10 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
} else {
break;
}
#endif
#ifdef HAVE_SS7
if (p->sig == SIG_SS7)
break;
#endif
case ZT_EVENT_ONHOOK:
if (p->radio) {

Loading…
Cancel
Save