comparison mgw/int_defs.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
children 648a64b2e16b
comparison
equal deleted inserted replaced
94:2c22b40408fb 95:f280328e7e2e
1 /*
2 * This header file holds miscellaneous internal definitions for themwi-mgw.
3 */
4
5 #define RTP_PACKET_SIZE_PSTN 172
6 #define RTP_PACKET_SIZE_GSM_FR 45
7 #define RTP_PACKET_SIZE_GSM_EFR 43
8 #define RTP_MAX_PAYLOAD 160
9
10 struct rtp_packet {
11 uint8_t v_p_x_cc;
12 uint8_t m_pt;
13 uint16_t seq;
14 uint32_t tstamp;
15 uint32_t ssrc;
16 uint8_t payload[RTP_MAX_PAYLOAD];
17 };
18
19 #define SAMPLES_PER_FRAME 160