From: Christian Weiske Date: Wed, 13 Mar 2019 16:02:01 +0000 (+0100) Subject: Script to test an incoming call with the currently configured loggers X-Git-Tag: v1.1.0~1 X-Git-Url: https://git.cweiske.de/auerswald-callnotifier.git/commitdiff_plain/42ff6e2c7c3212c5582d6c9f5a50c983e0e1a578?ds=sidebyside Script to test an incoming call with the currently configured loggers --- 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)); + +?>