Release active call, when disconnect is received from network

If early disconnect is received, the connecion is kept established, so the
announcement can be heared by mobile subscriber.
This commit is contained in:
Andreas Eversberg
2016-07-20 12:50:22 +02:00
parent 4745b29115
commit 5807a49f49
3 changed files with 15 additions and 4 deletions

View File

@@ -1641,8 +1641,8 @@ void call_out_disconnect(int callref, int cause)
return;
}
/* Release when not active */
if (nmt->state == STATE_ACTIVE)
/* Release when not active and not waiting for answer */
if (nmt->state == STATE_ACTIVE || nmt->state == STATE_MO_COMPLETE)
return;
switch (nmt->state) {
case STATE_MT_RINGING: