X-Git-Url: https://git.cweiske.de/auerswald-callnotifier.git/blobdiff_plain/6ec5a125940846a9f7f1bb31d55b19e044db2c09..42ff6e2c7c3212c5582d6c9f5a50c983e0e1a578:/scripts/test-notification.php diff --git a/scripts/test-notification.php b/scripts/test-notification.php new file mode 100644 index 0000000..6e354b2 --- /dev/null +++ b/scripts/test-notification.php @@ -0,0 +1,33 @@ +debug = true; + +$callMonitor = new CallMonitor($config, $log); + +$cli = new CLI(); +$configFile = $cli->getConfigFile(); +if ($configFile === null) { + echo "No config file found\n"; + exit(1); +} +require $configFile; + + + +$call = new CallMonitor_Call(); +$call->type = 'i'; +$call->from = '03411234567'; +//$call->fromName = 'Foo Bar'; +$call->fromLocation = 'Leipzig'; +$call->to = '12345'; +$call->start = strtotime('2013-08-03 20:11'); +$call->end = strtotime('2013-08-03 20:12'); + +$log->log('startingCall', array('call' => $call)); + +?>