[Asterisk-Users] ASTCC gives me only the time, but no cost
Rusty Shackleford
john97 at flatline.com
Sun Jul 24 12:06:58 MST 2005
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Darren Wiebe
> Sent: Saturday, July 23, 2005 3:09 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] ASTCC gives me only the time,
> but no cost
>
>
> Thank you very, very much Rusty. I reopened the bug report.
> http://bugs.digium.com/view.php?id=4479 I made a very slight
> change to
> the method it uses to calculate costs but it should implement the
> connect charge properly. Initially I rewrote the cost
> calculation code
> but that was not necessary, it can be implemented by changing the
> following lines
> my $adjtime = int(($answeredtime + $increment - 1) / $increment) *
> $increment
>
> becomes
>
> $adjtime = int((($answeredtime - $numdata->{includedseconds}) +
> $increment - 1) / $increment) * $increment
This can yield a negative number, where $answeredtime <
"includedseconds", can it not?
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 07/22/2005
More information about the asterisk-users
mailing list