mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Small modifications on CDR rplication, http_text does not make much sense
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user