mod_verto: add user_chat_context variable

This commit is contained in:
Antonio Silva 2023-10-13 10:36:49 +01:00
parent f1fb05214e
commit 711b8676d3
1 changed files with 3 additions and 1 deletions

View File

@ -3869,7 +3869,9 @@ static switch_bool_t verto__info_func(const char *method, cJSON *params, jsock_t
switch_mutex_lock(jsock->flag_mutex);
if (!(context = switch_event_get_header(jsock->vars, "user_context"))) {
if (!(context = switch_event_get_header(jsock->vars, "user_chat_context"))
&& !(context = switch_event_get_header(jsock->vars, "user_context"))) {
context = switch_either(jsock->context, jsock->profile->context);
}