<br>
<div class="gmail_quote"><br>
<div>Hi,</div>
<div> </div>
<div>Here is the full accounting section of sites-available/default</div>
<div>accounting {<br> #<br> # Create a 'detail'ed log of the packets.<br> # Note that accounting requests which are proxied<br> # are also logged in the detail file.<br> detail<br>
# daily</div>
<div> # Update the wtmp file<br> #<br> # If you don't use "radlast", you can delete this line.<br> unix</div>
<div> #<br> # For Simultaneous-Use tracking.<br> #<br> # Due to packet losses in the network, the data here<br> # may be incorrect. There is little we can do about it.<br> radutmp<br>
# sradutmp</div>
<div> # Return an address to the IP Pool when we see a stop record.<br># main_pool</div>
<div> #<br> # Log traffic to an SQL database.<br> #<br> # See "Accounting queries" in sql.conf<br> #sql</div>
<div class="im">
<div><br><strong> if(Acct-Status-Type := 'stop') {<br> sql<br> }</strong><br></div></div>
<div> #<br> # Instead of sending the query to the SQL server,<br> # write it into a log file.<br> #<br># sql_log</div>
<div> # Cisco VoIP specific bulk accounting<br># pgsql-voip</div>
<div> # Filter attributes from the accounting response.<br> attr_filter.accounting_response</div>
<div> #<br> # See "Autz-Type Status-Server" for how this works.<br> #<br> Acct-Type Status-Server {</div>
<div> }</div>
<div>}<br></div>
<div>Thanks,</div>
<div>Rams. </div>
<div> </div>
<div>On 13/8/09 07:10, ramesh p wrote:<br>> Though i have placed the code in sites-available/default<br>> under accounting section:
<div class="im"><br>> <br>> if(Acct-Status-Type := 'stop'){<br>> sql<br><br></div>Can you post the full section that you have added this to, if you have<br>only added just those 2 lines then you haven't closed the statement off<br>
with a "}".<br><br>Steve<br><br>-- <br>Steven Carr<br>Systems Development Officer<br>SLS/ITS/Systems - (0191) 515 3953<br></div></div><br>