From 39207a085901ad27cde5608aeaa64860c0a9d422 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 14 Sep 2012 15:42:29 +0000 Subject: [PATCH] dont fail on zero port in tcp controller --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 190f6eacd..da7817dd1 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -455,7 +455,7 @@ static int streams_parse_func(char **a, void **ret, void *p) { st->mediatype = strdup(a[2] ? : ""); /* XXX should use string chunks */ st->num = ++(*i); - if (!st->port) + if (!st->port && strcmp(a[1], "0")) goto fail; *ret = st;