<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Alexander.<br>
      <br>
      When you say "they don't seem to populate correctly", you mean
      they are NULL val, or wrong value?<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 04.06.2024 23:59, Alexander Perkins
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALLkTp3KDu-TOG+u8n0=RiaJpRU_M6T2QVW4pNWYNCLPgcB6-A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi All. We are working on implementing the
        E_ACC_EVENT so we may use that for accounting purposes instead
        of the DB.  Now, most things appear to work as they should. 
        However, when we attempt to access the extra accounting fields,
        they don't seem to populate correctly (I've highlighted the
        extra variables).  Here is the config:
        <div><br>
        </div>
        <div>modparam("acc","extra_fields","evi: src_ip -> source_ip;
          dst_ip -> destination_ip)<br>
        </div>
        <div><br>
        </div>
        <div>event_route [E_ACC_EVENT]<br>
          {<br>
                  #log on entry<br>
                  xlog("L_INFO","entered event_route\n");<br>
          <br>
                  #Default Params<br>
                  $var(method) = $param(method);<br>
          <br>
                  #Extra Params<br>
                 <span style="background-color:rgb(255,255,0)">
            $var(src_ip) = $acc_extra(src_ip);</span><br>
          <br>
                  $var(source_test) = $si;<br>
          <br>
                  <span style="background-color:rgb(255,255,0)">$var(dst_ip)
            = $acc_extra(dst_ip);</span><br>
          <br>
                  #log vars to test<br>
                  xlog("L_INFO","heres the ER variable:
          $var(source_test) and $var(src_ip)\n");<br>
          <br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>What am I missing?  Can someone point me in the right
          direction?  Any help is really appreciated.</div>
        <div><br>
        </div>
        <div>Thank you,</div>
        <div>Alex Perkins</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>