summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-12-29 20:33:54 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-12-29 20:33:54 +0000
commitc42fbffb309677caef908ce2615ff68cf731eb62 (patch)
tree25627fa0bd62c44d8a7c516b3879129f8dba618e
parent8106ba5862d4ec6530ead751696829a14cc20cd3 (diff)
warten nach 10 calls
git-svn-id: svn://svn.cccv.de/engel-system@228 29ba0400-6e00-0410-a75a-ca02368028f8
-rwxr-xr-xservices/cron_dect.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/cron_dect.php b/services/cron_dect.php
index f59a00f1..73e2d69c 100755
--- a/services/cron_dect.php
+++ b/services/cron_dect.php
@@ -7,6 +7,7 @@ include ("./inc/error_handler.php");
include ("./inc/funktion_modem.php");
include ("./inc/funktion_cron.php");
+
//ausfuerungs Ruetmuss (in s)
$StartTimeBeforEvent = (60/4)*60;
$AnrufDelay = -5;
@@ -29,6 +30,7 @@ else
$Erg = mysql_query($SQL, $con);
echo mysql_error($con);
+$Z=0;
for( $i=0; $i<mysql_num_rows($Erg); $i++)
{
if( mysql_result($Erg, $i, "UID")>0)
@@ -36,12 +38,18 @@ for( $i=0; $i<mysql_num_rows($Erg); $i++)
$DECTnumber = UID2DECT(mysql_result($Erg, $i, "UID"));
if( $DECTnumber!="")
{
+ echo "dial $DECTnumber\n";
DialNumberIAX( $DECTnumber,
mysql_result($Erg, $i, "DateS"),
mysql_result($Erg, $i, "RID"),
mysql_result($Erg, $i, "TID"));
DialNumberModem( $DECTnumber,
mysql_result($Erg, $i, "DateS"));
+ if( $Z++>10)
+ {
+ $Z=0;
+ sleep(30);
+ }
}
}
}