comparison sip-in/mgw_ops.c @ 110:c1c94b7fc2e2

sip-in call clearing: DEAD_SIP transition implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 18:37:19 -0800
parents 9b87894704eb
children 5685412bd6aa
comparison
equal deleted inserted replaced
109:9b87894704eb 110:c1c94b7fc2e2
142 switch (call->overall_state) { 142 switch (call->overall_state) {
143 case OVERALL_STATE_CRCX: 143 case OVERALL_STATE_CRCX:
144 handle_crcx_fail(call, msg); 144 handle_crcx_fail(call, msg);
145 return; 145 return;
146 case OVERALL_STATE_TEARDOWN: 146 case OVERALL_STATE_TEARDOWN:
147 transition_dead_sip(call);
147 return; 148 return;
148 default: 149 default:
149 goto bad_state; 150 goto bad_state;
150 } 151 }
151 } 152 }
221 syslog(LOG_CRIT, "FATAL: TMGW DLCX failed with code 0x%x", 222 syslog(LOG_CRIT, "FATAL: TMGW DLCX failed with code 0x%x",
222 msg->res); 223 msg->res);
223 exit(1); 224 exit(1);
224 } 225 }
225 call->mgw_state = MGW_STATE_NO_EXIST; 226 call->mgw_state = MGW_STATE_NO_EXIST;
226 /* TODO: transition from TEARDOWN to DEAD_SIP */ 227 transition_dead_sip(call);
227 } 228 }
228 229
229 void 230 void
230 process_tmgw_response(msg) 231 process_tmgw_response(msg)
231 struct tmgw_ctrl_resp *msg; 232 struct tmgw_ctrl_resp *msg;