mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
hardcoded direction for mediator
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user