Browse Source

Call dst filter test3

Hal De 4 năm trước cách đây
mục cha
commit
815073b796
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      app/cel.py

+ 4 - 1
app/cel.py

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