diff --git a/config/config_defaults.go b/config/config_defaults.go index 02fdd79d9..b110084b9 100755 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -355,8 +355,8 @@ const CGRATES_CFG_JSON = ` "timezone": "", // timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB> "filters": [], // limit parsing based on the filters "flags": [], // flags to influence the event processing - "attribute_context": "", // context used to process request with AttributeS - "attribute_ids": [], // ids of attributes used to avoid searching + "attribute_ids": [], // select Attribute profiles instead of discovering them + "attribute_context": "", // context used to discover matching Attribute profiles "synchronous": false, // block processing until export has a result "attempts": 1, // export attempts "field_separator": ",", // separator used in case of csv files diff --git a/config/eescfg.go b/config/eescfg.go index ad048782e..a6f9e4232 100644 --- a/config/eescfg.go +++ b/config/eescfg.go @@ -103,8 +103,8 @@ type EventExporterCfg struct { Timezone string Filters []string Flags utils.FlagsWithParams - AttributeSCtx string // context to use when querying AttributeS AttributeSIDs []string // selective AttributeS profiles + AttributeSCtx string // context to use when querying AttributeS Synchronous bool Attempts int FieldSep string diff --git a/config/libconfig_json.go b/config/libconfig_json.go index d1b7eadd6..2a8a37625 100755 --- a/config/libconfig_json.go +++ b/config/libconfig_json.go @@ -211,8 +211,8 @@ type EventExporterJsonCfg struct { Timezone *string Filters *[]string Flags *[]string - Attribute_context *string Attribute_ids *[]string + Attribute_context *string Synchronous *bool Attempts *int Field_separator *string diff --git a/ees/ees.go b/ees/ees.go index 3e3adb715..17f4e578e 100644 --- a/ees/ees.go +++ b/ees/ees.go @@ -84,7 +84,7 @@ func (eeS *EEService) V1ProcessEvent(cgrEv *utils.CGREventWithOpts) (err error) for _, eeCfg := range eeS.cfg.EEsCfg().Exporters { - if eeCfg.AttributeSCtx != utils.META_NONE { + if eeCfg.Flags.GetBool(utils.MetaAttributes) { var rplyEv engine.AttrSProcessEventReply attrArgs := &engine.AttrArgsProcessEvent{ AttributeIDs: eeCfg.AttributeSIDs,