<div dir="ltr">Ok,<div><br></div><div>Thanks,</div><div>Dani</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 24, 2013 at 5:36 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
  
  <div text="#000000" bgcolor="#ffffff">
    <tt>Hi Dani,<br>
      <br>
      Unfortunately the flag-based acc does not work for local route;
      the flag-based acc is designed for proxies transactions, not for
      UAC-like transactions (generated by OpenSIPS).<br>
      I suggest you to use the manual accounting in this case.<br>
      <br>
      Regards,<br>
    </tt>
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
    <br>
    On 06/18/2013 07:10 PM, Dani Popa wrote:
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi all,
        <div>I use acc with radius and  when i set accountig
          flag in local_route  i dont receive any accountig request on
          radius server.  As I see local_route was hit twice on &quot;dialog
          timeout&quot; and i dont understand when and how many request
          should i receive on accounting if should i receive accounting
          request. Or should i user radius_send_acc in this case.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>this is my local_route</div>
        <div><br>
        </div>
        <div>
          <div>local_route {</div>
          <div>       xlog&quot;local route&quot;);</div>
          <div>        if (is_method(&quot;BYE&quot;)) {</div>
          <div>                xlog(&quot;acc 1&quot;);</div>
          <div>                setflag(ACCOUNTING_FLAG);</div>
          <div>                #acc_db_request(&quot;200 Dialog Timeout&quot;,
            &quot;acc&quot;);</div>
          <div><br>
          </div>
          <div>        }</div>
          <div>}</div>
        </div>
        <div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Thanks,</div>
          -- <br>
          Dani Popa
        </div>
      </div>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
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>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Dani Popa
</div>