From 8db4d64b844200310c343212f61963d4bed78da7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 2 Feb 2023 07:44:44 -0500 Subject: [PATCH] MT#56521 add reference to plain RTP protocol For each SRTP protocol known, add a reference to the matching plain RTP protocol, Change-Id: I07da626f9ba80bac009deff2f30459c0998b1ef6 --- daemon/media_socket.c | 6 ++++++ include/media_socket.h | 1 + 2 files changed, 7 insertions(+) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index d1f9374af..02cfd54ba 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -121,6 +121,7 @@ const struct transport_protocol transport_protocols[] = { .avpf_proto = PROTO_RTP_SAVPF, .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVP, .avpf = 0, .tcp = 0, }, @@ -138,6 +139,7 @@ const struct transport_protocol transport_protocols[] = { .name = "RTP/SAVPF", .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVPF, .avpf = 1, .tcp = 0, }, @@ -147,6 +149,7 @@ const struct transport_protocol transport_protocols[] = { .avpf_proto = PROTO_UDP_TLS_RTP_SAVPF, .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVP, .avpf = 0, .tcp = 0, }, @@ -155,6 +158,7 @@ const struct transport_protocol transport_protocols[] = { .name = "UDP/TLS/RTP/SAVPF", .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVPF, .avpf = 1, .tcp = 0, }, @@ -172,6 +176,7 @@ const struct transport_protocol transport_protocols[] = { .avpf_proto = PROTO_RTP_SAVPF_OSRTP, .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVP, .osrtp = 1, .avpf = 0, .tcp = 0, @@ -181,6 +186,7 @@ const struct transport_protocol transport_protocols[] = { .name = "RTP/AVPF", .rtp = 1, .srtp = 1, + .rtp_proto = PROTO_RTP_AVPF, .osrtp = 1, .avpf = 1, .tcp = 0, diff --git a/include/media_socket.h b/include/media_socket.h index 93dfbbd72..39494b69e 100644 --- a/include/media_socket.h +++ b/include/media_socket.h @@ -48,6 +48,7 @@ struct transport_protocol { const char *name; enum transport_protocol_index avpf_proto; enum transport_protocol_index osrtp_proto; + enum transport_protocol_index rtp_proto; unsigned int rtp:1; /* also set to 1 for SRTP */ unsigned int srtp:1; unsigned int osrtp:1;