Browse Source

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 e811cd474d)
mr10.5.3
Richard Fuchs 3 years ago
parent
commit
bf4b60736b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/call_interfaces.c

+ 2
- 2
daemon/call_interfaces.c View File

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