diff --git a/sessionmanager/session.go b/sessionmanager/session.go index 9b69cfee4..16eaa6549 100644 --- a/sessionmanager/session.go +++ b/sessionmanager/session.go @@ -100,8 +100,8 @@ func (s *Session) debitLoop(runIdx int) { } s.sessionRuns[runIdx].CallCosts = append(s.sessionRuns[runIdx].CallCosts, cc) engine.Logger.Debug(fmt.Sprintf("CALLCOST: %s", utils.ToJSON(cc))) - engine.Logger.Debug(fmt.Sprintf("NEXTCD: %s DURATION: %s", utils.ToJSON(nextCd), nextCd.GetDuration().String())) nextCd.TimeEnd = cc.GetEndTime() // set debited timeEnd + engine.Logger.Debug(fmt.Sprintf("NEXTCD: %s DURATION: %s", utils.ToJSON(nextCd), nextCd.GetDuration().String())) // update call duration with real debited duration nextCd.DurationIndex -= debitPeriod nextCd.DurationIndex += cc.GetDuration()