From 217b5e2735013e31209d33327e21e3414a8a4d59 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 25 Jan 2006 22:22:41 +0000 Subject: [PATCH] fix switch_core_thread_session_end to not make the channel hangup git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@439 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_playback/mod_playback.c | 4 ++-- src/switch_core.c | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mod/applications/mod_playback/mod_playback.c b/src/mod/applications/mod_playback/mod_playback.c index f68ebe97f5..4bdefef3d4 100644 --- a/src/mod/applications/mod_playback/mod_playback.c +++ b/src/mod/applications/mod_playback/mod_playback.c @@ -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); diff --git a/src/switch_core.c b/src/switch_core.c index 9e4479ef73..8f6b7e322c 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -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;