git.cweiske.de
/
auerswald-callnotifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make call names blue
[auerswald-callnotifier.git]
/
src
/
callnotifier
/
CLI.php
diff --git
a/src/callnotifier/CLI.php
b/src/callnotifier/CLI.php
index 55f7f71847aafd812809f3d70dec5a0f1da858fb..6ec9a7e40938664dbcabe6e91b738597e95dd0f0 100644
(file)
--- a/
src/callnotifier/CLI.php
+++ b/
src/callnotifier/CLI.php
@@
-23,14
+23,21
@@
class CLI
$this->fillConfig($this->config, $result);
$this->fillConfig($this->config, $result);
- $
handler = new MessageHandler($this->config
);
+ $
log = new Log(
);
if ($result->options['debug'] || $result->options['debugEdss1']) {
$debugLogger = new Logger_Debug();
if ($result->options['debug'] || $result->options['debugEdss1']) {
$debugLogger = new Logger_Debug();
- $
handler
->addLogger($debugLogger, '*');
+ $
log
->addLogger($debugLogger, '*');
if ($result->options['debugEdss1']) {
$debugLogger->edss1MsgOnly = true;
}
}
if ($result->options['debugEdss1']) {
$debugLogger->edss1MsgOnly = true;
}
}
+ $log->addLogger(
+ new Logger_CallEcho(), array('incomingCall', 'finishedCall')
+ );
+
+ $callMonitor = new CallMonitor($this->config, $log);
+
+ $handler = new MessageHandler($this->config, $log, $callMonitor);
if ($this->config->replayFile !== null) {
$sourceClass = 'callnotifier\Source_File';
if ($this->config->replayFile !== null) {
$sourceClass = 'callnotifier\Source_File';