From 56147d905db1f6e5ebddc7c676260b7d6c6f2c52 Mon Sep 17 00:00:00 2001 From: TeoV Date: Mon, 30 Oct 2017 11:26:34 +0200 Subject: [PATCH] Update config.checkConfigSanity --- config/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/config.go b/config/config.go index 57b5beef1..4038d6b33 100755 --- a/config/config.go +++ b/config/config.go @@ -362,6 +362,11 @@ func (self *CGRConfig) checkConfigSanity() error { return fmt.Errorf(" Cannot find CDR export template with ID: <%s>", cdrePrfl) } } + for _, connCfg := range self.CDRSThresholdSConns { + if connCfg.Address == utils.MetaInternal && !self.thresholdSCfg.Enabled { + return errors.New("ThresholdS not enabled but requested by CDRS component.") + } + } } // CDRC sanity checks for _, cdrcCfgs := range self.CdrcProfiles {