CDRs with ThresholdS in their own goroutine

This commit is contained in:
DanB
2018-11-06 18:47:56 +01:00
parent b8db95518a
commit 57ff13bcd2

View File

@@ -202,7 +202,7 @@ func (self *CdrServer) processCdr(cdr *CDR) (err error) {
}
if self.thdS != nil {
// process CDR with thresholdS
self.thdSProcessEvent(cdr.AsCGREvent())
go self.thdSProcessEvent(cdr.AsCGREvent())
}
// Attach raw CDR to stats
if self.cdrstats != nil { // Send raw CDR to stats