annotate include/rtp_defs.h @ 0:9e7e9ba22e42

starting project with public header files
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 09:10:27 +0000
parents
children 4a5560ef0807
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This header file holds some definitions for RTP, as this protocol
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * functions in our GSM and PSTN environment.
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #pragma once
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #define RTP_PACKET_HDR_SIZE 12
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #define RTP_PACKET_SIZE_PSTN 172
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 #define RTP_MAX_PAYLOAD 160
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 struct rtp_packet {
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 uint8_t v_p_x_cc;
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 uint8_t m_pt;
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 uint16_t seq;
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 uint32_t tstamp;
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 uint32_t ssrc;
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 uint8_t payload[RTP_MAX_PAYLOAD];
9e7e9ba22e42 starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 };