warten nach 10 calls
git-svn-id: svn://svn.cccv.de/engel-system@228 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
8106ba5862
commit
c42fbffb30
|
@ -7,6 +7,7 @@ include ("./inc/error_handler.php");
|
||||||
include ("./inc/funktion_modem.php");
|
include ("./inc/funktion_modem.php");
|
||||||
include ("./inc/funktion_cron.php");
|
include ("./inc/funktion_cron.php");
|
||||||
|
|
||||||
|
|
||||||
//ausfuerungs Ruetmuss (in s)
|
//ausfuerungs Ruetmuss (in s)
|
||||||
$StartTimeBeforEvent = (60/4)*60;
|
$StartTimeBeforEvent = (60/4)*60;
|
||||||
$AnrufDelay = -5;
|
$AnrufDelay = -5;
|
||||||
|
@ -29,6 +30,7 @@ else
|
||||||
$Erg = mysql_query($SQL, $con);
|
$Erg = mysql_query($SQL, $con);
|
||||||
echo mysql_error($con);
|
echo mysql_error($con);
|
||||||
|
|
||||||
|
$Z=0;
|
||||||
for( $i=0; $i<mysql_num_rows($Erg); $i++)
|
for( $i=0; $i<mysql_num_rows($Erg); $i++)
|
||||||
{
|
{
|
||||||
if( mysql_result($Erg, $i, "UID")>0)
|
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"));
|
$DECTnumber = UID2DECT(mysql_result($Erg, $i, "UID"));
|
||||||
if( $DECTnumber!="")
|
if( $DECTnumber!="")
|
||||||
{
|
{
|
||||||
|
echo "dial $DECTnumber\n";
|
||||||
DialNumberIAX( $DECTnumber,
|
DialNumberIAX( $DECTnumber,
|
||||||
mysql_result($Erg, $i, "DateS"),
|
mysql_result($Erg, $i, "DateS"),
|
||||||
mysql_result($Erg, $i, "RID"),
|
mysql_result($Erg, $i, "RID"),
|
||||||
mysql_result($Erg, $i, "TID"));
|
mysql_result($Erg, $i, "TID"));
|
||||||
DialNumberModem( $DECTnumber,
|
DialNumberModem( $DECTnumber,
|
||||||
mysql_result($Erg, $i, "DateS"));
|
mysql_result($Erg, $i, "DateS"));
|
||||||
|
if( $Z++>10)
|
||||||
|
{
|
||||||
|
$Z=0;
|
||||||
|
sleep(30);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue