瀏覽代碼

Call dst filter test4

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':