timings and rate groups validation

This commit is contained in:
Radu Ioan Fericean
2015-05-21 15:41:05 +03:00
parent 3a0fe8e67c
commit bb6a7ea6c3
5 changed files with 143 additions and 35 deletions

View File

@@ -1234,9 +1234,6 @@ func (self *SQLStorage) GetTpRates(tpid, tag string) (map[string]*utils.TPRate,
// same tag only to create rate groups
er, exists := rts[tr.Tag]
if exists {
if err := ValidNextGroup(er.RateSlots[len(er.RateSlots)-1], r.RateSlots[0]); err != nil {
return nil, err
}
er.RateSlots = append(er.RateSlots, r.RateSlots[0])
} else {
rts[tr.Tag] = r