hardcoded direction for mediator

This commit is contained in:
Radu Ioan Fericean
2012-09-19 16:03:59 +03:00
parent b1706e3880
commit ea55d86967
2 changed files with 2 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ func (m *Mediator) GetCostsFromRater(record []string) (cc *timespans.CallCost, e
return
}
cd := timespans.CallDescriptor{
Direction: record[m.directionIndex],
Direction: "OUT", //record[m.directionIndex] TODO: fix me
Tenant: record[m.tenantIndex],
TOR: record[m.torIndex],
Subject: record[m.subjectIndex],

View File

@@ -291,6 +291,7 @@ If the user has postpayied plan it returns -1.
func (cd *CallDescriptor) GetMaxSessionTime() (seconds float64, err error) {
_, err = cd.LoadActivationPeriods()
if err != nil {
Logger.Err(fmt.Sprintf("error getting cost for key %v: %v", cd.GetUserBalanceKey(), err))
return 0, err
}
now := time.Now()