From 711b8676d375052192ead77147e5a36ee175603f Mon Sep 17 00:00:00 2001 From: Antonio Silva Date: Fri, 13 Oct 2023 10:36:49 +0100 Subject: [PATCH] mod_verto: add user_chat_context variable --- src/mod/endpoints/mod_verto/mod_verto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index ac042fe626..fe806b4627 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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); }