提交 4fc4c523 authored 作者: Michael Jerris's avatar Michael Jerris

Revert "FS-8720: [core] allow passing in blank/null to session::hangup to mean…

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 3304492b.
上级 aa440200
......@@ -718,7 +718,7 @@ SWITCH_DECLARE(void) CoreSession::hangup(const char *cause)
sanity_check_noreturn;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "CoreSession::hangup\n");
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();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论