]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force swap thing on hangup to find hangup hook
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 12 May 2008 15:29:04 +0000 (15:29 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 12 May 2008 15:29:04 +0000 (15:29 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8362 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index 636b069aa80edccc5f5de8f2799d829327dacab9..302e602db8e9a22fd7d6e25bfeae103e3c43278a 100644 (file)
@@ -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)