Selaa lähdekoodia

Call dst filter test4

Hal De 4 vuotta sitten
vanhempi
sitoutus
345fcf3092
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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':