Sfoglia il codice sorgente

no return events in call

svetlana 3 anni fa
parent
commit
f29fd2bd51
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/cel.py

+ 2 - 0
app/cel.py

@@ -47,6 +47,8 @@ class CdrEvents:
       event = CdrEvent(event)
     if not self.start:
         self.start = event.calldate
+    if (event.lastapp == 'Return'):
+      return
     if (event.channel.id not in self._channels):
         self._channels[event.channel.id] = event
     if (event.dstchannel.id not in self._dstchannels):