FreeCalypso > hg > themwi-rtp-mgr
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9e7e9ba22e42 |
|---|---|
| 1 /* | |
| 2 * This header file holds some definitions for RTP, as this protocol | |
| 3 * functions in our GSM and PSTN environment. | |
| 4 */ | |
| 5 | |
| 6 #pragma once | |
| 7 | |
| 8 #define RTP_PACKET_HDR_SIZE 12 | |
| 9 #define RTP_PACKET_SIZE_PSTN 172 | |
| 10 #define RTP_MAX_PAYLOAD 160 | |
| 11 | |
| 12 struct rtp_packet { | |
| 13 uint8_t v_p_x_cc; | |
| 14 uint8_t m_pt; | |
| 15 uint16_t seq; | |
| 16 uint32_t tstamp; | |
| 17 uint32_t ssrc; | |
| 18 uint8_t payload[RTP_MAX_PAYLOAD]; | |
| 19 }; |
