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("0")) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (!proxy_authorize("", "subscriber")) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>xlog("L_ERROR","Auth error for $fU@$fd from $si cause -1 INVITE\n");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>proxy_challenge("", "0");</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("403","Forbidden, use FROM=ID");</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>