changeset 142:bb9a75557f59

sip-in: syslog SIP message retransmission failures
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Oct 2022 13:42:27 -0800
parents e499e8db8b82
children bf3b19bf57e9
files sip-in/retrans.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/retrans.c	Sat Oct 08 13:28:30 2022 -0800
+++ b/sip-in/retrans.c	Sat Oct 08 13:42:27 2022 -0800
@@ -39,6 +39,8 @@
 				sip_tx_packet(&msg, &call->udp_sin);
 				call->sip_tx_count++;
 			} else {
+				syslog(LOG_ERR,
+					"Call in%06u: 100rel retrans timeout");
 				call->overall_state = OVERALL_STATE_TEARDOWN;
 				disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
 						GSM48_CC_CAUSE_INTERWORKING);
@@ -54,6 +56,8 @@
 				sip_tx_packet(&msg, &call->udp_sin);
 				call->sip_tx_count++;
 			} else {
+				syslog(LOG_ERR,
+					"Call in%06u: 200 retrans timeout");
 				call->overall_state = OVERALL_STATE_TEARDOWN;
 				disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
 						GSM48_CC_CAUSE_INTERWORKING);
@@ -69,6 +73,8 @@
 				sip_tx_packet(&msg, &call->udp_sin);
 				call->sip_tx_count++;
 			} else {
+				syslog(LOG_ERR,
+				"Call in%06u: late error retrans timeout");
 				call->sip_state = SIP_STATE_ENDED;
 				sip_mark_end_time(call, sip_linger_error);
 				transition_dead_sip(call);
@@ -80,6 +86,8 @@
 				sip_tx_packet(&msg, &call->udp_sin);
 				call->sip_tx_count++;
 			} else {
+				syslog(LOG_ERR,
+					"Call in%06u: BYE-out retrans timeout");
 				call->sip_state = SIP_STATE_ENDED;
 				sip_mark_end_time(call, sip_linger_error);
 				transition_dead_sip(call);