Browse Source

bugfixes for legacy control protocols

pull/23/head
Richard Fuchs 11 years ago
parent
commit
54f903da3f
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      daemon/call_interfaces.c

+ 12
- 0
daemon/call_interfaces.c View File

@ -81,6 +81,11 @@ static int addr_parse_udp(struct stream_params *sp, char **out) {
int i; int i;
ZERO(*sp); 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]) { if (out[RE_UDP_UL_ADDR4] && *out[RE_UDP_UL_ADDR4]) {
ip4 = inet_addr(out[RE_UDP_UL_ADDR4]); ip4 = inet_addr(out[RE_UDP_UL_ADDR4]);
if (ip4 == -1) if (ip4 == -1)
@ -115,6 +120,9 @@ static int addr_parse_udp(struct stream_params *sp, char **out) {
sp->index = 1; sp->index = 1;
sp->consecutive_ports = 1; sp->consecutive_ports = 1;
sp->rtcp_endpoint = sp->rtp_endpoint;
sp->rtcp_endpoint.port++;
return 0; return 0;
fail: fail:
return -1; return -1;
@ -209,6 +217,10 @@ static int streams_parse_func(char **a, void **ret, void *p) {
i = p; i = p;
sp = g_slice_alloc0(sizeof(*sp)); 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]); ip = inet_addr(a[0]);
if (ip == -1) if (ip == -1)
goto fail; goto fail;


Loading…
Cancel
Save