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;