Hi Ivan,

Sorry to have to ask again.  I think you have explain clear enough, but I am just too new to freeradius. 
I tried modifying in /sites-enable/default:

accounting {
        detail
        radutmp
        sql
        sql_log
        DEFAULT Acct-Status-Type = Stop
        Exec-Program="/home/anne/bill %{Acct-Session-Id}"
        attr_filter.accounting_response
}

But I am getting:
/usr/local/etc/raddb/sites-enabled/default[349]: Expecting section start brace '{' after "DEFAULT Acc-Status-Type"

Is this not the right place to add the code?

Thanks alot for all your help.

Pete



2008/6/14 Ivan Kalik <tnt@kalik.net>:
acct_users file:

DEFAULT   Acct-Status-Type = Stop
               Exec-Program = "/home/billing/bill %{Acct-Session-Id}"

You can't use radacctid as that is autogenerated by the database server
and is not part of the accouning request.

Ivan Kalik
Kalik Informatika ISP


Dana 14/6/2008, "Pete Kay" <petedao@gmail.com> piše:

>Hi,
>
>I tried to execute a billing script as follows:
>
>accounting{
>
>      sql
>
>        exec  /etc/billing/bill
>}
>
>But, I am getting:
>
>/usr/local/etc/raddb/sites-enabled/default[350]: Expecting section start
>brace '{' after "exec /home/billing/bill"
>Errors reading /usr/local/etc/raddb/radiusd.conf
>
>What is wrong with my syntax?  Is there any sample that I can refer to?
>
>I checked the unlan, but I could not find anything that mentions the
>variable that I can use to pass to the script.  What I like to do is to call
>the script:  exec /etc/billing/bill <radacctid>
>
>That way, I can know which line to process.
>
>Thanks for any suggestion.
>
>Regards,
>Pete
>
>

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html