Hal De преди 4 години
родител
ревизия
345fcf3092
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/cel.py

+ 3 - 3
app/cel.py

@@ -100,10 +100,10 @@ class CdrCall:
   def dst(self):
     # placeholder
     # TODO: determine last dst based on disposition
-    if self.direction == 'inbound':
-      return self.events.first.dstchannel.peer
-    else:
+    if self.direction == 'outbound':
       return self.events.first.dst
+    else:
+      return self.events.first.dstchannel.peer
   @property
   def did(self):
     if self.direction == 'inbound':