changeset 30:9fd693f234f8

definitions for RTCP SDES
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 08 Jul 2024 03:28:38 +0000
parents 3e01a71b7c7c
children 284fcb5868e2
files include/endp.h include/rtcp_defs.h
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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