Browse Source

Call dst filter test5

Hal De 4 years ago
parent
commit
b042ea60fa
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/cel.py

+ 4 - 1
app/cel.py

@@ -103,7 +103,10 @@ class CdrCall:
     if self.direction == 'outbound':
     if self.direction == 'outbound':
       return self.events.first.dst
       return self.events.first.dst
     else:
     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
   @property
   def did(self):
   def did(self):
     if self.direction == 'inbound':
     if self.direction == 'inbound':