> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] 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 _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
