From 996cfa54bd97e231c7aa4111a0b7f60cb0e8a09f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 12 May 2008 15:29:04 +0000 Subject: [PATCH] force swap thing on hangup to find hangup hook git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8362 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_cpp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 636b069aa8..302e602db8 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -435,7 +435,9 @@ SWITCH_DECLARE(void) CoreSession::hangup(char *cause) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CoreSession::hangup\n"); sanity_check_noreturn; + this->begin_allow_threads(); switch_channel_hangup(channel, switch_channel_str2cause(cause)); + this->end_allow_threads(); } SWITCH_DECLARE(void) CoreSession::setPrivate(char *var, void *val)