diff --git a/config/config.go b/config/config.go index 03113e739..2a9ed741a 100644 --- a/config/config.go +++ b/config/config.go @@ -674,11 +674,9 @@ func (self *CGRConfig) loadFromJsonCfg(jsnCfg *CgrJsonCfg) error { if rplJsonCfg.Synchronous != nil { self.CDRSCdrReplication[idx].Synchronous = *rplJsonCfg.Synchronous } + self.CDRSCdrReplication[idx].Attempts = 1 if rplJsonCfg.Attempts != nil { self.CDRSCdrReplication[idx].Attempts = *rplJsonCfg.Attempts - } else { - // Use 1 as default. If not the cdr will never send - self.CDRSCdrReplication[idx].Attempts = 1 } if rplJsonCfg.Cdr_filter != nil { if self.CDRSCdrReplication[idx].CdrFilter, err = utils.ParseRSRFields(*rplJsonCfg.Cdr_filter, utils.INFIELD_SEP); err != nil { diff --git a/engine/cdrs.go b/engine/cdrs.go index 9d01a153c..5f5f13932 100644 --- a/engine/cdrs.go +++ b/engine/cdrs.go @@ -372,9 +372,6 @@ func (self *CdrServer) replicateCdr(cdr *StoredCdr) error { case utils.META_HTTP_POST: content = utils.CONTENT_FORM body = cdr.AsHttpForm() - case utils.META_HTTP_TEXT: - content = utils.CONTENT_TEXT - body = cdr case utils.META_HTTP_JSON: content = utils.CONTENT_JSON body = cdr diff --git a/utils/consts.go b/utils/consts.go index fb6d7b1bf..1ed4e1c22 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -206,7 +206,6 @@ const ( HTTP_POST = "http_post" META_HTTP_POST = "*http_post" META_HTTP_JSON = "*http_json" - META_HTTP_TEXT = "*http_text" META_HTTP_JSONRPC = "*http_jsonrpc" NANO_MULTIPLIER = 1000000000 CGR_AUTHORIZE = "CGR_AUTHORIZE"