From 1b28b0289cdcb6adcbd496be07fda3a5ec705bfd Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 12 Aug 2012 21:50:01 +0200 Subject: load call details on finished calls, too --- src/callnotifier/CallMonitor.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/callnotifier/CallMonitor.php') 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; -- cgit v1.2.3