From 4aea3b41672f0c57eff455d05cdbd0cd1b4e425e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 24 Apr 2015 18:18:29 +0300 Subject: [PATCH] debug values foe eloy --- engine/balances.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/balances.go b/engine/balances.go index d3454d846..c52184a4f 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -217,7 +217,7 @@ func (b *Balance) GetMinutesForCredit(origCD *CallDescriptor, initialCredit floa // Gets the cost using balance RatingSubject if present otherwize // retuns a callcost obtained using standard rating -func (b *Balance) GetCost(cd *CallDescriptor, getStandarIfEmpty bool) (*CallCost, error) { +func (b *Balance) GetCost(cd *CallDescriptor, getStandardIfEmpty bool) (*CallCost, error) { // testing only if cd.test_callcost != nil { return cd.test_callcost, nil @@ -234,7 +234,7 @@ func (b *Balance) GetCost(cd *CallDescriptor, getStandarIfEmpty bool) (*CallCost cd.Account = origAccount return cc, err } - if getStandarIfEmpty { + if getStandardIfEmpty { cd.RatingInfos = nil return cd.GetCost() } else { @@ -419,6 +419,8 @@ func (b *Balance) DebitMoney(cd *CallDescriptor, ub *Account, count bool, dryRun if ts.Increments == nil { ts.createIncrementsSlice() } + //log.Printf("CD: %+v", cd) + //log.Printf("CC: %+v", cc) //log.Printf("TS: %+v", ts) maxCost, strategy := ts.RateInterval.GetMaxCost() //log.Printf("Timing: %+v", ts.RateInterval.Timing)