<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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 class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 06/18/2013 07:10 PM, Dani Popa wrote:
<blockquote
cite="mid:CAEOhXabN7J3SevbPBhgF=SWMRyvC2x4WF4XiRHpquuDi=t1WCQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,
<div style="">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 "dialog
timeout" 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 style=""><br>
</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
<div style="">this is my local_route</div>
<div style=""><br>
</div>
<div style="">
<div>local_route {</div>
<div> xlog"local route");</div>
<div> if (is_method("BYE")) {</div>
<div> xlog("acc 1");</div>
<div> setflag(ACCOUNTING_FLAG);</div>
<div> #acc_db_request("200 Dialog Timeout",
"acc");</div>
<div><br>
</div>
<div> }</div>
<div>}</div>
</div>
<div>
<div><br>
</div>
<div><br>
</div>
<div style="">Thanks,</div>
-- <br>
Dani Popa
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</body>
</html>