diff mgw/struct.h @ 95:f280328e7e2e

themwi-mgw: initial implementation of PSTN to GSM forwarding
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2022 19:17:44 -0800
parents b3f74df7b808
children f24bbfd23c9d
line wrap: on
line diff
--- a/mgw/struct.h	Sat Sep 24 15:14:50 2022 -0800
+++ b/mgw/struct.h	Sun Sep 25 19:17:44 2022 -0800
@@ -25,6 +25,14 @@
 	unsigned	gsm_payload_msg_type;
 	unsigned	pstn_payload_type;
 	unsigned	fwd_mode;
+	/* gateway functionality */
+	void		*gsm_encoder_state;
+	void		*gsm_decoder_state;
+	int		p2g_state;
+	uint32_t	p2g_ssrc;
+	uint32_t	p2g_last_ts;
+	uint16_t	p2g_last_seq;
+	int		p2g_err_flags;
 	/* linked list management */
 	unsigned	ep_id;
 	struct endpoint	*next;