Adding debug information for session refund

This commit is contained in:
DanB
2020-12-23 18:17:07 +01:00
parent 0d00b354ec
commit e721eb31c0

View File

@@ -558,6 +558,7 @@ func (sS *SessionS) refundSession(s *Session, sRunIdx int, rUsage time.Duration)
} else if srplsEC == nil {
return
}
utils.Logger.Debug(fmt.Sprintf("Preparing for session refund, EC: %s", utils.ToJSON(srplsEC)))
sCC := srplsEC.AsCallCost(sr.CD.ToR)
var incrmts engine.Increments
for _, tmspn := range sCC.Timespans {