diff sip-out/shutdown.c @ 164:baaa6c1a3d3b

sip-out shutdown handling: always do check_dead_call()
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2022 16:31:15 -0800
parents e54b0a9e322f
children
line wrap: on
line diff
--- a/sip-out/shutdown.c	Wed Oct 12 14:45:31 2022 -0800
+++ b/sip-out/shutdown.c	Wed Oct 12 16:31:15 2022 -0800
@@ -39,8 +39,8 @@
 			call->overall_state = OVERALL_STATE_TEARDOWN;
 			disconnect_tmgw(call);
 			disconnect_sip(call);
-			check_dead_call(call);
 		}
+		check_dead_call(call);
 	}
 }
 
@@ -57,7 +57,7 @@
 			disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
 					GSM48_CC_CAUSE_NETWORK_OOO);
 			disconnect_sip(call);
-			check_dead_call(call);
 		}
+		check_dead_call(call);
 	}
 }