2 namespace callnotifier;
4 class Logger_CallDreambox extends Logger_CallBase
8 public function __construct($host)
13 public function log($type, $arData)
17 $this->displayStart($arData['call']);
23 protected function displayStart(CallMonitor_Call $call)
25 if ($call->type != CallMonitor_Call::INCOMING) {
29 $this->addUnsetVars($call);
32 if ($call->fromName !== null) {
33 $msg .= $call->fromName
34 . "\nNummer: " . $call->from;
38 if ($call->fromLocation !== null) {
39 $msg .= "\nOrt: " . $call->fromLocation;
45 protected function notify($msg)
47 $url = 'http://' . $this->host
48 . '/web/message?type=2&timeout=10&text=' . urlencode($msg);
51 . ' ' . escapeshellarg($url)
52 . ' > /dev/null 2>&1 &'