FreeCalypso > hg > themwi-rtp-mgr
annotate include/rtp_defs.h @ 1:560a3765ab30
include: hg mv rtp_alloc.h rtp_alloc_if.h
The reason for this rename is that we anticipate having additional
rtp_alloc_*.h header files for client library functions that work
with RTP allocation via themwi-rtp-mgr.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 27 May 2024 18:35:39 +0000 |
parents | 9e7e9ba22e42 |
children | 4a5560ef0807 |
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 }; |