Small modifications on CDR rplication, http_text does not make much sense

This commit is contained in:
DanB
2015-10-13 12:34:33 +02:00
parent 72a34bc91a
commit af1d8e3cc5
3 changed files with 1 additions and 7 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -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"