<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Owen,<br>
    <br>
    I think basically you are right. But referring to your code example,
    did you set up the <i>log_flag</i> module parameter correctly?
    E.g.:<br>
    <br>
    #!define FLT_ACC 1<br>
    modparam("acc","log_flag", FLT_ACC)<br>
    <br>
    Greetings,<br>
    Paul<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 06.11.2012 00:34, Owen Lynch wrote:<br>
    </div>
    <blockquote
cite="mid:CAKHLOhvZaP8hKmpFXDyMDTJ=ypZq=dOFsobWixh2SRczPx_k=A@mail.gmail.com"
      type="cite">Hi,
      <div><br>
      </div>
      <div>I have transaction accounting to RADIUS setup and get the
        start and stop events logged to file when a call is made. I want
        to extend this to also get CDR logs - call duration etc. To do
        this I understand I need to configure the acc module and load
        and configure the dialog module:</div>
      <div><br>
      </div>
      <div>#!define FLD_DLG &nbsp;4</div>
      <div>modparam("acc", "cdr_enable", 1)<br>
      </div>
      <div>modparam("dialog", "dlg_flag", FLD_DLG)</div>
      <div><br>
      </div>
      <div>I was expecting extra entries in the RADIUS file but they
        don't appear. I think this is because I need to set and clear
        the dialog flag at appropriate places in the route script (e.g.
        setflag(FLD_DLG)) but I'm not sure where. Should this be done in
        the INVITE and BYE method handling as is currently done for the
        transaction accounting, e.g.:</div>
      <div><br>
      </div>
      <div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; # account only INVITEs</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; if (is_method("INVITE"))</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; {</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(FLT_ACC); # do accounting</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; }</div>
      </div>
      <div>
        <br>
      </div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Owen Lynch</div>
    </blockquote>
  </body>
</html>