FreeCalypso > hg > themwi-system-sw
diff sip-in/invite.c @ 57:d61d0136f6a5
sip-in INVITE processing: return "GSM service is offline" indication
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 08 Sep 2022 13:39:42 -0800 |
parents | f1d59210f7b2 |
children | 02761f1ae5e5 |
line wrap: on
line diff
--- a/sip-in/invite.c Thu Sep 08 13:25:31 2022 -0800 +++ b/sip-in/invite.c Thu Sep 08 13:39:42 2022 -0800 @@ -159,4 +159,10 @@ return; } /* 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"); + goto error_resp; + } + /* stateful processing begins */ }