changeset 75:dd845c4933e1

sip-manual-out: swallow any received ACK w/o sending 501 response
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Sep 2022 12:28:37 -0800
parents 51e2f72dc5ab
children 21276f045026
files sip-manual-out/uas.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sip-manual-out/uas.c	Tue Sep 20 12:02:21 2022 -0800
+++ b/sip-manual-out/uas.c	Tue Sep 20 12:28:37 2022 -0800
@@ -108,6 +108,8 @@
 	/* dispatch by method */
 	if (!strcmp(msg->req_method, "BYE"))
 		handle_bye(msg, &ess, sin);
+	else if (!strcmp(msg->req_method, "ACK"))
+		printf("Received unexpected ACK, swallowing it\n");
 	else
 		unsupported_method(msg, &ess, sin);
 }