Revert "FS-8720: [core] allow passing in blank/null to session::hangup to mean NORMAL_CLEARING hangup cause instead of segfault"
wrong fix for this issue
This reverts commit 3304492b41
.
This commit is contained in:
parent
aa440200ee
commit
4fc4c52392
|
@ -718,7 +718,7 @@ SWITCH_DECLARE(void) CoreSession::hangup(const char *cause)
|
||||||
sanity_check_noreturn;
|
sanity_check_noreturn;
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "CoreSession::hangup\n");
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "CoreSession::hangup\n");
|
||||||
this->begin_allow_threads();
|
this->begin_allow_threads();
|
||||||
switch_channel_hangup(channel, zstr(cause) ? SWITCH_CAUSE_NORMAL_CLEARING : switch_channel_str2cause(cause));
|
switch_channel_hangup(channel, switch_channel_str2cause(cause));
|
||||||
this->end_allow_threads();
|
this->end_allow_threads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue