asterisk2billing.org
http://forum.asterisk2billing.org/

Incorrect Billing?
http://forum.asterisk2billing.org/viewtopic.php?f=34&t=9001
Page 1 of 1

Author:  DefLeppard [ Mon Jul 11, 2011 9:24 pm ]
Post subject:  Incorrect Billing?

Hello,

I have an under-testing server of A2billing on Ubuntu Server with only one active account on the system. Everything seems to work fine, except that I recently found that I am getting incorrect credit on my customer interface. The credit balance seems to increase/decrease inconsistently. If I refresh my customer interface info page every minute, I can see a new value every time and the funny thing is it also show more than what it previously was.

I got into the database and found the cc_card table with the credit column name. Attached is a screenshot of how the credit values change inconsistently.

Attachment:
File comment: Inconsistent credit values in the cc_card table of the A2billing database
Selection_001.png
Selection_001.png [ 137.28 KiB | Viewed 4943 times ]


I am not saying this is a bug, probably its just with me. Please help me fix this issue.

Author:  jroper [ Tue Jul 12, 2011 7:36 am ]
Post subject:  Re: Incorrect Billing?

Hi

You must have a process that is doing this, e.g. call being made, simply refreshing the page won't change the balance.

Joe

Author:  DefLeppard [ Tue Jul 12, 2011 2:45 pm ]
Post subject:  Re: Incorrect Billing?

jroper wrote:
Hi

You must have a process that is doing this, e.g. call being made, simply refreshing the page won't change the balance.

Joe


The balance stays steady when nobody is using it. Its just that when someone is using it the credit jumps up and down like that. Could you please elaborate your point?

Author:  jroper [ Tue Jul 12, 2011 3:20 pm ]
Post subject:  Re: Incorrect Billing?

Hi

There is a balance reservation setting, that takes an amount of money at the beginning of the call. At the end of the call, the cost is determined and removed from the balance, and the dial balance reservation is returned.

This helps to avoid negative credit when multiple calls are passing through the same account concurrently.

Joe

Author:  DefLeppard [ Tue Jul 12, 2011 4:34 pm ]
Post subject:  Re: Incorrect Billing?

Ok, that was a good explanation, thanks for that.

Is there a way I can disable this so that the balance is deducted only at the end of the call? And then maybe set a lock on the account when the balance remaining is say $2 or something? I would appreciate your inputs on this. Thanks.

Author:  jroper [ Tue Jul 12, 2011 5:04 pm ]
Post subject:  Re: Incorrect Billing?

Hi

There are settings in the agi-conf to set the value of the dial balance reservation.

You can set a minimum credit to call there as well.

Joe

Author:  DefLeppard [ Tue Jul 12, 2011 10:56 pm ]
Post subject:  Re: Incorrect Billing?

Awesome, thanks a ton for the help! I will try that first thing tomorrow.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/