[Asterisk-Users] Call Rate in CDR

John Brown (CV) jmbrown at chagresventures.com
Sat Nov 8 15:30:14 MST 2003


As rates change of the course of a month, it would be nice to 
know what the rate was at the time of the call.

some "detail records" :)


On Sat, Nov 08, 2003 at 03:37:13PM -0600, Eric Wieling wrote:
> I personally think the "right" place to deal with billing is in your
> billing application.  Your billing application should know about special
> rates for different customers, time of day rates, destination rates,
> etc.  There is already enough information in the CDR to know which
> provider you are going thru.  i.e. fields 6 and 8 in the CDR logs.
> 
> These are Call Detail Record logs, not Call Billing Logs. 8-)
> 
> If your billing application can't handle this, it should be pretty easy
> to build a small preprocessing application for the log files.
> 
> Why invent something new when you can reuse existing tools to do all or
> most of the job?
> 
> On Sat, 2003-11-08 at 15:08, John Brown (CV) wrote:
> > So what do people think about adding the "call rate" to the CDR
> > structure??
> > 
> > This would allow you to detail a call with the rate that was
> > in affect for that call.  When you come back later and do 
> > the billing for the customer you would have the actual per min
> > rate in the record.
> > 
> > I think this solves an issue when you have changing rates and
> > multiple providers.  If one provider is down, and you use 
> > a back up you can track the "rate" better.
> > 
> > In fact as I type this, I think we should have  
> > 
> > cost_rate   the rate you where charged for this call
> > cust_rate   the rate you charge your customer for this call
> > 
> > 
> > 
> > or is their a better way to do this.
> > 
> > 
> > john brown, ceo
> > chagres technologies, inc (US)
> > chagres technologies, BV   (EMEA) opening soon
> > Providers of VoIP hardware
> > http://www.chagres.net/products/voip/
> > 
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> -- 
> Now with links to Unofficial Asterisk pages!
> http://www.digium.com/index.php?menu=documentation
> 
> BTEL Consulting 504-899-1387 or 850-484-4545 or 877-677-9643
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list