<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have checked in the sofia_reg.c code of the freeswitch 1.2.11
version, and this is available for this version.<br>
<br>
if (auth_res != AUTH_OK && auth_res != AUTH_RENEWED
&& !stale) {<br>
if (auth_res == AUTH_FORBIDDEN) {<br>
nua_respond(nh, SIP_403_FORBIDDEN,
NUTAG_WITH_THIS_MSG(de->data->e_msg), TAG_END());<br>
forbidden = 1;<br>
} else {<br>
nua_respond(nh,
SIP_401_UNAUTHORIZED, NUTAG_WITH_THIS_MSG(de->data->e_msg),
TAG_END());<br>
}<br>
<br>
if (profile->debug) {<br>
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send %s for
[%s@%s]\n",<br>
forbidden ? "forbidden" : "challenge", to_user, to_host);<br>
}<br>
/* Log line added to support Fail2Ban */<br>
if (sofia_test_pflag(profile,
PFLAG_LOG_AUTH_FAIL)) {<br>
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "<font
color="#ff0000">SIP auth %s (%s) on sofia profile '%s' "<br>
"for [%s@%s] from ip %s\n", forbidden ? "failure"</font> :
"challenge",<br>
(regtype == REG_INVITE) ? "INVITE" : "REGISTER", profile->name,
to_user, to_host, network_ip);<br>
}<br>
<br>
I am just getting this in the log file. I am avoiding to update
cause this server is in production environment. <br>
<br>
Somehow it is not processing the last "if" statement.<br>
<br>
<div class="moz-cite-prefix">On 11.06.2015 17:19, Michael Jerris
wrote:<br>
</div>
<blockquote
cite="mid:CAEwTsAhF-WHx-CXoKWfu+XCsXu4XRGP5UPq2f+3LWZuvisk=rQ@mail.gmail.com"
type="cite">You should start with trying our most recent release
1.4.19<span></span><br>
<br>
On Thursday, June 11, 2015, Густаво Силва <<a
moz-do-not-send="true" href="mailto:gfs@etherway.ru">gfs@etherway.ru</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello Guys,<br>
<br>
I am trying to log the attempts and failures of the
authentication process but I am not able to get the log as
described in the freeswitch site.<br>
<br>
I have already set my profile to log it by doing:<br>
<pre style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)"><param name="log-auth-failures" value="true"/>
</pre>
and I reloaded the sofia mod.<br>
<br>
I should get in the freeswitch log, "SIP auth challenge" or
"SIP auth failure", but I am getting only "Send challenge for"
and "Send forbidden for" if the authentication fails.<br>
<br>
I am using the freeswitch version 1.2.11.<br>
<br>
What else should I do?<br>
<br>
Regards,<br>
Gustavo<br>
<br>
<br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>