From 869efc4407dcfd0fb50c3b589be7b59ce8e671b6 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 10 Apr 2015 13:22:58 +0300 Subject: [PATCH] if lc RPCategory = *default use original category --- engine/calldesc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/calldesc.go b/engine/calldesc.go index 1d5b9d846..27b010e06 100644 --- a/engine/calldesc.go +++ b/engine/calldesc.go @@ -728,6 +728,10 @@ func (cd *CallDescriptor) GetLCR(stats StatsInterface) (*LCRCost, error) { } } else { // find rating profiles + category := lcrCost.Entry.RPCategory + if category == utils.META_DEFAULT { + category = lcr.Category + } ratingProfileSearchKey := utils.ConcatenatedKey(lcr.Direction, lcr.Tenant, lcrCost.Entry.RPCategory) suppliers := cache2go.GetEntriesKeys(RATING_PROFILE_PREFIX + ratingProfileSearchKey) for _, supplier := range suppliers {