comparison include/rtp_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 6aecee01cf0a
children
comparison
equal deleted inserted replaced
197:73bbe7da45cd 198:cf1ba5d65188
1 /* 1 /*
2 * This header file holds some definitions for RTP, as this protocol 2 * This header file holds some definitions for RTP, as this protocol
3 * functions in our GSM and PSTN environment. 3 * functions in our GSM and PSTN environment.
4 */ 4 */
5 5
6 #define RTP_PACKET_HDR_SIZE 12
6 #define RTP_PACKET_SIZE_PSTN 172 7 #define RTP_PACKET_SIZE_PSTN 172
7 #define RTP_PACKET_SIZE_GSM_FR 45
8 #define RTP_PACKET_SIZE_GSM_EFR 43
9 #define RTP_PACKET_SIZE_BFI 14
10 #define RTP_MAX_PAYLOAD 160 8 #define RTP_MAX_PAYLOAD 160
11 9
12 struct rtp_packet { 10 struct rtp_packet {
13 uint8_t v_p_x_cc; 11 uint8_t v_p_x_cc;
14 uint8_t m_pt; 12 uint8_t m_pt;