diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-08-10 22:32:08 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-08-10 22:32:08 +0200 |
| commit | 378a3adf9811b27980efd03dd8a51d9fe00258ca (patch) | |
| tree | 06de01d27fa64401899d3c58c9e44a808685134c /src/callnotifier/Logger/CallNotifySend.php | |
| parent | bbd03e7cdd6defd30e9019ae5bf690a085482776 (diff) | |
| download | auerswald-callnotifier-378a3adf9811b27980efd03dd8a51d9fe00258ca.tar.gz auerswald-callnotifier-378a3adf9811b27980efd03dd8a51d9fe00258ca.zip | |
all loggers support call type and MSN filtering now
Diffstat (limited to 'src/callnotifier/Logger/CallNotifySend.php')
| -rw-r--r-- | src/callnotifier/Logger/CallNotifySend.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/callnotifier/Logger/CallNotifySend.php b/src/callnotifier/Logger/CallNotifySend.php index 477a253..74c930e 100644 --- a/src/callnotifier/Logger/CallNotifySend.php +++ b/src/callnotifier/Logger/CallNotifySend.php @@ -7,12 +7,23 @@ class Logger_CallNotifySend extends Logger_CallBase { switch ($type) { case 'startingCall': - $this->displayStart($arData['call']); + $displayMethod = 'displayStart'; break; case 'finishedCall': - $this->displayFinished($arData['call']); + $displayMethod = 'displayFinished'; break; + default: + return; } + + $call = $arData['call']; + if (!$this->hasValidType($call)) { + return; + } + if (!$this->hasValidMsn($call)) { + return; + } + $this->$displayMethod($arData['call']); } |
