From ac86e65bc7811b072144ef41a917fbd6a17a3dea Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 19 Jun 2013 09:21:37 -0400 Subject: [PATCH] dont do ice/crypto/etc stuff for inactive streams --- daemon/sdp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/sdp.c b/daemon/sdp.c index 4ddebd2cb..bef0b24da 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1439,6 +1439,12 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call *call, copy_up_to_end_of(chop, &media->s); + if (!media->port_num) { + if (!attr_get_by_id(&media->attributes, ATTR_INACTIVE)) + chopper_append_c(chop, "a=inactive\n"); + continue; + } + if (has_rtcp(media)) { chopper_append_c(chop, "a=rtcp:"); chopper_append_printf(chop, "%hu", rtcp->fd.localport);