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
pull/1577/head
Richard Fuchs 4 years ago
parent 7ed04c3949
commit e811cd474d

@ -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;

Loading…
Cancel
Save