FreeCalypso > hg > themwi-rtp-mgr
annotate include/rtp_defs.h @ 7:b97024a897c3
add top Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 27 May 2024 21:12:15 +0000 |
parents | 4a5560ef0807 |
children |
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 |
5
4a5560ef0807
include/rtp_defs.h: #include <stdint.h> dependency
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
8 #include <stdint.h> |
4a5560ef0807
include/rtp_defs.h: #include <stdint.h> dependency
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
9 |
0
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 #define RTP_PACKET_HDR_SIZE 12 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #define RTP_PACKET_SIZE_PSTN 172 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #define RTP_MAX_PAYLOAD 160 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 struct rtp_packet { |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 uint8_t v_p_x_cc; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 uint8_t m_pt; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 uint16_t seq; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 uint32_t tstamp; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 uint32_t ssrc; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 uint8_t payload[RTP_MAX_PAYLOAD]; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 }; |