diff sip-in/bye_out.c @ 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 c1c94b7fc2e2
children
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) {