From 4d2ff245ad2ed9227801c06be5fcd9861ed74cc7 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 10 Sep 2014 18:07:43 +0300 Subject: [PATCH] small load destination fix --- apier/apier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apier/apier.go b/apier/apier.go index eec4c6d9c..10c571408 100644 --- a/apier/apier.go +++ b/apier/apier.go @@ -183,7 +183,7 @@ func (self *ApierV1) LoadDestination(attrs AttrLoadDestination, reply *string) e if missing := utils.MissingStructFields(&attrs, []string{"TPid", "DestinationId"}); len(missing) != 0 { return fmt.Errorf("%s:%v", utils.ERR_MANDATORY_IE_MISSING, missing) } - if attrs.DestinationId == utils.ANY { + if attrs.DestinationId == utils.EMPTY { attrs.DestinationId = "" } dbReader := engine.NewDbReader(self.StorDb, self.RatingDb, self.AccountDb, attrs.TPid)