From: Dragos Oancea Date: Tue, 25 Sep 2018 08:29:14 +0000 (+0100) Subject: FS-11409: add "ice-lite" SDP attribute X-Git-Tag: v1.8.3~1^2~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ed6d56dd3f05d6faf7d07cb2c08b4ee8c8c92a5;p=thirdparty%2Ffreeswitch.git FS-11409: add "ice-lite" SDP attribute --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 1e8ab68efb..04df82685d 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -10580,6 +10580,9 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess } switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=end-of-candidates\r\n"); + if (switch_true(switch_channel_get_variable(session->channel, "ice_lite"))) { + switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=ice-lite\r\n"); + } switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=ssrc:%u cname:%s\r\n", a_engine->ssrc, smh->cname); switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=ssrc:%u msid:%s a0\r\n", a_engine->ssrc, smh->msid);