From: Anthony Minessale Date: Mon, 12 May 2008 15:29:04 +0000 (+0000) Subject: force swap thing on hangup to find hangup hook X-Git-Tag: v1.0-rc5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=996cfa54bd97e231c7aa4111a0b7f60cb0e8a09f;p=thirdparty%2Ffreeswitch.git 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 --- 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)