The problem turns out to be by design. Or by lack of documentation outside the code. I found this in the a2billing.php:
// DIVIDE THE AMOUNT OF CREDIT BY 2 IN ORDER TO AVOID NEGATIVE BALANCE IF THE USER USE ALL HIS CREDIT
$orig_credit = $A2B -> credit;
$A2B -> credit = $A2B->credit / 2;
by changing the second line to:
$A2B -> credit = $A2B->credit;
The problem was solved. It seems that the designed it this way to remove the possiblty of overstating the credit available if there are two legs of a call.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment