Browse Source

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
pull/1614/head
Richard Fuchs 3 years ago
parent
commit
8db4d64b84
2 changed files with 7 additions and 0 deletions
  1. +6
    -0
      daemon/media_socket.c
  2. +1
    -0
      include/media_socket.h

+ 6
- 0
daemon/media_socket.c View File

@ -121,6 +121,7 @@ const struct transport_protocol transport_protocols[] = {
.avpf_proto = PROTO_RTP_SAVPF, .avpf_proto = PROTO_RTP_SAVPF,
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVP,
.avpf = 0, .avpf = 0,
.tcp = 0, .tcp = 0,
}, },
@ -138,6 +139,7 @@ const struct transport_protocol transport_protocols[] = {
.name = "RTP/SAVPF", .name = "RTP/SAVPF",
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVPF,
.avpf = 1, .avpf = 1,
.tcp = 0, .tcp = 0,
}, },
@ -147,6 +149,7 @@ const struct transport_protocol transport_protocols[] = {
.avpf_proto = PROTO_UDP_TLS_RTP_SAVPF, .avpf_proto = PROTO_UDP_TLS_RTP_SAVPF,
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVP,
.avpf = 0, .avpf = 0,
.tcp = 0, .tcp = 0,
}, },
@ -155,6 +158,7 @@ const struct transport_protocol transport_protocols[] = {
.name = "UDP/TLS/RTP/SAVPF", .name = "UDP/TLS/RTP/SAVPF",
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVPF,
.avpf = 1, .avpf = 1,
.tcp = 0, .tcp = 0,
}, },
@ -172,6 +176,7 @@ const struct transport_protocol transport_protocols[] = {
.avpf_proto = PROTO_RTP_SAVPF_OSRTP, .avpf_proto = PROTO_RTP_SAVPF_OSRTP,
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVP,
.osrtp = 1, .osrtp = 1,
.avpf = 0, .avpf = 0,
.tcp = 0, .tcp = 0,
@ -181,6 +186,7 @@ const struct transport_protocol transport_protocols[] = {
.name = "RTP/AVPF", .name = "RTP/AVPF",
.rtp = 1, .rtp = 1,
.srtp = 1, .srtp = 1,
.rtp_proto = PROTO_RTP_AVPF,
.osrtp = 1, .osrtp = 1,
.avpf = 1, .avpf = 1,
.tcp = 0, .tcp = 0,


+ 1
- 0
include/media_socket.h View File

@ -48,6 +48,7 @@ struct transport_protocol {
const char *name; const char *name;
enum transport_protocol_index avpf_proto; enum transport_protocol_index avpf_proto;
enum transport_protocol_index osrtp_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 rtp:1; /* also set to 1 for SRTP */
unsigned int srtp:1; unsigned int srtp:1;
unsigned int osrtp:1; unsigned int osrtp:1;


Loading…
Cancel
Save