load call details on finished calls, too
[auerswald-callnotifier.git] / src / callnotifier / CallMonitor.php
index f55bfa77dcdc12a222acf8a499bd11cca5872f86..4923967d793f767d4eac129a5b1e7b36e765e4d2 100644 (file)
@@ -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;