]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5959 add rtp_mirror_fmtp var
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Nov 2013 22:36:45 +0000 (03:36 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Nov 2013 22:36:51 +0000 (03:36 +0500)
src/switch_core_media.c

index 9911cad4c1899ae4cd28a4d97725e32e5c8152e5..9939ce771284d48bf0592c1dab6ffb170a9444a6 100644 (file)
@@ -6293,9 +6293,10 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
 
                                        if (ov_fmtp) {
                                                pass_fmtp = ov_fmtp;
-                                       }// else { // seems to break eyebeam at least...
-                                               //pass_fmtp = switch_channel_get_variable(session->channel, "rtp_video_fmtp");
-                                       //}
+                                       } else if (switch_true(switch_channel_get_variable_dup(session->channel, "rtp_mirror_fmtp", SWITCH_FALSE, -1))) { 
+                                               // seems to break eyebeam at least...
+                                               pass_fmtp = switch_channel_get_variable(session->channel, "rtp_video_fmtp");
+                                       }
                                }
 
                                if (pass_fmtp) {