comparison 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
comparison
equal deleted inserted replaced
163:bfa9f0c0f0ac 164:baaa6c1a3d3b
37 call->mncc = 0; 37 call->mncc = 0;
38 if (call->overall_state < OVERALL_STATE_TEARDOWN) { 38 if (call->overall_state < OVERALL_STATE_TEARDOWN) {
39 call->overall_state = OVERALL_STATE_TEARDOWN; 39 call->overall_state = OVERALL_STATE_TEARDOWN;
40 disconnect_tmgw(call); 40 disconnect_tmgw(call);
41 disconnect_sip(call); 41 disconnect_sip(call);
42 check_dead_call(call);
43 } 42 }
43 check_dead_call(call);
44 } 44 }
45 } 45 }
46 46
47 void 47 void
48 shutdown_mgw_conn() 48 shutdown_mgw_conn()
55 if (call->overall_state < OVERALL_STATE_TEARDOWN) { 55 if (call->overall_state < OVERALL_STATE_TEARDOWN) {
56 call->overall_state = OVERALL_STATE_TEARDOWN; 56 call->overall_state = OVERALL_STATE_TEARDOWN;
57 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU, 57 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
58 GSM48_CC_CAUSE_NETWORK_OOO); 58 GSM48_CC_CAUSE_NETWORK_OOO);
59 disconnect_sip(call); 59 disconnect_sip(call);
60 check_dead_call(call);
61 } 60 }
61 check_dead_call(call);
62 } 62 }
63 } 63 }