aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/CallMonitor.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-08-12 21:50:01 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-08-12 21:50:01 +0200
commit1b28b0289cdcb6adcbd496be07fda3a5ec705bfd (patch)
treef7c05fe9c673243eaf3817d0c200c01f5c760cb2 /src/callnotifier/CallMonitor.php
parentce9357171bbfda5d7fe2b53f07b0a27ceafa8b2f (diff)
downloadauerswald-callnotifier-1b28b0289cdcb6adcbd496be07fda3a5ec705bfd.tar.gz
auerswald-callnotifier-1b28b0289cdcb6adcbd496be07fda3a5ec705bfd.zip
load call details on finished calls, too
Diffstat (limited to 'src/callnotifier/CallMonitor.php')
-rw-r--r--src/callnotifier/CallMonitor.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/callnotifier/CallMonitor.php b/src/callnotifier/CallMonitor.php
index f55bfa7..4923967 100644
--- a/src/callnotifier/CallMonitor.php
+++ b/src/callnotifier/CallMonitor.php
@@ -101,6 +101,9 @@ class CallMonitor
case EDSS1_Message::RELEASE:
case EDSS1_Message::RELEASE_COMPLETE:
$call->end = time();
+ //we need to load details here because they might not have been
+ //loaded yet, e.g. for calls to MSNs that have no phones.
+ $this->loadCallDetails($call);
$this->log->log('finishedCall', array('call' => $call));
unset($this->currentCalls[$callId]);
break;