diff sip-in/sip_udp.c @ 82:ff4b76a107a1

sip-in: process responses as UAC for BYE
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Sep 2022 20:33:09 -0800
parents 15c9e1f8f756
children
line wrap: on
line diff
--- a/sip-in/sip_udp.c	Tue Sep 20 20:11:44 2022 -0800
+++ b/sip-in/sip_udp.c	Tue Sep 20 20:33:09 2022 -0800
@@ -73,6 +73,8 @@
 	/* dispatch good-so-far SIP message */
 	if (pkt.parse_msgtype == SIP_MSG_TYPE_REQ)
 		process_sip_request(&pkt, &sin);
+	else if (pkt.parse_msgtype == SIP_MSG_TYPE_RESP)
+		process_sip_response(&pkt, &sin);
 }
 
 void