comparison mgw/struct.h @ 32:b3f74df7b808

beginning of themwi-mgw
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Jul 2022 22:51:44 -0800
parents
children f280328e7e2e
comparison
equal deleted inserted replaced
31:08d7794cdd0a 32:b3f74df7b808
1 /*
2 * This header file defines internal data structures for themwi-mgw.
3 */
4
5 struct bind_range_cfg {
6 struct in_addr bind_ip;
7 unsigned port_range_start;
8 unsigned port_range_end;
9 unsigned port_next;
10 unsigned port_tries;
11 };
12
13 struct rtp_one_end {
14 int rtp_fd;
15 int rtcp_fd;
16 struct sockaddr_in bound_addr;
17 struct sockaddr_in remote_addr;
18 };
19
20 struct endpoint {
21 unsigned ep_type;
22 struct rtp_one_end rtp_gsm;
23 struct rtp_one_end rtp_pstn;
24 unsigned gsm_payload_type;
25 unsigned gsm_payload_msg_type;
26 unsigned pstn_payload_type;
27 unsigned fwd_mode;
28 /* linked list management */
29 unsigned ep_id;
30 struct endpoint *next;
31 };
32
33 struct ctrl_conn {
34 struct endpoint *endp_list;
35 unsigned next_ep_id;
36 };