]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix switch_core_thread_session_end to not make the channel hangup
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 25 Jan 2006 22:22:41 +0000 (22:22 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 25 Jan 2006 22:22:41 +0000 (22:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@439 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_playback/mod_playback.c
src/switch_core.c

index f68ebe97f5583d1ce7f15367445ce87d5fdce05a..4bdefef3d4f7593da647c0ee9c11ffe854d3f011 100644 (file)
@@ -164,13 +164,13 @@ void playback_function(switch_core_session *session, char *data)
        switch_console_printf(SWITCH_CHANNEL_CONSOLE, "done playing file\n");
        switch_core_file_close(&fh);
 
-       switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
+       //switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
 
        switch_core_timer_destroy(&timer);
 
        switch_core_codec_destroy(&codec);
 
-       switch_channel_hangup(channel);
+       //switch_channel_hangup(channel);
 
        /* End the audio absorbing thread */
        switch_core_thread_session_end(&thread_session);
index 9e4479ef73341d94d73d3c074294427fc20e77df..8f6b7e322c679c5f57142ed4af8a3d75ece8062e 100644 (file)
@@ -515,10 +515,6 @@ static void *switch_core_service_thread(switch_thread *thread, void *obj)
 /* Either add a timeout here or make damn sure the thread cannot get hung somehow (my preference) */
 SWITCH_DECLARE(void) switch_core_thread_session_end(switch_core_thread_session *thread_session)
 {
-       switch_core_session *session = thread_session->objs[0];
-
-       switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
-
        if (thread_session->running > 0) {
                thread_session->running = -1;