Explorar o código

Call dst filter test5

Hal De %!s(int64=4) %!d(string=hai) anos
pai
achega
b042ea60fa
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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':