From 54f903da3fdb610321850182b3802172de374b6b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 2 Sep 2014 13:53:26 -0400 Subject: [PATCH] bugfixes for legacy control protocols --- daemon/call_interfaces.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 8f04bff45..9dee5e20a 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -81,6 +81,11 @@ static int addr_parse_udp(struct stream_params *sp, char **out) { int i; ZERO(*sp); + + SP_SET(sp, SEND); + SP_SET(sp, RECV); + sp->protocol = &transport_protocols[PROTO_RTP_AVP]; + if (out[RE_UDP_UL_ADDR4] && *out[RE_UDP_UL_ADDR4]) { ip4 = inet_addr(out[RE_UDP_UL_ADDR4]); if (ip4 == -1) @@ -115,6 +120,9 @@ static int addr_parse_udp(struct stream_params *sp, char **out) { sp->index = 1; sp->consecutive_ports = 1; + sp->rtcp_endpoint = sp->rtp_endpoint; + sp->rtcp_endpoint.port++; + return 0; fail: return -1; @@ -209,6 +217,10 @@ static int streams_parse_func(char **a, void **ret, void *p) { i = p; sp = g_slice_alloc0(sizeof(*sp)); + SP_SET(sp, SEND); + SP_SET(sp, RECV); + sp->protocol = &transport_protocols[PROTO_RTP_AVP]; + ip = inet_addr(a[0]); if (ip == -1) goto fail;