提交 790bf9a9 authored 作者: Nathan Neulinger's avatar Nathan Neulinger

FS-5164 - fix segv on ring handling due to listener not being defined

上级 7fc4f599
...@@ -488,6 +488,12 @@ int skinny_session_set_variables_callback(void *pArg, int argc, char **argv, cha ...@@ -488,6 +488,12 @@ int skinny_session_set_variables_callback(void *pArg, int argc, char **argv, cha
listener = helper->listener; listener = helper->listener;
if ( ! listener ) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(helper->tech_pvt->session), SWITCH_LOG_DEBUG,
"no defined listener on channel var setup, will not attempt to set variables\n");
return(0);
}
/* Process through and extract any variables from the user and set in the channel */ /* Process through and extract any variables from the user and set in the channel */
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(helper->tech_pvt->session), SWITCH_LOG_DEBUG, switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(helper->tech_pvt->session), SWITCH_LOG_DEBUG,
"searching for user (id=%s) in profile %s in channel var setup\n", "searching for user (id=%s) in profile %s in channel var setup\n",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论