Replacing error in case of missing flags in agents with warning

This commit is contained in:
andronache
2021-06-28 16:32:25 +03:00
committed by Dan Christian Bogos
parent 348dcb5d6a
commit 5171ec9e53
2 changed files with 1 additions and 3 deletions

View File

@@ -296,7 +296,7 @@ func (smaEv *SMAsteriskEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs)
CGREvent: cgrEv,
}
if smaEv.Subsystems() == utils.EmptyString {
utils.Logger.Err(fmt.Sprintf("<%s> cgr_flags variable is not set",
utils.Logger.Warning(fmt.Sprintf("<%s> cgr_flags variable is not set, using defaults",
utils.AsteriskAgent))
args.GetMaxUsage = true
return

View File

@@ -30,8 +30,6 @@ import (
"github.com/cgrates/fsock"
)
// ToDo: Introduce support for RSRFields
const (
varPrefix = "variable_"
// Freswitch event proprities names