freePBX-CDRCost
Created by: wiseoldowl,Last modification on 18 Mar 2007 [13:15 UTC]
Call Cost
This downloadable FreePBX plug-in allows you to setup the Call Cost parameters, categorize each calls and assing 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). After you can generate many kind of statistics from this (to see which extension, group etc. called which direction, cost how much for you).
You can define the following parameters:
Zone Group
These are a collection of zones which is 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
- Internationale, etc.
Zone
These are the definition of the Zones.Parameters:
- You can give a name for each Zones,
- Assign it to the Zone Group which belongs to (choose from the list),
- Define which pattern used for this Zone. This pattern is a regular expression which will be fitted on the destination number (ie. Do not use the asterisk style patters 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 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 vaild (format is: 'hh:mm:ss').
Rate
This define the cost paramters 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 perfix 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 vaild.