summaryrefslogtreecommitdiff
path: root/services/cron_dect_asterisk.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-29 17:11:19 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-29 17:11:19 +0000
commit50befcb6cd53d281a8a93bb496f06faf869432ba (patch)
tree07ab79a8eb4c9a5a3ff45617a33ea8f7bb4c084c /services/cron_dect_asterisk.php
parent30876a0a85897125854226112d8de7f19a707dad (diff)
cron_dect umbenant
git-svn-id: svn://svn.cccv.de/engel-system@182 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'services/cron_dect_asterisk.php')
-rwxr-xr-xservices/cron_dect_asterisk.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/services/cron_dect_asterisk.php b/services/cron_dect_asterisk.php
deleted file mode 100755
index 73e1f199..00000000
--- a/services/cron_dect_asterisk.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?PHP
-
-include ("./inc/config.php");
-include ("./inc/config_IAX.php");
-include ("./inc/config_db.php");
-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;
-$DebugDECT=FALSE;
-
-//Timeout erhöhen;
-set_time_limit(50000);
-
-//SQL zusammensetzen
-$SQL = "SELECT Shifts.DateS, Shifts.RID, ShiftEntry.UID, ShiftEntry.TID ".
- "FROM `Shifts` INNER JOIN `ShiftEntry` ON `Shifts`.`SID` = `ShiftEntry`.`SID` ";
-if( $DebugDECT)
- $SQL .= "WHERE (Shifts.DateS>'2004-12-27 10:45:00' AND ".
- "Shifts.DateS<='2004-12-27 11:00:00');";
-else
- $SQL .= "WHERE ((`Shifts`.`DateS`>'". gmdate("Y-m-d H:i:s", time()+3600+120). "') AND ".
- "(`Shifts`.`DateS`<='". gmdate("Y-m-d H:i:s", time()+3600+120+$StartTimeBeforEvent). "') );";
-
-$Erg = mysql_query($SQL, $con);
-echo mysql_error($con);
-
-for( $i=0; $i<mysql_num_rows($Erg); $i++)
-{
- if( mysql_result($Erg, $i, "UID")>0)
- {
- $DECTnumber = UID2DECT(mysql_result($Erg, $i, "UID"));
- if( $DECTnumber!="")
- {
- DialNumberIAX( $DECTnumber,
- mysql_result($Erg, $i, "DateS"),
- mysql_result($Erg, $i, "RID"),
- mysql_result($Erg, $i, "TID"));
- DialNumberModem( $DECTnumber,
- mysql_result($Erg, $i, "DateS"));
- }
- }
-}
-
-return 0;
-
-
-?>
-