comparison mgw/struct.h @ 170:a6eb2de277f6

mgw: massive simplification for continuous RTP stream from BTS
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 01:58:47 -0800
parents 8c28426abef0
children 0047c4c08d9e
comparison
equal deleted inserted replaced
169:648a64b2e16b 170:a6eb2de277f6
37 uint32_t g2p_last_ts; 37 uint32_t g2p_last_ts;
38 uint16_t g2p_last_seq; 38 uint16_t g2p_last_seq;
39 uint16_t g2p_out_seq; 39 uint16_t g2p_out_seq;
40 int g2p_drop_flag; 40 int g2p_drop_flag;
41 int g2p_err_flags; 41 int g2p_err_flags;
42 struct timeval g2p_local_time;
43 /* DTMF generation toward PSTN */ 42 /* DTMF generation toward PSTN */
43 int16_t *dtmf_sample_ptr;
44 unsigned dtmf_frames_sent; 44 unsigned dtmf_frames_sent;
45 uint32_t dtmf_last_ts;
46 struct timeval dtmf_last_time;
47 int16_t *dtmf_sample_ptr;
48 int dtmf_m_bit;
49 int dtmf_stop_req;
50 int dtmf_aftermath;
51 /* PSTN to GSM forwarding */ 45 /* PSTN to GSM forwarding */
52 int p2g_state; 46 int p2g_state;
53 uint32_t p2g_ssrc; 47 uint32_t p2g_ssrc;
54 uint32_t p2g_last_ts; 48 uint32_t p2g_last_ts;
55 uint16_t p2g_last_seq; 49 uint16_t p2g_last_seq;
57 int p2g_drop_flag; 51 int p2g_drop_flag;
58 int p2g_err_flags; 52 int p2g_err_flags;
59 /* linked list management */ 53 /* linked list management */
60 unsigned ep_id; 54 unsigned ep_id;
61 struct endpoint *next; 55 struct endpoint *next;
62 struct endpoint *dtmf_next;
63 struct endpoint **dtmf_pp;
64 }; 56 };
65 57
66 struct ctrl_conn { 58 struct ctrl_conn {
67 struct endpoint *endp_list; 59 struct endpoint *endp_list;
68 unsigned next_ep_id; 60 unsigned next_ep_id;