From b341643657869ca8d0f76e3a997500abddf2e7d6 Mon Sep 17 00:00:00 2001 From: Antonio Silva Date: Tue, 5 May 2020 01:17:16 +0200 Subject: [PATCH] mod_verto: add to login event id and domain values --- src/mod/endpoints/mod_verto/mod_verto.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 9f7cf57602..8821a6fe4f 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -882,6 +882,12 @@ static void login_fire_custom_event(jsock_t *jsock, cJSON *params, int success, switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_sessid", cJSON_GetObjectCstr(params, "sessid")); } } + if (jsock->id) { + switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_id", jsock->id); + } + if (jsock->domain) { + switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_domain", jsock->domain); + } switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "verto_success", "%d", success); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_result_txt", result_txt); switch_event_fire(&s_event);