]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sdp gen
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 14 Jan 2013 14:50:41 +0000 (08:50 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Apr 2013 02:27:17 +0000 (21:27 -0500)
src/switch_core_media.c

index a5b1dc237382a5bf7af08ddc132af23c1eb3eccf..c24a2b05d1e6b5d68f206ddd0151b630549f69e6 100644 (file)
@@ -3742,7 +3742,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
 
        video:
                
-               switch_core_media_check_video_codecs(session);
+               if (switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
+                       switch_core_media_check_video_codecs(session);
+               }
 
                if (switch_channel_test_flag(session->channel, CF_VIDEO_POSSIBLE) && v_engine->codec_params.rm_encoding && v_engine->codec_params.remote_sdp_port) {
                        /******************************************************************************************/