comparison 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
comparison
equal deleted inserted replaced
126:815e4c59162e 127:f062c32a5116
36 uint32_t g2p_last_ts; 36 uint32_t g2p_last_ts;
37 uint16_t g2p_last_seq; 37 uint16_t g2p_last_seq;
38 uint16_t g2p_out_seq; 38 uint16_t g2p_out_seq;
39 int g2p_drop_flag; 39 int g2p_drop_flag;
40 int g2p_err_flags; 40 int g2p_err_flags;
41 struct timeval g2p_local_time;
42 /* DTMF generation toward PSTN */
43 unsigned dtmf_frames_sent;
44 uint32_t dtmf_last_ts;
45 int16_t *dtmf_sample_ptr;
46 int dtmf_m_bit;
47 int dtmf_stop_req;
48 int dtmf_aftermath;
41 /* PSTN to GSM forwarding */ 49 /* PSTN to GSM forwarding */
42 int p2g_state; 50 int p2g_state;
43 uint32_t p2g_ssrc; 51 uint32_t p2g_ssrc;
44 uint32_t p2g_last_ts; 52 uint32_t p2g_last_ts;
45 uint16_t p2g_last_seq; 53 uint16_t p2g_last_seq;
47 int p2g_drop_flag; 55 int p2g_drop_flag;
48 int p2g_err_flags; 56 int p2g_err_flags;
49 /* linked list management */ 57 /* linked list management */
50 unsigned ep_id; 58 unsigned ep_id;
51 struct endpoint *next; 59 struct endpoint *next;
60 struct endpoint *dtmf_next;
61 struct endpoint **dtmf_pp;
52 }; 62 };
53 63
54 struct ctrl_conn { 64 struct ctrl_conn {
55 struct endpoint *endp_list; 65 struct endpoint *endp_list;
56 unsigned next_ep_id; 66 unsigned next_ep_id;