diff mgw/struct.h @ 103:3b3f07b112f3

mgw: implement GSM to PSTN forwarding
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2022 20:46:19 -0800
parents 1579ec0e9fb9
children f062c32a5116
line wrap: on
line diff
--- a/mgw/struct.h	Mon Sep 26 18:50:58 2022 -0800
+++ b/mgw/struct.h	Mon Sep 26 20:46:19 2022 -0800
@@ -30,6 +30,15 @@
 	/* gateway functionality */
 	void		*gsm_encoder_state;
 	void		*gsm_decoder_state;
+	/* GSM to PSTN forwarding */
+	int		g2p_state;
+	uint32_t	g2p_ssrc;
+	uint32_t	g2p_last_ts;
+	uint16_t	g2p_last_seq;
+	uint16_t	g2p_out_seq;
+	int		g2p_drop_flag;
+	int		g2p_err_flags;
+	/* PSTN to GSM forwarding */
 	int		p2g_state;
 	uint32_t	p2g_ssrc;
 	uint32_t	p2g_last_ts;