FreeCalypso > hg > themwi-system-sw
diff sip-in/invite.c @ 107:372209628038
sip-in: handle themwi-mgw shutdown without terminating
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2022 23:45:40 -0800 |
parents | ce3b1db7d1d7 |
children | 0d6435808bcd |
line wrap: on
line diff
--- a/sip-in/invite.c Tue Sep 27 23:44:07 2022 -0800 +++ b/sip-in/invite.c Tue Sep 27 23:45:40 2022 -0800 @@ -243,9 +243,12 @@ /* SIP INVITE validation done - check if GSM service is up */ rc = connect_gsm_mtcall(); if (rc < 0) { - start_response_out_msg(&resp, "480 GSM service is offline"); +gsm_offline: start_response_out_msg(&resp, "480 GSM service is offline"); goto error_resp; } + rc = connect_tmgw_socket(); + if (rc < 0) + goto gsm_offline; /* stateful processing begins */ call = malloc(sizeof(struct call) + strlen(ess->call_id) + strlen(ess->from) + req_uri_len + strlen(ess->via) + 19);