CDRCost (a.k.a Call Cost)
This downloadable FreePBX plug-in allows you to setup the Call Cost parameters, categorizing each call and assessing a cost for each. From this data you can generate call costs by create a new table called cdrcost in the asteriskcdrdb (which contains the cost and the used rate of each calls which is not 0). Afterwards you can generate many kinds of statistics from this (to see which extension, group etc. called which direction, and how much the cost was for you).
You can define the following parameters:
Zone Group
These are a collection of zones which are only used for grouping of Zones (for the UI). You can put each Zone into one Zone Group.
Parameters:
- You can give a name for each Zone Groups.
Example of Zone Groups:
- Local
- Long Distance
- Mobile
- International, etc.
Zone
These are the definition of the Zones.
Parameters:
- You can give a name for each Zone,
- Assign it to the Zone Group to which it belongs (choose from the list),
- Define which pattern is used for this Zone. This pattern is a regular expression which will be fitted on the destination number (i.e. Do not use the Asterisk style patterns NXZ!!!). Example:
^1888[0-9]{7}$
Schedule
A Schedule is a collection of Schedule Parts.
Parameters:
- You can give a name for each Schedule.
A Schedule Part define an interval(s).
Parameters:
- You can give a name for each Schedule Part.
- Assign it to the Schedule which it belongs to,
- Weekday of this Part 0-7 (both 0 and 7 means Sunday) or -1 in case it's applied for all days,
- From which time valid (format is: 'hh:mm:ss'),
- Until which time valid (format is: 'hh:mm:ss').
Rate
This defines the cost parameters from which the cost can be calculated.
Parameters:
- You can give a name for each Rate.
- The accountcode of the call when this rate can be applied,
- From when this rate is valid (format is: 'yyyy-mm-dd hh:mm:ss'),
- Until when this rate can be used (format is: 'yyyy-mm-dd hh:mm:ss'),
- The outbound Trunk prefix of the call (eg. Zap),
- Zone for this rate is valid,
- Rate is the call cost per minutes,
- Minimum duration which will be charged in seconds,
- Block size of the call duration (step size) in seconds,
- Cost of the established connection, connection fee,
- Disconnection cost,
- The schedule in which rate is valid.
Maintenance
In this tab you can run a few maintenance operations on the cdrcost table.
The latest release can be found at:
http://www.freepbx.org/trac/browser/contributed_modules/release
- Printer-friendly version
- Login or register to post comments



Call Cost
Hi:
Where is the download for this software?
Thanks
Steve
Call Cost not work !
Hi !
I had install Call Cost module into freePBX 2.3.1. But this module not work fine (not record cdr display)
Anybody install this ? pls give me ideal about this ! step by step guide pls...
This is a third party
This is a third party unsupported module. take a look at the code in the module and see if you can contact the developer directly is your best bet.
Why is out there so little
Why is out there so little information about this module?
It seems to be exacly what I need, but I can't find a way to put it working.
Now I can't even install it, I get this error:
Error(s) installing cdrcost:
Failed to run installation scripts
I managed to install once before, but anyway, it wasn't working, now in a new wave of tries I uninstalled it to install again with no sucess.
Has anyone been able to use this module?
Is there any other module that does the same? (simple call cost calculation, nothing of complex billing functions, etc.)
Info:
FreePBX: 2.8.0.3;
Asterisk: 1.6.2.13;
Linux: Centos 5.3 x64
Best Regards.
Failed to run installation scripts solved
If you get this error:
Error(s) installing cdrcost:
Failed to run installation scripts
you must remove some sql table that contain install.sql
I made it on phpmyadmin, after reinstall call cost on freepbx and everythink work fine.
Best Regards
that module, as far as I can
that module, as far as I can see, has been sitting their un maintained by the author and generally ignored by most.
Someone will have to adopt it and make sure it works on recent versions of FreePBX.
As a general rule, if a module is not available through the Extended Online Repository, it is very likely abandoned and/or used by very few people in which case you are likely on your own.
Hi there. I'm analysing how
Hi there.
I'm analysing how modules work and for now I already know why the install failed.
I will now go to the next step and try to understand why the module doesn't work.
Best Regards.
hola
could you explain more in detail the operation.
I already configure the module and no where to see the results.
Seeking to add a column to the reports tab that has the price of the call.
gracias