From 5d726fdf84789849ecdba93dc1c5cf07d7ba2ae1 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 6 Feb 2013 09:55:52 -0500 Subject: [PATCH] fix some ipv6 related bugs --- daemon/call.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index a4462dd04..c3284ddd9 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1503,7 +1503,7 @@ static int call_stream_address6(char *o, struct peer *p, enum stream_address_for int l = 0; if (format == SAF_NG) { - strcpy(o + l, "IP4 "); + strcpy(o + l, "IP6 "); l += 4; } @@ -2170,13 +2170,13 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, GQueue *streams, ben if (!bencode_strcmp(it, "internal")) dirs[diridx++] = DIR_INTERNAL; else if (!bencode_strcmp(it, "external")) - dirs[diridx++] = DIR_INTERNAL; + dirs[diridx++] = DIR_EXTERNAL; } for (gl = streams->head; gl; gl = gl->next) { si = gl->data; - si->direction[0] = dirs[0]; - si->direction[1] = dirs[1]; + si->direction[0] = dirs[1]; /* bencode list is traversed backwards */ + si->direction[1] = dirs[0]; } }