mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
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
This commit is contained in:
parent
8c273b1cbe
commit
996cfa54bd
@ -435,7 +435,9 @@ SWITCH_DECLARE(void) CoreSession::hangup(char *cause)
|
|||||||
{
|
{
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CoreSession::hangup\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CoreSession::hangup\n");
|
||||||
sanity_check_noreturn;
|
sanity_check_noreturn;
|
||||||
|
this->begin_allow_threads();
|
||||||
switch_channel_hangup(channel, switch_channel_str2cause(cause));
|
switch_channel_hangup(channel, switch_channel_str2cause(cause));
|
||||||
|
this->end_allow_threads();
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(void) CoreSession::setPrivate(char *var, void *val)
|
SWITCH_DECLARE(void) CoreSession::setPrivate(char *var, void *val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user