comparison mgw/int_defs.h @ 198:cf1ba5d65188

mgw: start using project-global rtp_defs.h
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 29 Mar 2023 20:06:40 -0800
parents 648a64b2e16b
children 0047c4c08d9e
comparison
equal deleted inserted replaced
197:73bbe7da45cd 198:cf1ba5d65188
1 /* 1 /*
2 * This header file holds miscellaneous internal definitions for themwi-mgw. 2 * This header file holds miscellaneous internal definitions for themwi-mgw.
3 */ 3 */
4 4
5 #define RTP_PACKET_SIZE_PSTN 172
6 #define RTP_PACKET_SIZE_GSM_FR 45 5 #define RTP_PACKET_SIZE_GSM_FR 45
7 #define RTP_PACKET_SIZE_GSM_EFR 43 6 #define RTP_PACKET_SIZE_GSM_EFR 43
8 #define RTP_PACKET_SIZE_BFI 14 7 #define RTP_PACKET_SIZE_BFI 14
9 #define RTP_MAX_PAYLOAD 160
10
11 struct rtp_packet {
12 uint8_t v_p_x_cc;
13 uint8_t m_pt;
14 uint16_t seq;
15 uint32_t tstamp;
16 uint32_t ssrc;
17 uint8_t payload[RTP_MAX_PAYLOAD];
18 };
19 8
20 #define SAMPLES_PER_FRAME 160 9 #define SAMPLES_PER_FRAME 160