]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11409: add "ice-lite" SDP attribute
authorDragos Oancea <dragos.oancea@vonage.com>
Tue, 25 Sep 2018 08:29:14 +0000 (09:29 +0100)
committerDragos Oancea <dragos.oancea@vonage.com>
Tue, 25 Sep 2018 16:58:59 +0000 (17:58 +0100)
src/switch_core_media.c

index 1e8ab68efb6245947ae359cea883cad6a5035f5e..04df82685da6c69fb533328e473029712649e37f 100644 (file)
@@ -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);