<div dir="ltr">Hi Bogdan.  Thank you for getting back to me.  When we take a look at what populates, they are either incorrect (for example, src_ip is always 0.0.0.0, but we see it correct in the route block), or they are null.<div><br></div><div>Let me know if this helps.</div><div><br></div><div>Thank you,</div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2024 at 11:33 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <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 cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
    <div>On 04.06.2024 23:59, Alexander Perkins
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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></fieldset>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div>