[Freeswitch-svn] [commit] r8362 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon May 12 11:29:05 EDT 2008


Author: anthm
Date: Mon May 12 11:29:04 2008
New Revision: 8362

Modified:
   freeswitch/trunk/src/switch_cpp.cpp

Log:
force swap thing on hangup to find hangup hook

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Mon May 12 11:29:04 2008
@@ -435,7 +435,9 @@
 {
     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)



More information about the Freeswitch-svn mailing list