mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-9369: [core_media] add_ice_candidates=true var to enable inserting ice candidates in outgoing sdp
This commit is contained in:
parent
9fe7c48df7
commit
ac2734e90c
@ -7718,6 +7718,10 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
|
||||
smh->mparams->rtcp_video_interval_msec = SWITCH_RTCP_VIDEO_INTERVAL_MSEC;
|
||||
}
|
||||
|
||||
if (switch_true(switch_channel_get_variable(session->channel, "add_ice_candidates"))) {
|
||||
switch_channel_set_flag(session->channel, CF_ICE);
|
||||
}
|
||||
|
||||
if ( switch_rtp_has_dtls() && dtls_ok(session)) {
|
||||
if (switch_channel_test_flag(session->channel, CF_AVPF) ||
|
||||
switch_true(switch_channel_get_variable(smh->session->channel, "rtp_use_dtls"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user