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);
/* 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;