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");

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to