mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
create exporter with named type for *http_post action to prevent panic in ReplayFailedPosts
This commit is contained in:
committed by
Dan Christian Bogos
parent
3603d12c3e
commit
2ef967c5c6
@@ -53,7 +53,7 @@ func callURL(ub *engine.Account, a *engine.Action, _ engine.Actions, _ *engine.F
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, "", a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, utils.MetaHTTPjsonMap, a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
config.CgrConfig().GeneralCfg().PosterAttempts, nil)
|
||||
pstr, err := NewHTTPjsonMapEE(eeCfg, config.CgrConfig(), nil, nil)
|
||||
if err != nil {
|
||||
@@ -73,7 +73,7 @@ func callURLAsync(ub *engine.Account, a *engine.Action, _ engine.Actions, _ *eng
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, "", a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, utils.MetaHTTPjsonMap, a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
config.CgrConfig().GeneralCfg().PosterAttempts, nil)
|
||||
pstr, err := NewHTTPjsonMapEE(eeCfg, config.CgrConfig(), nil, nil)
|
||||
if err != nil {
|
||||
@@ -89,7 +89,7 @@ func postEvent(_ *engine.Account, a *engine.Action, _ engine.Actions, _ *engine.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, "", a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
eeCfg := config.NewEventExporterCfg(a.Id, utils.MetaHTTPjsonMap, a.ExtraParameters, config.CgrConfig().EEsCfg().FailedPosts.Dir,
|
||||
config.CgrConfig().GeneralCfg().PosterAttempts, nil)
|
||||
pstr, err := NewHTTPjsonMapEE(eeCfg, config.CgrConfig(), nil, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user