mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
CDRs only use ThresholdS if defined
This commit is contained in:
@@ -198,8 +198,10 @@ func (self *CdrServer) processCdr(cdr *CDR) (err error) {
|
||||
return err // Error is propagated back and we don't continue processing the CDR if we cannot store it
|
||||
}
|
||||
}
|
||||
// process CDR with thresholdS
|
||||
self.thdSProcessEvent(cdr.AsCGREvent())
|
||||
if self.thdS != nil {
|
||||
// process CDR with thresholdS
|
||||
self.thdSProcessEvent(cdr.AsCGREvent())
|
||||
}
|
||||
// Attach raw CDR to stats
|
||||
if self.cdrstats != nil { // Send raw CDR to stats
|
||||
var out int
|
||||
|
||||
Reference in New Issue
Block a user