提交 bf38cd23 authored 作者: William King's avatar William King

FS-8316 more clean code this way

上级 5b133bbb
......@@ -149,13 +149,13 @@ switch_status_t skinny_create_incoming_session(listener_t *listener, uint32_t *l
goto error;
}
/* First create the caller profile in the patterns Dialplan */
if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(nsession),
if (!(tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(nsession),
NULL, listener->profile->patterns_dialplan,
button->displayname, button->shortname,
listener->remote_ip, NULL, NULL, NULL,
"skinny" /* modname */,
listener->profile->patterns_context,
"")) == NULL) {
""))) {
skinny_log_ls_msg(listener, nsession, SWITCH_LOG_CRIT, "Error Creating Session caller profile\n");
goto error;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论