From 42ff6e2c7c3212c5582d6c9f5a50c983e0e1a578 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 13 Mar 2019 17:02:01 +0100 Subject: [PATCH] Script to test an incoming call with the currently configured loggers --- scripts/test-notification.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 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)); + +?> -- 2.30.2