Re: Time based billing

2008-12-03 Thread Alan DeKok
Saeed Akhtar wrote: Yes I know that freeradius doesn't know whether we are charging $ 1 or 2. But the purpose of asking question was that If a user has 3 hrs left @ $1/hr and after an hour the rate changes to 0.5/hr then technically freeradius should reply Session-Timeout = 5hrs as (1hr @

Re: Time based billing

2008-12-03 Thread liran tal
all, 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

Re: Time based billing

2008-12-03 Thread [EMAIL PROTECTED]
These situations are often in the VoIP billing world. If the rate changes during a call there is little you can do in a prepaid billing system (in a postpaid situation this is not a problem). You have to choose either to bill your customer with the rate that is valid at the beginning of the

Re: Time based billing

2008-12-03 Thread Sebo PL
I think it could be done by some special DB function. You can write one in plpgsql, then you can exec it using the sql radius module. 2008/12/3 [EMAIL PROTECTED] [EMAIL PROTECTED] These situations are often in the VoIP billing world. If the rate changes during a call there is little you can

Re: Time based billing

2008-12-03 Thread [EMAIL PROTECTED]
I think, it depends on the complexity of the rate DB data-structure. And on the skills of the programmer. Some people prefer using pr. languages and others DB specific languages. In one of my previous projects the business logic was too complicated for a DB specific language (at least for my

Re: Time based billing

2008-12-03 Thread Saeed Akhtar
Thank you all for your support. I think rlm_perl is better option because queries are a bit complex and I want to integerate more functionality in future. Thanks once again to all . Regards, Saeed Akhtar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Time based billing

2008-12-02 Thread Saeed Akhtar
Hi all, 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

Re: Time based billing

2008-12-02 Thread tnt
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

Re: Time based billing

2008-12-02 Thread mulianto
i Think freeradius doesn't know if you charge for 1$ or 2$, it just counting the time usage. it should be with your application task to do so.. On Tue, 2008-12-02 at 21:47 +0500, Saeed Akhtar wrote: 0.5/hr from 1200 t - List info/subscribe/unsubscribe? See

Re: Time based billing

2008-12-02 Thread Saeed Akhtar
Yes I know that freeradius doesn't know whether we are charging $ 1 or 2. But the purpose of asking question was that If a user has 3 hrs left @ $1/hr and after an hour the rate changes to 0.5/hr then technically freeradius should reply Session-Timeout = 5hrs as (1hr @ $1/hr + 4hrs @ $0.5/hr). So