diff mgw/struct.h @ 127:f062c32a5116

mgw: implement DTMF
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2022 20:31:15 -0800
parents 3b3f07b112f3
children 529906fddcfa
line wrap: on
line diff
--- a/mgw/struct.h	Sat Oct 01 17:09:51 2022 -0800
+++ b/mgw/struct.h	Sat Oct 01 20:31:15 2022 -0800
@@ -38,6 +38,14 @@
 	uint16_t	g2p_out_seq;
 	int		g2p_drop_flag;
 	int		g2p_err_flags;
+	struct timeval	g2p_local_time;
+	/* DTMF generation toward PSTN */
+	unsigned	dtmf_frames_sent;
+	uint32_t	dtmf_last_ts;
+	int16_t		*dtmf_sample_ptr;
+	int		dtmf_m_bit;
+	int		dtmf_stop_req;
+	int		dtmf_aftermath;
 	/* PSTN to GSM forwarding */
 	int		p2g_state;
 	uint32_t	p2g_ssrc;
@@ -49,6 +57,8 @@
 	/* linked list management */
 	unsigned	ep_id;
 	struct endpoint	*next;
+	struct endpoint	*dtmf_next;
+	struct endpoint	**dtmf_pp;
 };
 
 struct ctrl_conn {