From 79689c4109d70513954c43d9e4858d12d12b91dd Mon Sep 17 00:00:00 2001 From: Italo Rossi Date: Tue, 9 Aug 2016 16:17:30 -0500 Subject: [PATCH] FS-9415 [mod_spy] - Increasing loop so we can also look for variable_verto_user and variable_verto_host --- src/mod/applications/mod_spy/mod_spy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_spy/mod_spy.c b/src/mod/applications/mod_spy/mod_spy.c index cc737517c1..fd213ffec4 100644 --- a/src/mod/applications/mod_spy/mod_spy.c +++ b/src/mod/applications/mod_spy/mod_spy.c @@ -168,7 +168,7 @@ static switch_status_t process_event(switch_event_t *event) char *username[5] = { NULL }; char *domain[5] = { NULL }; char key[512]; - char *uuid = NULL, *my_uuid = NULL; + char *my_uuid = NULL; int i; int found = 0; @@ -203,7 +203,7 @@ static switch_status_t process_event(switch_event_t *event) } } - for (i = 0; i < 4; i++) { + for (i = 0; i < 5; i++) { if (username[i] && domain[i]) { spy_t *spy = NULL; @@ -215,7 +215,7 @@ static switch_status_t process_event(switch_event_t *event) switch_channel_t *channel = switch_core_session_get_channel(session); my_uuid = switch_event_get_header(event, "Unique-ID"); - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "UserSpy retrieved uuid %s for key %s, activating eavesdrop\n", uuid, key); + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "UserSpy retrieved uuid %s for key %s, activating eavesdrop\n", my_uuid, key); switch_channel_set_variable(channel, "spy_uuid", my_uuid); found++;