Fixed fault in ALERT_CONF when DISCONNECTING.

This commit is contained in:
MelwareDE 2005-07-13 18:27:58 +00:00
parent a4024367be
commit 88e078e850
1 changed files with 5 additions and 3 deletions

View File

@ -2553,9 +2553,11 @@ static void capi_handle_confirmation(_cmsg *CMSG, unsigned int PLCI, unsigned in
if (!p)
break;
if (ALERT_CONF_INFO(CMSG) == 0) {
p->i->state = CAPI_STATE_ALERTING;
if (p->c->_state == AST_STATE_RING) {
p->c->rings = 1;
if (p->i->state != CAPI_STATE_DISCONNECTING) {
p->i->state = CAPI_STATE_ALERTING;
if ((p->c) && (p->c->_state == AST_STATE_RING)) {
p->c->rings = 1;
}
}
} else {
ast_log(LOG_ERROR, "CAPI: ALERT conf_error 0x%x PLCI=0x%x Command.Subcommand = %#x.%#x\n",