mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 11:06:25 +05:00
return form get max session time if key not found
This commit is contained in:
@@ -290,6 +290,9 @@ If the user has postpayied plan it returns -1.
|
||||
*/
|
||||
func (cd *CallDescriptor) GetMaxSessionTime() (seconds float64, err error) {
|
||||
_, err = cd.LoadActivationPeriods()
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
now := time.Now()
|
||||
availableCredit, availableSeconds := 0.0, 0.0
|
||||
Logger.Debug(fmt.Sprintf("cd: %+v", cd))
|
||||
|
||||
Reference in New Issue
Block a user