]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9235: Fix sending RTCP in switch_core_media
authorGiacomo Vacca <gv@rtcsoft.net>
Tue, 7 Jun 2016 15:04:33 +0000 (17:04 +0200)
committerGiacomo Vacca <gv@rtcsoft.net>
Tue, 7 Jun 2016 15:04:33 +0000 (17:04 +0200)
src/switch_core_media.c

index 7d42c9dda78f9a3e853a5f978be7a3d55883e8df..93bc8f4fb0925b8b3c18f08abc4f14d59f217cd3 100644 (file)
@@ -6702,7 +6702,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
                        if (!strcasecmp(val, "passthru")) {
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Activating RTCP PASSTHRU PORT %d\n", remote_rtcp_port);
                                switch_rtp_activate_rtcp(a_engine->rtp_session, -1, remote_rtcp_port, a_engine->rtcp_mux > 0);
-                       } else if (remote_rtcp_port) {
+                       } else {
                                int interval = atoi(val);
                                if (interval < 100 || interval > 500000) {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR,