Fixed fault in ALERT_CONF when DISCONNECTING.
This commit is contained in:
parent
a4024367be
commit
88e078e850
|
@ -2553,10 +2553,12 @@ static void capi_handle_confirmation(_cmsg *CMSG, unsigned int PLCI, unsigned in
|
||||||
if (!p)
|
if (!p)
|
||||||
break;
|
break;
|
||||||
if (ALERT_CONF_INFO(CMSG) == 0) {
|
if (ALERT_CONF_INFO(CMSG) == 0) {
|
||||||
|
if (p->i->state != CAPI_STATE_DISCONNECTING) {
|
||||||
p->i->state = CAPI_STATE_ALERTING;
|
p->i->state = CAPI_STATE_ALERTING;
|
||||||
if (p->c->_state == AST_STATE_RING) {
|
if ((p->c) && (p->c->_state == AST_STATE_RING)) {
|
||||||
p->c->rings = 1;
|
p->c->rings = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_ERROR, "CAPI: ALERT conf_error 0x%x PLCI=0x%x Command.Subcommand = %#x.%#x\n",
|
ast_log(LOG_ERROR, "CAPI: ALERT conf_error 0x%x PLCI=0x%x Command.Subcommand = %#x.%#x\n",
|
||||||
CMSG->Info, PLCI, CMSG->Command, CMSG->Subcommand);
|
CMSG->Info, PLCI, CMSG->Command, CMSG->Subcommand);
|
||||||
|
|
Loading…
Reference in New Issue