From: Michael Jerris Date: Tue, 9 Feb 2021 19:34:37 +0000 (+0000) Subject: [mod_verto] allow re-auth via verto.login X-Git-Tag: v1.10.7^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fcdeffb0d616dc3865d395b52b4b2e13dd21820;p=thirdparty%2Ffreeswitch.git [mod_verto] allow re-auth via verto.login --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index a8572f7a76..3ae8913d04 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -1460,7 +1460,7 @@ static cJSON *process_jrpc(jsock_t *jsock, cJSON *json) jrpc_add_id(reply, id, "", 0); - if (!switch_test_flag(jsock, JPFLAG_AUTHED) && (jsock->profile->userauth || jsock->profile->root_passwd)) { + if ((!switch_test_flag(jsock, JPFLAG_AUTHED) || (method && !strcmp(method, "login"))) && (jsock->profile->userauth || jsock->profile->root_passwd)) { int code = CODE_AUTH_REQUIRED; char message[128] = "Authentication Required";