From bf4b60736b1c7c5e380b1e3278b0c1877b93aed8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 7 Nov 2022 14:48:13 -0500 Subject: [PATCH] MT#55283 don't set RTP flag for legacy protocols Legacy UDP/TCP control protocols don't provide information about RTP payload types, therefore don't pretend that we know that this is RTP. Setting the RTP flag without knowing the payload types has the undesired side effect that unknown payload types (all of them) would not be handled by the kernel module. Change-Id: I5882f777a5912b912ec7c870f21c77aac8127600 (cherry picked from commit e811cd474d602c62e8c47b55de21a3e201c1f79f) --- daemon/call_interfaces.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 4b68ef026..afc0e9ebc 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -126,7 +126,7 @@ static int addr_parse_udp(struct stream_params *sp, char **out) { SP_SET(sp, SEND); SP_SET(sp, RECV); - sp->protocol = &transport_protocols[PROTO_RTP_AVP]; + sp->protocol = &transport_protocols[PROTO_UNKNOWN]; if (out[RE_UDP_UL_ADDR4] && *out[RE_UDP_UL_ADDR4]) { if (sockaddr_parse_any(&sp->rtp_endpoint.address, out[RE_UDP_UL_ADDR4])) @@ -279,7 +279,7 @@ static int streams_parse_func(char **a, void **ret, void *p) { SP_SET(sp, SEND); SP_SET(sp, RECV); - sp->protocol = &transport_protocols[PROTO_RTP_AVP]; + sp->protocol = &transport_protocols[PROTO_UNKNOWN]; if (endpoint_parse_port_any(&sp->rtp_endpoint, a[0], atoi(a[1]))) goto fail;