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
2015-06-17 10:34:35 -05:00
committed by Brian West
parent e0edc956d8
commit e2d0de3d8e
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -3301,8 +3301,6 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
err = 1; goto cleanup;
}
switch_ivr_set_user(session, jsock->uid);
channel = switch_core_session_get_channel(session);
switch_channel_set_direction(channel, SWITCH_CALL_DIRECTION_INBOUND);
@@ -3402,6 +3400,7 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
}
switch_ivr_set_user(session, jsock->uid);
for (hp = jsock->user_vars->headers; hp; hp = hp->next) {
switch_channel_set_variable(channel, hp->name, hp->value);