]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_shout: bring media back so telecast of a no-media call will work. (MODFORM-28)
authorBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 18:42:16 +0000 (18:42 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 18:42:16 +0000 (18:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13895 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_shout/mod_shout.c

index 2eaef91029f0b538da2a83072f279fbe84603ca1..f0ffe1633e53eb61f7367c3bdb8bd31ce3aa0dda 100644 (file)
@@ -1252,7 +1252,10 @@ void do_telecast(switch_stream_handle_t *stream)
                switch_codec_implementation_t read_impl = {0};
                switch_core_session_get_read_impl(tsession, &read_impl);
 
-
+               if (switch_channel_test_flag(channel, CF_PROXY_MODE)) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Stepping into media path so this will work!\n");
+                       switch_ivr_media(uuid, SMF_REBRIDGE);
+               }
 
                if (!(gfp = lame_init())) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Could not allocate lame\n");