# HG changeset patch # User Mychaela Falconia # Date 1720409318 0 # Node ID 9fd693f234f8b48886c07d1209a1a414b2ab5b88 # Parent 3e01a71b7c7c90b2845ec93b75128cbb4d81ff9d definitions for RTCP SDES diff -r 3e01a71b7c7c -r 9fd693f234f8 include/endp.h --- a/include/endp.h Mon Jul 08 02:55:32 2024 +0000 +++ b/include/endp.h Mon Jul 08 03:28:38 2024 +0000 @@ -58,6 +58,9 @@ struct twrtp_jibuf_inst *twjit; struct twrtp_endp_rtcp_rx rtcp_rx; struct twrtp_endp_tx tx; + uint8_t *sdes_buf; + uint16_t sdes_len; + uint16_t auto_rtcp_interval; /* always have to have stats */ struct twrtp_endp_stats stats; /* bool flags at the end for structure packing optimization */ @@ -83,3 +86,7 @@ unsigned payload_len, uint8_t payload_type, bool marker, bool auto_marker, bool send_rtcp); void twrtp_endp_tx_skip(struct twrtp_endp *endp); + +int twrtp_endp_set_sdes(struct twrtp_endp *endp, const char *cname, + const char *name, const char *email, const char *phone, + const char *loc, const char *tool, const char *note); diff -r 3e01a71b7c7c -r 9fd693f234f8 include/rtcp_defs.h --- a/include/rtcp_defs.h Mon Jul 08 02:55:32 2024 +0000 +++ b/include/rtcp_defs.h Mon Jul 08 03:28:38 2024 +0000 @@ -36,3 +36,14 @@ #define RTCP_PT_SR 200 #define RTCP_PT_RR 201 #define RTCP_PT_SDES 202 +#define RTCP_PT_BYE 203 +#define RTCP_PT_APP 204 + +#define SDES_ITEM_CNAME 1 +#define SDES_ITEM_NAME 2 +#define SDES_ITEM_EMAIL 3 +#define SDES_ITEM_PHONE 4 +#define SDES_ITEM_LOC 5 +#define SDES_ITEM_TOOL 6 +#define SDES_ITEM_NOTE 7 +#define SDES_ITEM_PRIV 8