<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Did you check your rsyslog (/etc/rsyslogd.conf) configuration ?</p>
    <p>Michele<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/06/2017 10:52, Kirill Galinurov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPDUut9TM1_uqwr_B+NkQ3hsqsY9Y78E1dK+UmKVkTg57qYNWA@mail.gmail.com">
      <div dir="ltr">Hi ALL.
        <div> I try to store cdr in flat files.
          <div>My config is</div>
          <div><span style="font-family:monospace"><span
                style="color:rgb(0,0,0)">loadmodule "acc.so"
              </span><br>
              modparam("acc", "detect_direction", 0)
              <br>
              modparam("acc", "extra_fields", "log: src_ip; dst_ip")
              <br>
              modparam("acc", "leg_fields", "log: caller; callee")
              <br>
              modparam("acc", "log_facility", "LOG_DAEMON")<br>
              <br>
            </span></div>
          <div><span style="font-family:monospace"><span
                style="color:rgb(0,0,0)">       if(is_method("INVITE"))
                 {
              </span><br>
                         if (check_address("0","$si","$sp","any")){
              <br>
                             force_send_socket(udp:<a
                href="http://172.20.20.30:5060" moz-do-not-send="true"><font
                  color="red"><b>Servizio Antispam attenzione!: i link
                    numerici sono spesso insicuri!:</b></font>
                172.20.20.30:5060</a>);
              <br>
                             setflag(CALL_AST);
              <br>
                             create_dialog("B");
              <br>
                             do_accounting("log", "cdr");<br>
              }</span></div>
          <div><span style="font-family:monospace"><br>
            </span></div>
          <div><font face="monospace">in cosole debug I see</font></div>
          <div><span style="font-family:monospace"><span
                style="color:rgb(0,0,0)">ACC: call ended:
created=1496654777;call_start_time=1496654780;duration=7;ms_duration=7393;setuptime=3;method=I</span><br>
NVITE;from_tag=SDipn2901-1544324631353641441C2115;to_tag=as51263d7c;call_id=SDipn2901-3f6bad0e2bf09ec16aeaedd37abb0661-v300g00030;code=<br>
              200;reason=OK;src_ip=;dst_ip=;caller=;callee=<br>
               </span></div>
          <div><span style="font-family:monospace">But no records in log
              file</span></div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 - <a class="moz-txt-link-abbreviated" href="mailto:centralino@unisi.it">centralino@unisi.it</a>

Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, <a class="moz-txt-link-freetext" href="http://www.faq.unisi.it">http://www.faq.unisi.it</a> </pre>
  </body>
</html>