ast_hangup() on state 'INCALL' if the pbx was not started yet.
This commit is contained in:
parent
8b97a66223
commit
ccf256ebac
|
@ -2584,7 +2584,9 @@ static void capi_handle_disconnect_indication(_cmsg *CMSG, unsigned int PLCI, un
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i->owner) && (state == CAPI_STATE_DID) && (i->owner->pbx == NULL)) {
|
if ((i->owner) &&
|
||||||
|
((state == CAPI_STATE_DID) || (state == CAPI_STATE_INCALL)) &&
|
||||||
|
(i->owner->pbx == NULL)) {
|
||||||
/* the pbx was not started yet */
|
/* the pbx was not started yet */
|
||||||
ast_hangup(i->owner);
|
ast_hangup(i->owner);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue