[Asterisk-cvs] astcc astcc.agi,1.16,1.17

markster markster
Fri Oct 14 16:34:15 CDT 2005


Update of /usr/cvsroot/astcc
In directory mongoose.digium.com:/tmp/cvs-serv30435

Modified Files:
	astcc.agi 
Log Message:
Handle free calls okay (bug #5441)


Index: astcc.agi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc.agi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- astcc.agi	13 Oct 2005 22:58:27 -0000	1.16
+++ astcc.agi	14 Oct 2005 20:28:46 -0000	1.17
@@ -614,8 +614,12 @@
 	exit(0);
 }
 
+if ($adjcost > 0 || $adjconn > 0) {
+	$maxmins = int( ( $credit - $adjconn ) / $adjcost );
+} else {
+	$maxmins = 60;
+}
 
-$maxmins = int(($credit - $adjconn) / $adjcost);
 if ($maxmins <= 0.1) {
 	if ($quiet < 5 ) {
 		$res = &mystreamfile("astcc-notenough");




More information about the svn-commits mailing list