]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4865 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Sep 2013 17:23:49 +0000 (22:23 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Sep 2013 17:23:49 +0000 (22:23 +0500)
src/switch_core_media.c

index a4ccab38059d6d14175e614a6e636bc15bf219bf..d8553d07661c908195d0b6e3319e7ad1cc46f8f9 100644 (file)
@@ -4138,6 +4138,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
                } else {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "AUDIO RTP CHANGING DEST TO: [%s:%d]\n",
                                                          a_engine->codec_params.remote_sdp_ip, a_engine->codec_params.remote_sdp_port);
+
+                       if (switch_channel_test_flag(session->channel, CF_PROTO_HOLD) && strcmp(a_engine->codec_params.remote_sdp_ip, "0.0.0.0")) {
+                               switch_core_media_toggle_hold(session, 0);
+                       }
+
+
                        if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) &&
                                !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) &&
                                !switch_channel_test_flag(session->channel, CF_WEBRTC)) {