[Asterisk-Users] ASTCC Rate Calculation

Rusty Shackleford john97 at flatline.com
Sat Jun 18 10:32:57 MST 2005


On Fri, June 17, 2005 5:19 pm, Darren Wiebe said:
> Good Day
>
> Has anybody here looked closely at the call cost calculation in ASTCC?
> Can you duplicate the way the cost of a call is calculated?  I believe
> that there is an error in the code.  I have fixed it, I think and
> submitted a patch but we need user comments.  I would appreciate if
> anybody involved would slip over to chech out this link on the
> bugtracker and provide feedback. http://bugs.digium.com/view.php?id=4480
>  I may well be wrong but I believe the issue needs visiting.  Somebody
> was asking me how it calculates costs as they thought they knew what a
> call should cost.  I said "I'll show you".  Mistake, I could not come up
> with an answer that made sense.
>

Darren,

I took a quick look at the patch. I'm not certain, but it appears that
you've taken out the formula that factors in the billing increment. This
forumla, inything other than a 1 second incement, will always "add" time
to the call for any number of seconds not equally divisible by the billing
increment integer, resulting in a slightly higher cost than might be
expected at first glance. This is the way it is supposed to work.

As I said, I only glanced at it briefly. Could you describe your changes
and the error you were seeing?




More information about the asterisk-users mailing list