Free Billing, Routing and Management software for Asterisk and VOIP
Home | Forums | Wiki | Manual | Open Source | Billing and BSS | Demo | Contact Us
DownLoad | Bugs | Help Wanted | Numbering Plan
  
 

AstBill Credit Control

 
By london3 at Tue, 2005-10-11 11:14

AstBill is a FREE real time billing engine for Asterisk. By using AstBill to process your Asterisk calls you get real time credit control of your customers.

When any SIP or IAX client places a call AstBill will do a credit control. If the account has Sufficient founds to place a call then AstBill will calculate the amount needed for the duration of the call. (By default calls disconnect after max 60 minutes. You can change that.) AstBill will create a record in the MySQL table 'astcreditres' with the uniqueid, user and MAX COST of the call. Next time somebody are using the same account to make a call AstBill will check that there are founds available for the customer and deduct any entry reserved for that customer in the MySQL table 'astcreditres' before AstBill decide the max length of the call the client is allowed to use.

The CDR in AstBill have two parts. When the call is initiated the CDR info available is stored in the table 'astcdr'. When the call is terminated the rest of the information about the call is updated in the CDR. The cost of the call is calculated and deducted from the customers balance. The record for reserved founds in 'astcreditres' is deleted There are some advantages to this as it allows us to query the database at any time to know how many calls are currently being processed without using the Asterisk Manager Interface.

typos

By robert on Sat, 2006-01-28 07:04

AstBill is a FREE real time billing engine for Asterisk. Using AstBill to process your Asterisk calls you get real time credit control of your customers.

When any SIP or IAX client places a call, AstBill will do a credit look up. If the clients account has sufficient funds to place a call then AstBill will calculate the amount needed for the duration of the call. By default, calls disconnect after max 60 minutes. [You can change this.) AstBill will create a record in the MySQL table 'astcreditres' with the uniqueid, user and MAX COST of the call. Next time somebody is using the same account to call, AstBill will check that there are funds available for that customer then deduct any entry reserved for that customer in the MySQL table 'astcreditres' before AstBill decides the maximum length of the call the client is allowed to make.

The CDR in AstBill has two parts. When a call is initiated the CDR info available is stored in the table 'astcdr'.
When the call is terminated the rest of the information about the call is updated in the CDR.
The cost of the call is calculated and deducted from the customers balance and the record for reserved funds in 'astcreditres' is then deleted.
The advantage to this is that it allows us to query the database to find out how many calls are currently being processed --at any time-- without having to use the Asterisk Manager Interface!

» login or register to post comments
  
BerliOS Developer LogoSourceForge.net Logo Drupal.org Logo