diff mtctest/sig_handler.c @ 6:33d8b3177540

mtctest compiles in the new environment
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 09 Jun 2024 01:55:28 +0000
parents e7b192a5dee5
children 0ec938ed530b
line wrap: on
line diff
--- a/mtctest/sig_handler.c	Sun Jun 09 00:58:38 2024 +0000
+++ b/mtctest/sig_handler.c	Sun Jun 09 01:55:28 2024 +0000
@@ -12,11 +12,12 @@
 #include <stdlib.h>
 #include <string.h>
 #include <strings.h>
+#include <themwi/rtp/rtp_alloc_simple.h>
 #include "../include/mncc.h"
 #include "../include/gsm48_const.h"
 
 extern int disconnect_mode;
-extern struct sockaddr_storage dummy_rtp_endp;
+extern struct rtp_alloc_simple rtp_info;
 extern struct timeval cur_event_time;
 
 static void
@@ -197,7 +198,7 @@
 	bzero(&rtp, sizeof(struct gsm_mncc_rtp));
 	rtp.msg_type = MNCC_RTP_CONNECT;
 	rtp.callref = 1;
-	bcopy(&dummy_rtp_endp, &rtp.addr, sizeof(struct sockaddr_storage));
+	bcopy(&rtp_info.gsm_addr, &rtp.addr, sizeof(struct sockaddr_storage));
 	send_mncc_to_gsm(&rtp, sizeof(struct gsm_mncc_rtp));
 }