FS-8316 more clean code this way
This commit is contained in:
parent
5b133bbb47
commit
bf38cd2388
|
@ -149,13 +149,13 @@ switch_status_t skinny_create_incoming_session(listener_t *listener, uint32_t *l
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
/* First create the caller profile in the patterns Dialplan */
|
/* 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,
|
NULL, listener->profile->patterns_dialplan,
|
||||||
button->displayname, button->shortname,
|
button->displayname, button->shortname,
|
||||||
listener->remote_ip, NULL, NULL, NULL,
|
listener->remote_ip, NULL, NULL, NULL,
|
||||||
"skinny" /* modname */,
|
"skinny" /* modname */,
|
||||||
listener->profile->patterns_context,
|
listener->profile->patterns_context,
|
||||||
"")) == NULL) {
|
""))) {
|
||||||
skinny_log_ls_msg(listener, nsession, SWITCH_LOG_CRIT, "Error Creating Session caller profile\n");
|
skinny_log_ls_msg(listener, nsession, SWITCH_LOG_CRIT, "Error Creating Session caller profile\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue