[Spce-user] Newbee billing rates problem

Dimosthenis Arkoudeas dimosthenis at arkoudeas.com
Sun Feb 10 13:54:00 EST 2013


Actually the scenario is pretty simple.

Postpaid users. Want to be able to see their cdr per call and total money spent per month. Right now cdr cost works per call (if actual balance = 0 ) but the total money spent never gets updated.
It would be nice to have the ability to use the actual balance as a limit but I think it is not a part of the community edition.

Dimosthenis

-----Original Message-----
From: Andrew Pogrebennyk [mailto:apogrebennyk at sipwise.com] 
Sent: Sunday, February 10, 2013 1:43 PM
To: Dimosthenis Arkoudeas
Cc: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] Newbee billing rates problem

Hi,
it depends on what you want to achieve :) The "spent this billing interval" is updated shortly after the call, at the same time when CDR is rated.

On 10/02/2013 12:31, Dimosthenis Arkoudeas wrote:
> Sorry but I am a little confused right now.
> For a postpaid customer , should I leave account balance=0 so that I get the cdr customer cost per call? 
> The "spent this billing interval" isn't updated in real time?
> 
> 
> Thanks
> 
> -----Original Message-----
> From: Andrew Pogrebennyk [mailto:apogrebennyk at sipwise.com]
> Sent: Sunday, February 10, 2013 1:13 PM
> To: Dimosthenis Arkoudeas
> Cc: spce-user at lists.sipwise.com
> Subject: Re: [Spce-user] Newbee billing rates problem
> 
> Hello and welcome to the list,
> 
> On 10/02/2013 11:39, Dimosthenis Arkoudeas wrote:
>> Actually I just noticed that CDR cost doesn't work only in accounts 
>> that Account Balance is different than zero. Is it a normal behavior 
>> because of the community edition?
> 
> Well, this is sort of expected. The billing system of the CE only supports postpaid model. Balance is not decreased below zero and money is taken from the balance if the balance is positive. The rating engine will take money from the balance as long as it is positive, and will export CDR with a rate of "0". When the balance is zero, the CDRs wil have the customer cost set to the actual cost. This is done to support the "free money" setting of the billing profile, which is added to the account balance at the beginning of each billing interval (month).
> So we sort of use the customer_cost to separate paid-for calls from calls that yet need to be paid for invoicing purposes.
> The interval balance will show the complete amount (both taken from the balance and customer costs in the CDR) of money spent.
> 
> Andrew
> 
> 







More information about the Spce-user mailing list