From 7f0948544a155b2d457b9712802175581a6dd26c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 5 Oct 2012 14:37:48 +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 190f6ea..da7817d 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;