changeset 84:f82157ac7303

sip-in: handle MNCC_RTP_CREATE
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Sep 2022 22:44:44 -0800
parents 3e3fbf44f9d7
children 70c3c8ebee33
files sip-in/mncc_handle.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/mncc_handle.c	Tue Sep 20 22:06:37 2022 -0800
+++ b/sip-in/mncc_handle.c	Tue Sep 20 22:44:44 2022 -0800
@@ -181,7 +181,14 @@
 			msg->msg_type, msg->callref);
 		exit(1);
 	}
-	/* handling to be implemented */
+	/* save Osmocom network RTP information */
+	bcopy(&msg->addr, &call->gsm_rtp_osmo, sizeof(struct sockaddr_storage));
+	call->gsm_payload_type = msg->payload_type;
+	call->gsm_payload_msg_type = msg->payload_msg_type;
+	/* respond with MNCC_RTP_CONNECT */
+	msg->msg_type = MNCC_RTP_CONNECT;
+	bcopy(&call->gsm_rtp_tmgw, &msg->addr, sizeof(struct sockaddr_storage));
+	send_mncc_to_gsm(msg, sizeof(struct gsm_mncc_rtp));
 }
 
 void