ast_hangup() on state 'INCALL' if the pbx was not started yet.

This commit is contained in:
MelwareDE 2005-08-31 07:32:09 +00:00
parent 8b97a66223
commit ccf256ebac
1 changed files with 3 additions and 1 deletions

View File

@ -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 */
ast_hangup(i->owner);
return;