]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] add log line to detect incorrect login
authorAnthony Minessale <anthm@signalwire.com>
Wed, 22 Apr 2020 03:20:24 +0000 (03:20 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:22 +0000 (22:00 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index ead2835448aa8ed26960ef16c6efa46fd3440e98..0735be4e95878ab3aae87ced8f6c0ada678551ee 100644 (file)
@@ -994,6 +994,7 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char *
                        *code = CODE_AUTH_FAILED;
                        switch_snprintf(message, mlen, "Login Incorrect");
                        login_fire_custom_event(jsock, params, 0, "Login Incorrect");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Login incorrect for user: %s domain: %s\n", id, domain ? domain : "N/A");
                } else {
                        switch_xml_t x_param, x_params;
                        const char *use_passwd = NULL, *verto_context = NULL, *verto_dialplan = NULL;