<div dir="ltr">1.2.11 is incredibly old, it's unsupported now and its age means there are a lot of bugs in it that are fixed in the latest versions. That includes performance, functionality and security bugs. I understand it's a production server but it would be well worth planning regular updates.<div><br></div><div>That said, perhaps you can show us the entire profile config? Perhaps there's an XML error elsewhere preventing the parameter being read. And are you sure the profile you set it on is the same as the one receiving the packets?</div><div><br></div><div><br><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 15 June 2015 at 07:27, Густаво Силва <span dir="ltr"><<a href="mailto:gfs@etherway.ru" target="_blank">gfs@etherway.ru</a>></span> 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">
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.<div><div><br>
<br>
<div>On 11.06.2015 17:19, Michael Jerris
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div>You should start with trying our most recent release
1.4.19<span></span><br>
<br>
On Thursday, June 11, 2015, Густаво Силва <<a href="mailto:gfs@etherway.ru" target="_blank">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></fieldset>
<br>
</div></div><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div>