提交 79229cdb authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-9197

上级 cfd29317
...@@ -6217,11 +6217,11 @@ static void gen_ice(switch_core_session_t *session, switch_media_type_t type, co ...@@ -6217,11 +6217,11 @@ static void gen_ice(switch_core_session_t *session, switch_media_type_t type, co
engine = &smh->engines[type]; engine = &smh->engines[type];
#ifdef RTCP_MUX //#ifdef RTCP_MUX
if (!engine->rtcp_mux) {// && type == SWITCH_MEDIA_TYPE_AUDIO) { //if (!engine->rtcp_mux) {// && type == SWITCH_MEDIA_TYPE_AUDIO) {
engine->rtcp_mux = SWITCH_TRUE; // engine->rtcp_mux = SWITCH_TRUE;
} //}
#endif //#endif
if (!smh->msid) { if (!smh->msid) {
switch_stun_random_string(tmp, 32, NULL); switch_stun_random_string(tmp, 32, NULL);
...@@ -7681,7 +7681,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess ...@@ -7681,7 +7681,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
a_engine = &smh->engines[SWITCH_MEDIA_TYPE_AUDIO]; a_engine = &smh->engines[SWITCH_MEDIA_TYPE_AUDIO];
v_engine = &smh->engines[SWITCH_MEDIA_TYPE_VIDEO]; v_engine = &smh->engines[SWITCH_MEDIA_TYPE_VIDEO];
if (switch_true(switch_channel_get_variable(session->channel, "rtcp_mux"))) { if (sdp_type == SDP_TYPE_REQUEST || switch_true(switch_channel_get_variable(session->channel, "rtcp_mux"))) {
a_engine->rtcp_mux = 1; a_engine->rtcp_mux = 1;
v_engine->rtcp_mux = 1; v_engine->rtcp_mux = 1;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论