$this->fillConfig($this->config, $result);
- $handler = new MessageHandler($this->config);
+ $log = new Log();
if ($result->options['debug'] || $result->options['debugEdss1']) {
$debugLogger = new Logger_Debug();
- $handler->addLogger($debugLogger, '*');
+ $log->addLogger($debugLogger, '*');
if ($result->options['debugEdss1']) {
$debugLogger->edss1MsgOnly = true;
}
}
+ $log->addLogger(
+ new Logger_CallEcho(), array('startingCall', 'finishedCall')
+ );
+
+ $callMonitor = new CallMonitor($this->config, $log);
+ $callMonitor->addDetailler(new CallMonitor_Detailler_LDAP());
+ $callMonitor->addDetailler(new CallMonitor_Detailler_OpenGeoDb());
+
+ $handler = new MessageHandler($this->config, $log, $callMonitor);
if ($this->config->replayFile !== null) {
$sourceClass = 'callnotifier\Source_File';