2 Dec
2008
2 Dec
'08
12:23 p.m.
I want to ask that if there is some kind of flexibility in freeradius to have time based billing. I want a customer to be charged at different rate at different time. Like I want to introduce a package which has different rate at morning eg. $1/hr from 0800 to 1200 then 0.5/hr from 1200 to 1800 then 0.25/hr from 1800 to 0800hrs. Now what should I do. I know that there are sqlcounters but these are for flat rates.
Yes, you can't use counters for that. But it shouldn't be too difficult to write a perl script that calculates correct Session-Timeout for authorization and deducts correct ammount on accounting Stop packet. http://wiki.freeradius.org/Rlm_perl Ivan Kalik Kalik Informatika ISP