Browse Source

Call dst filter test5

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

+ 4 - 1
app/cel.py

@@ -103,7 +103,10 @@ class CdrCall:
     if self.direction == 'outbound':
       return self.events.first.dst
     else:
-      return self.events.first.dstchannel.peer
+      if self.events.first.dstchannel is not None:
+        return self.events.first.dstchannel.peer
+      else:
+        return self.events.first.dst
   @property
   def did(self):
     if self.direction == 'inbound':