From ccf91552180a3ab460c9843152edfcf59de2fffb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 27 Jun 2013 10:08:31 -0400 Subject: [PATCH] fix stripping of ice_ufrag attribute --- daemon/sdp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 15e589bec..afe8a2d7c 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1100,6 +1100,7 @@ static int process_session_attributes(struct sdp_chopper *chop, struct sdp_attri switch (attr->attr) { case ATTR_ICE: + case ATTR_ICE_UFRAG: case ATTR_CANDIDATE: if (!flags->ice_remove && !flags->ice_force) break; @@ -1132,6 +1133,7 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_attribu switch (attr->attr) { case ATTR_ICE: + case ATTR_ICE_UFRAG: case ATTR_CANDIDATE: if (!flags->ice_remove && !flags->ice_force) break; @@ -1442,7 +1444,7 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call *call, if (!media->port_num) { if (!attr_get_by_id(&media->attributes, ATTR_INACTIVE)) - chopper_append_c(chop, "a=inactive\n"); + chopper_append_c(chop, "a=inactive\r\n"); continue; }