On Fri, Mar 26, 2010 at 5:11 PM, Jean-Yves F. Barbier <12ukwn@gmail.com>wrote:
Le Fri, 26 Mar 2010 19:55:11 -0400, Sergey Okhapkin <sos@sokhapkin.dyndns.org> a écrit :
Here is lua code I use instead of mod_nibblebill:
if(ANSWEREDTIME<=initblock) then CHARGETIME=initblock else incrs=math.floor((ANSWEREDTIME- initblock+billingblock-1)/billingblock); CHARGETIME=initblock+incrs*billingblock; end sessionbill=(CHARGETIME*calledrate)/60 + connfee;
I realise 2 things: 1- FS is even more powerful than all I read about it,
True
2- It's gonna take me "some" time to fully understand it...
Also true. It's totally worth the investment in time and energy. Enjoy the ride! -MC