def getTransfers(self): if self.getEstablished() and self.getUcid(): calling = self.getCalling() ev = CallEvent(self.getUcid(), self.date) ev.setCaller(calling) destination = self.getAnswerExt() ev = CallEvent(self.getUcid(), self.date) ev.transfer(self.getAnswerExt())
def getDetails(self): if "UpdateRoutingData" in self.line: ev = CallEvent(self.date, (self.getUcid())) ev.setDetails(self.getCallType())
def check_createNew(self): if self.getNewCallUcid(): CallEvent.add(self.getDate(), self.getNewCallUcid())
def manageRetrieved(self): if self.getRetrieved(): ev = CallEvent(self.getUcid(), self.date) logging.error("RETRIEVING ext %s" % self.getRetreiving()) ev.retrieved(self.getRetreiving())
def isCentrale(self): if "DivertDestination" in self.line and "DIVERT_IVR_DISTRIBUTION" in self.line: ev = CallEvent(self.getUcid(), self.date) ev.newCentraleCall(self.getCentaleNumber())
def manageEnd(self): if self.getTerminated(): ev = CallEvent(self.getUcid(), self.date) ev.end()
def check_createNew(self): if self.getNewCallUcid(): CallEvent(self.getNewCallUcid(), self.date).add()
def manageConsulting(self): if self.consulting(): ev = CallEvent(self.getUcid(), self.date) ev.setDetails(self.getCalledDid())