diff sip-in/sip_uas.c @ 80:a9944b66dcc5

sip-in: handle incoming BYE
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Sep 2022 19:35:34 -0800
parents b0df2b200d77
children 0d6435808bcd
line wrap: on
line diff
--- a/sip-in/sip_uas.c	Tue Sep 20 18:58:11 2022 -0800
+++ b/sip-in/sip_uas.c	Tue Sep 20 19:35:34 2022 -0800
@@ -15,16 +15,6 @@
 #include "../libsip/out_msg.h"
 
 static void
-method_tbi(req, ess, sin)
-	struct sip_pkt_rx *req;
-	struct uas_parse_hdrs *ess;
-	struct sockaddr_in *sin;
-{
-	syslog(LOG_ERR, "SIP method %s remains to be implemented",
-		req->req_method);
-}
-
-static void
 unsupported_method(req, ess, sin)
 	struct sip_pkt_rx *req;
 	struct uas_parse_hdrs *ess;
@@ -68,7 +58,7 @@
 	else if (!strcmp(msg->req_method, "CANCEL"))
 		handle_sip_cancel(msg, &ess, sin);
 	else if (!strcmp(msg->req_method, "BYE"))
-		method_tbi(msg, &ess, sin);
+		handle_sip_bye(msg, &ess, sin);
 	else
 		unsupported_method(msg, &ess, sin);
 }