comparison sip-in/invite_init.c @ 250:27408ac6e863

sip-in: consistent CDR logs for statelessly rejected calls
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 14 Aug 2023 23:40:56 -0800
parents e980fe9c186c
children
comparison
equal deleted inserted replaced
249:e980fe9c186c 250:27408ac6e863
229 goto error_resp; 229 goto error_resp;
230 } 230 }
231 /* check if GSM service is up */ 231 /* check if GSM service is up */
232 rc = connect_gsm_mtcall(); 232 rc = connect_gsm_mtcall();
233 if (rc < 0) { 233 if (rc < 0) {
234 gsm_offline: syslog(LOG_INFO, "Down-call from %s to %s", cdr_str, uri_user); 234 gsm_offline: syslog(LOG_INFO, "Call from %s to %s: system is down", cdr_str,
235 uri_user);
235 if (hval) 236 if (hval)
236 syslog(LOG_INFO, "Down-call PAI: %.100s", hval); 237 syslog(LOG_INFO, "Down-call PAI: %.100s", hval);
237 start_response_out_msg(&resp, "480 GSM service is offline"); 238 start_response_out_msg(&resp, "480 GSM service is offline");
238 goto error_resp; 239 goto error_resp;
239 } 240 }