mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
Replacing error in case of missing flags in agents with warning
This commit is contained in:
committed by
Dan Christian Bogos
parent
348dcb5d6a
commit
5171ec9e53
@@ -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
|
||||
|
||||
@@ -30,8 +30,6 @@ import (
|
||||
"github.com/cgrates/fsock"
|
||||
)
|
||||
|
||||
// ToDo: Introduce support for RSRFields
|
||||
|
||||
const (
|
||||
varPrefix = "variable_"
|
||||
// Freswitch event proprities names
|
||||
|
||||
Reference in New Issue
Block a user