diff mgw/mdcx.c @ 205:0047c4c08d9e

mgw: accept the new TRAUlike RTP format in addition to standard, old BFI and zero-length payload formats
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 06 Apr 2023 19:50:09 -0800
parents c985c33baeac
children
line wrap: on
line diff
--- a/mgw/mdcx.c	Tue Apr 04 21:21:04 2023 -0800
+++ b/mgw/mdcx.c	Thu Apr 06 19:50:09 2023 -0800
@@ -12,10 +12,10 @@
 #include <string.h>
 #include <strings.h>
 #include <syslog.h>
+#include "../include/codec_defs.h"
 #include "../include/tmgw_ctrl.h"
 #include "../include/tmgw_const.h"
 #include "struct.h"
-#include "int_defs.h"
 
 extern struct endpoint *find_ep_by_id();
 
@@ -25,11 +25,11 @@
 {
 	switch (ep->gsm_payload_msg_type) {
 	case GSM_TCHF_FRAME:
-		ep->gsm_rtp_pkt_size = RTP_PACKET_SIZE_GSM_FR;
+		ep->gsm_payload_len = GSM_FR_BYTES;
 		ep->gsm_payload_magic = 0xD0;
 		return;
 	case GSM_TCHF_FRAME_EFR:
-		ep->gsm_rtp_pkt_size = RTP_PACKET_SIZE_GSM_EFR;
+		ep->gsm_payload_len = GSM_EFR_BYTES;
 		ep->gsm_payload_magic = 0xC0;
 		return;
 	}