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
add incoming/outgoing type to calls
[auerswald-callnotifier.git]
/
src
/
callnotifier
/
CLI.php
diff --git
a/src/callnotifier/CLI.php
b/src/callnotifier/CLI.php
index 55f7f71847aafd812809f3d70dec5a0f1da858fb..2a6d3ca6ea4aa5d96c233ff5d2ff28ae235ef8a8 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('startingCall', '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';