FS-7650: #resolve [mod_verto] Fix crash when making a call from a verto user with profile-variables in their user profile

This commit is contained in:
Michael Jerris authored and Brian West committed 2015-06-17 10:34:35 -05:00
1 parent e0edc956d8
commit e2d0de3d8e
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -3284,7 +3284,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_set_user_xml(switch_core_session_t *s
}
}
if ((x_params = switch_xml_child(x_user, "profile-variables"))) {
if (switch_channel_get_caller_profile(channel) && (x_params = switch_xml_child(x_user, "profile-variables"))) {
for (x_param = switch_xml_child(x_params, "variable"); x_param; x_param = x_param->next) {
const char *var = switch_xml_attr(x_param, "name");
const char *val = switch_xml_attr(x_param, "value");