changeset 144:4e16aeafbfbf

sip-in: syslog non-200 responses to BYE
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Oct 2022 19:06:24 -0800
parents bf3b19bf57e9
children 4b685a5d9bd4
files sip-in/bye_out.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/bye_out.c	Sat Oct 08 19:05:53 2022 -0800
+++ b/sip-in/bye_out.c	Sat Oct 08 19:06:24 2022 -0800
@@ -109,6 +109,9 @@
 			msg->status_code, rid.cseq_num, rid.cseq_method);
 		return;
 	}
+	if (msg->status_code != 200)
+		syslog(LOG_ERR, "Call in%06u: non-200 response to BYE: %.64s",
+			call->in_tag_num, msg->status_str);
 	if (msg->status_code < 200)
 		return;
 	if (call->sip_state == SIP_STATE_BYE_SENT) {