Hi All,<div><br></div><div>I would like to log all INVITE requests sent by users with wrong authentication details</div><div><br></div><div>The problem is that I only need really failed auth INVITE attempts (with wrong username/password), not all requests sent with no credentials (before challenged by OpenSIPS).</div>
<div><br></div><div>Following script logs also requests with no credentials, it would be great if someone will help me to correct it:</div><div><br></div><div><div>if (!check_source_address(&quot;0&quot;)) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>xlog(&quot;L_ERROR&quot;,&quot;Auth error for $fU@$fd from $si cause -1 INVITE\n&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>proxy_challenge(&quot;&quot;, &quot;0&quot;);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>exit;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (!db_check_from()) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>sl_send_reply(&quot;403&quot;,&quot;Forbidden, use FROM=ID&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>exit;</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>consume_credentials();<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span># caller authenticated</div>
<div>}</div></div><div><br></div><div><br></div><div>Best Regards,</div><div>Adam</div>