Ver Fonte

Call dst filter test4

Hal De há 4 anos atrás
pai
commit
345fcf3092
1 ficheiros alterados com 3 adições e 3 exclusões
  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':