Mathew, thanks for the input. The module res_security_log is registered and loaded just like you showed. The line security_log =&gt; security is also inserted and uncommented in logger.conf. Yet, when any SIP calls come in, there are no logs generated. I think the assumption that res_security_log is working in Asterisk 10.x is not right. Or at least it may only work with AMI, not be complete, etc...<div>

<br></div><div>Do you have any logs generated in the security_log file?</div><div><br></div><div>I am making a call from another Asterisk server and I have allowguest=no and no logs generate in the security_log file.</div>

<div><br></div><div>Best,<br><br><div class="gmail_quote">On Mon, Feb 13, 2012 at 10:06 AM, Matthew  Jordan <span dir="ltr">&lt;<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Sorry about that - hit the wrong button and set too soon :-)<br>
<br>
Anyway - with security_log =&gt; security in my logger.conf, a security_log<br>
file was created on Asterisk start up.  Verify that the res_security_log<br>
module is being loaded - in a DEBUG log, you should see something similar<br>
to the following:<br>
<br>
[Feb 13 09:01:25] DEBUG[17253] logger.c: Registered dynamic logger level &#39;SECURITY&#39; with index 18.<br>
[Feb 13 09:01:25] VERBOSE[17253] res_security_log.c:     -- Security Logging Enabled<br>
[Feb 13 09:01:25] VERBOSE[17253] loader.c:  res_security_log.so =&gt; (Security Event Logging)<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; &gt; From: &quot;Bruce B&quot; &lt;<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>&gt;<br>
&gt; &gt; To: &quot;Asterisk Developers Mailing List&quot;<br>
&gt; &gt; &lt;<a href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</a>&gt;<br>
&gt; &gt; Sent: Monday, February 13, 2012 8:49:34 AM<br>
&gt; &gt; Subject: Re: [asterisk-dev] Non-universalized log messages render<br>
&gt; &gt; security tools useless in Asterisk SVN-branch-1.8-r354348 or maybe<br>
&gt; &gt; other versions as well !!!<br>
&gt;<br>
&gt; &gt; &gt; &gt; I also checked res_security_log and the module is loaded but it<br>
&gt; &gt; &gt; &gt; doesn&#39;t add ANY whatsoever logs in Asterisk 1.8. Is that an<br>
&gt; &gt; &gt; &gt; incomplete module?<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &gt; Like Paul stated, support for logging security events in chan_sip<br>
&gt; &gt; &gt; was<br>
&gt; &gt; &gt; added in Asterisk 10. In Asterisk 1.8, I think only AMI security<br>
&gt; &gt; &gt; events are logged. Also, make sure that you enable it in<br>
&gt; &gt; &gt; logger.conf. The security events will be contained in a separate<br>
&gt; &gt; &gt; log<br>
&gt; &gt; &gt; file.<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Thanks Michael. For the sake of testing I installed Asterisk 10.1.2<br>
&gt; &gt; and I have res_security_log.so loaded and I have this line in<br>
&gt; &gt; logger.conf as per directions:<br>
&gt;<br>
&gt; &gt; security =&gt; security<br>
&gt;<br>
&gt; &gt; However, there are NO LOGS generated in this file. The best I can<br>
&gt; &gt; see<br>
&gt; &gt; from Asterisk is this:<br>
&gt; &gt; [Feb 13 09:46:21] NOTICE[14762]: chan_sip.c:22906<br>
&gt; &gt; handle_request_invite: Sending fake auth rejection for device<br>
&gt; &gt; &quot;Anonymous&quot; &lt;sip:Anonymous@anonymous.invalid&gt;;tag=as55ac8bb5<br>
&gt;<br>
&gt; A NOTICE log message is not a security message.  The wiki pages<br>
&gt; linked<br>
&gt; previously specify what you should see in the log security log file.<br>
&gt;<br>
&gt; <a href="https://wiki.asterisk.org/wiki/display/AST/Security+Log+File+Format" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Security+Log+File+Format</a><br>
&gt;<br>
&gt; If it is configured correctly, you should see the log file specified<br>
&gt; in logger.conf created on Asterisk start up.  For example, when using<br>
&gt; the following in logger.conf:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; To conclude, res_security_log does NOT log anything so far. CDRs do<br>
&gt; &gt; not include the source IP address and Asterisk doesn&#39;t mention the<br>
&gt; &gt; source IP no where in Asterisk 1.8 or 10.x. Am I missing something?<br>
&gt; &gt; Have you tested this yourself?<br>
&gt;<br>
&gt; &gt; Regards,<br>
&gt;<br>
&gt; &gt; --<br>
&gt; &gt; _____________________________________________________________________<br>
&gt; &gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a><br>
&gt; &gt; --<br>
&gt;<br>
&gt; &gt; asterisk-dev mailing list<br>
&gt; &gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &gt; <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
&gt;<br>
&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-dev mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
&gt;<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br></div>