changeset 67:15c9e1f8f756

sip-in: enable SIP UDP output
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 18 Sep 2022 16:55:01 -0800
parents 5beb51de1bae
children 709b78a4ebf0
files sip-in/sip_udp.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/sip_udp.c	Sun Sep 18 16:17:31 2022 -0800
+++ b/sip-in/sip_udp.c	Sun Sep 18 16:55:01 2022 -0800
@@ -80,6 +80,10 @@
 	struct sip_msg_out *msg;
 	struct sockaddr_in *sin;
 {
+	socklen_t addrlen;
+
+	addrlen = sizeof(struct sockaddr_in);
+	sendto(sip_socket, msg->buf, msg->msg_len, 0, (struct sockaddr *) sin,
+		addrlen);
 	log_sip_msg_tx(msg->buf, msg->msg_len, sin);
-	/* actual UDP send to BulkVS omitted at this development stage */
 }