FreeCalypso > hg > themwi-system-sw
comparison sip-in/invite.c @ 117:c93c339271a7
sip-in CDR syslog: put a safety limit on string length
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Sep 2022 23:07:46 -0800 |
parents | a30c25fb4c2f |
children |
comparison
equal
deleted
inserted
replaced
116:3a1f0e13a3ac | 117:c93c339271a7 |
---|---|
261 /* check if GSM service is up */ | 261 /* check if GSM service is up */ |
262 rc = connect_gsm_mtcall(); | 262 rc = connect_gsm_mtcall(); |
263 if (rc < 0) { | 263 if (rc < 0) { |
264 gsm_offline: syslog(LOG_INFO, "Down-call from %s to %s", cdr_str, uri_user); | 264 gsm_offline: syslog(LOG_INFO, "Down-call from %s to %s", cdr_str, uri_user); |
265 if (hval) | 265 if (hval) |
266 syslog(LOG_INFO, "Down-call PAI: %s", hval); | 266 syslog(LOG_INFO, "Down-call PAI: %.100s", hval); |
267 start_response_out_msg(&resp, "480 GSM service is offline"); | 267 start_response_out_msg(&resp, "480 GSM service is offline"); |
268 goto error_resp; | 268 goto error_resp; |
269 } | 269 } |
270 rc = connect_tmgw_socket(); | 270 rc = connect_tmgw_socket(); |
271 if (rc < 0) | 271 if (rc < 0) |
333 call->next = call_list; | 333 call->next = call_list; |
334 call_list = call; | 334 call_list = call; |
335 syslog(LOG_INFO, "Call in%06u from %s to %s", call->in_tag_num, | 335 syslog(LOG_INFO, "Call in%06u from %s to %s", call->in_tag_num, |
336 cdr_str, uri_user); | 336 cdr_str, uri_user); |
337 if (hval) | 337 if (hval) |
338 syslog(LOG_INFO, "Call in%06u PAI: %s", call->in_tag_num, hval); | 338 syslog(LOG_INFO, "Call in%06u PAI: %.100s", call->in_tag_num, |
339 hval); | |
339 /* send CRCX to TMGW */ | 340 /* send CRCX to TMGW */ |
340 tmgw_send_crcx(call); | 341 tmgw_send_crcx(call); |
341 call->overall_state = OVERALL_STATE_CRCX; | 342 call->overall_state = OVERALL_STATE_CRCX; |
342 call->sip_state = SIP_STATE_INVITE_PROC; | 343 call->sip_state = SIP_STATE_INVITE_PROC; |
343 } | 344 } |