diff --git a/agents/fsevent_test.go b/agents/fsevent_test.go index 679b61de7..1c346e1da 100644 --- a/agents/fsevent_test.go +++ b/agents/fsevent_test.go @@ -331,7 +331,7 @@ variable_rtp_audio_out_dtmf_packet_count: 0 variable_rtp_audio_out_cng_packet_count: 0 variable_rtp_audio_rtcp_packet_count: 1450 variable_rtp_audio_rtcp_octet_count: 45940 -variable_cgr_flags: *resources;*attributes;*sessions;*routes;*routes_event_cost;*routes_ignore_errors;*accounts` +variable_cgr_flags: *resources;*attributes;*sessions;*routes;*routesEventCost;*routesIgnoreErrors;*accounts` func TestEventCreation(t *testing.T) { body := `Event-Name: RE_SCHEDULE diff --git a/agents/kamagent.go b/agents/kamagent.go index 1cd5f6ec0..f7fcd0881 100644 --- a/agents/kamagent.go +++ b/agents/kamagent.go @@ -231,7 +231,7 @@ func (ka *KamailioAgent) onCallEnd(evData []byte, connIdx int) { utils.KamailioAgent, kev[utils.OriginID], err.Error())) // no return here since we want CDR anyhow } - if ka.cfg.CreateCdr || strings.Index(kev[utils.CGRFlags], utils.MetaCDRs) != -1 { + if ka.cfg.CreateCdr || strings.Index(kev[utils.CGRs], utils.MetaCDRs) != -1 { if err := ka.connMgr.Call(ka.ctx, ka.cfg.SessionSConns, utils.SessionSv1ProcessCDR, tsArgs.CGREvent, &reply); err != nil { utils.Logger.Err(fmt.Sprintf("%s> failed processing CGREvent: %s, error: %s", diff --git a/agents/kamevent_test.go b/agents/kamevent_test.go index d1ed79735..b61ce18b6 100644 --- a/agents/kamevent_test.go +++ b/agents/kamevent_test.go @@ -144,7 +144,7 @@ func TestKamEvV1AuthorizeArgs(t *testing.T) { "cgr_duration": "3", "cgr_pdd": "4", utils.CGRRoute: "supplier2", utils.CGRDisconnectCause: "200", - utils.CGRFlags: "*accounts;*routes;*routes_event_cost;*routes_ignore_errors"} + utils.CGRFlags: "*accounts;*routes;*routesEventCost;*routesIgnoreErrors"} expected := &sessions.V1AuthorizeArgs{ GetMaxUsage: true, CGREvent: &utils.CGREvent{ @@ -186,7 +186,7 @@ func TestKamEvV1AuthorizeArgs2(t *testing.T) { "cgr_duration": "3", "cgr_pdd": "4", utils.CGRRoute: "supplier2", utils.CGRDisconnectCause: "200", - utils.CGRFlags: "*accounts;*routes;*routes_maxcost:100;*routes_ignore_errors"} + utils.CGRFlags: "*accounts;*routes;*routesMaxcost:100;*routesIgnoreErrors"} expected := &sessions.V1AuthorizeArgs{ GetMaxUsage: true, CGREvent: &utils.CGREvent{ diff --git a/config/config_it_test.go b/config/config_it_test.go index 5addf3775..ecdec16e4 100644 --- a/config/config_it_test.go +++ b/config/config_it_test.go @@ -417,7 +417,7 @@ func testCGRConfigReloadERs(t *testing.T) { } else if reply != utils.OK { t.Errorf("Expected OK received: %s", reply) } - flags := utils.FlagsWithParamsFromSlice([]string{"*dryrun"}) + flags := utils.FlagsWithParamsFromSlice([]string{"*dryRun"}) flagsDefault := utils.FlagsWithParamsFromSlice([]string{}) content := []*FCTemplate{ {Tag: utils.ToR, Path: utils.MetaCgreq + utils.NestingSep + utils.ToR, Type: utils.MetaVariable, Value: NewRSRParsersMustCompile("~*req.2", utils.InfieldSep), Mandatory: true, Layout: time.RFC3339}, @@ -674,7 +674,7 @@ func testCgrCfgV1ReloadConfigSection(t *testing.T) { "cache_dump_fields": []interface{}{}, "concurrent_requests": 1024, "filters": []string{}, - "flags": []string{"*dryrun"}, + "flags": []string{"*dryRun"}, "id": "file_reader1", "processed_path": "/tmp/ers/out", "run_delay": "-1", diff --git a/config/dnsagentcfg_test.go b/config/dnsagentcfg_test.go index f4d5b5e2e..7f54a8531 100644 --- a/config/dnsagentcfg_test.go +++ b/config/dnsagentcfg_test.go @@ -35,7 +35,7 @@ func TestDNSAgentCfgloadFromJsonCfg(t *testing.T) { { ID: utils.StringPointer("OutboundAUTHDryRun"), Filters: &[]string{"*string:~*req.request_type:OutboundAUTH", "*string:~*req.Msisdn:497700056231"}, - Flags: &[]string{"*dryrun"}, + Flags: &[]string{"*dryRun"}, Timezone: utils.StringPointer("UTC"), Request_fields: &[]*FcTemplateJsonCfg{}, Reply_fields: &[]*FcTemplateJsonCfg{ @@ -223,7 +223,7 @@ func TestDNSAgentCfgAsMapInterface1(t *testing.T) { "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "timezone": "UTC", "request_fields":[], "reply_fields":[ @@ -253,7 +253,7 @@ func TestDNSAgentCfgAsMapInterface1(t *testing.T) { utils.IDCfg: "OutboundAUTHDryRun", utils.FiltersCfg: []string{"*string:~*req.request_type:OutboundAUTH", "*string:~*req.Msisdn:497700056231"}, utils.TenantCfg: "cgrates.org", - utils.FlagsCfg: []string{"*dryrun"}, + utils.FlagsCfg: []string{"*dryRun"}, utils.TimezoneCfg: "UTC", utils.RequestFieldsCfg: []map[string]interface{}{}, utils.ReplyFieldsCfg: []map[string]interface{}{ diff --git a/config/eescfg_test.go b/config/eescfg_test.go index 99dfa3731..f5b6df8f6 100644 --- a/config/eescfg_test.go +++ b/config/eescfg_test.go @@ -387,7 +387,7 @@ func TestEEsCfgloadFromJsonCfgCase1(t *testing.T) { Type: utils.StringPointer("*fileCSV"), Filters: &[]string{}, Attribute_ids: &[]string{}, - Flags: &[]string{"*dryrun"}, + Flags: &[]string{"*dryRun"}, Export_path: utils.StringPointer("/tmp/testCSV"), Tenant: nil, Timezone: utils.StringPointer("UTC"), @@ -495,7 +495,7 @@ func TestEEsCfgloadFromJsonCfgCase2(t *testing.T) { Type: utils.StringPointer("*fileCSV"), Filters: &[]string{}, Attribute_ids: &[]string{}, - Flags: &[]string{"*dryrun"}, + Flags: &[]string{"*dryRun"}, Export_path: utils.StringPointer("/tmp/testCSV"), Tenant: nil, Timezone: utils.StringPointer("UTC"), diff --git a/config/erscfg_test.go b/config/erscfg_test.go index 8dfdcf66b..ace2a8c7b 100644 --- a/config/erscfg_test.go +++ b/config/erscfg_test.go @@ -35,7 +35,7 @@ func TestERSClone(t *testing.T) { "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "opts": { diff --git a/config/httpagntcfg_test.go b/config/httpagntcfg_test.go index 33e512aca..c9cbe5bf5 100644 --- a/config/httpagntcfg_test.go +++ b/config/httpagntcfg_test.go @@ -240,7 +240,7 @@ func TestHttpAgentCfgloadFromJsonCfgCase3(t *testing.T) { ID: utils.StringPointer("OutboundAUTHDryRun"), Filters: &[]string{"*string:*req.request_type:OutboundAUTH", "*string:*req.Msisdn:497700056231"}, Tenant: utils.StringPointer("cgrates.org"), - Flags: &[]string{"*dryrun"}, + Flags: &[]string{"*dryRun"}, Request_fields: &[]*FcTemplateJsonCfg{}, Reply_fields: &[]*FcTemplateJsonCfg{}, }, @@ -256,7 +256,7 @@ func TestHttpAgentCfgloadFromJsonCfgCase3(t *testing.T) { ID: "OutboundAUTHDryRun", Filters: []string{"*string:*req.request_type:OutboundAUTH", "*string:*req.Msisdn:497700056231"}, Tenant: NewRSRParsersMustCompile("cgrates.org", utils.InfieldSep), - Flags: utils.FlagsWithParams{"*dryrun": {}}, + Flags: utils.FlagsWithParams{"*dryRun": {}}, RequestFields: []*FCTemplate{}, ReplyFields: []*FCTemplate{}, }}, @@ -409,7 +409,7 @@ func TestHttpAgentCfgAsMapInterface(t *testing.T) { "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "timezone": "", "request_fields":[], "reply_fields":[ @@ -441,7 +441,7 @@ func TestHttpAgentCfgAsMapInterface(t *testing.T) { utils.IDCfg: "OutboundAUTHDryRun", utils.FiltersCfg: []string{"*string:~*req.request_type:OutboundAUTH", "*string:~*req.Msisdn:497700056231"}, utils.TenantCfg: "cgrates.org", - utils.FlagsCfg: []string{"*dryrun"}, + utils.FlagsCfg: []string{"*dryRun"}, utils.TimezoneCfg: "", utils.RequestFieldsCfg: []map[string]interface{}{}, utils.ReplyFieldsCfg: []map[string]interface{}{ diff --git a/config/multifiles_it_test.go b/config/multifiles_it_test.go index b49b4bc41..d14e2259c 100644 --- a/config/multifiles_it_test.go +++ b/config/multifiles_it_test.go @@ -98,7 +98,7 @@ func TestMfHttpAgentMultipleFields(t *testing.T) { ID: "OutboundAUTHDryRun", Filters: []string{}, Tenant: NewRSRParsersMustCompile("cgrates.org", utils.InfieldSep), - Flags: utils.FlagsWithParams{"*dryrun": {}}, + Flags: utils.FlagsWithParams{"*dryRun": {}}, RequestFields: []*FCTemplate{}, ReplyFields: []*FCTemplate{{ Tag: "Allow", diff --git a/config/radiuscfg_test.go b/config/radiuscfg_test.go index 3a4e2c312..f2aeacbfc 100644 --- a/config/radiuscfg_test.go +++ b/config/radiuscfg_test.go @@ -161,7 +161,7 @@ func TestRadiusAgentCfgAsMapInterface(t *testing.T) { "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Allow", "path": "*rep.response.Allow", "type": "*constant", @@ -187,7 +187,7 @@ func TestRadiusAgentCfgAsMapInterface(t *testing.T) { utils.IDCfg: "OutboundAUTHDryRun", utils.FiltersCfg: []string{"*string:~*req.request_type:OutboundAUTH", "*string:~*req.Msisdn:497700056231"}, utils.TenantCfg: "cgrates.org", - utils.FlagsCfg: []string{"*dryrun"}, + utils.FlagsCfg: []string{"*dryRun"}, utils.TimezoneCfg: "", utils.RequestFieldsCfg: []map[string]interface{}{}, utils.ReplyFieldsCfg: []map[string]interface{}{ diff --git a/config/sipagentcfg_test.go b/config/sipagentcfg_test.go index 623b3803d..cb302990c 100644 --- a/config/sipagentcfg_test.go +++ b/config/sipagentcfg_test.go @@ -186,7 +186,7 @@ func TestSIPAgentCfgAsMapInterface1(t *testing.T) { "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "timezone": "", "request_fields":[ ], @@ -218,7 +218,7 @@ func TestSIPAgentCfgAsMapInterface1(t *testing.T) { utils.IDCfg: "OutboundAUTHDryRun", utils.FiltersCfg: []string{"*string:~*req.request_type:OutboundAUTH", "*string:~*req.Msisdn:497700056231"}, utils.TenantCfg: "cgrates.org", - utils.FlagsCfg: []string{"*dryrun"}, + utils.FlagsCfg: []string{"*dryRun"}, utils.TimezoneCfg: "", utils.RequestFieldsCfg: []map[string]interface{}{}, utils.ReplyFieldsCfg: []map[string]interface{}{ diff --git a/data/conf/samples/diamagent_internal/dryrun.json b/data/conf/samples/diamagent_internal/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_internal/dryrun.json +++ b/data/conf/samples/diamagent_internal/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_internal_gobbirpc/dryrun.json b/data/conf/samples/diamagent_internal_gobbirpc/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_internal_gobbirpc/dryrun.json +++ b/data/conf/samples/diamagent_internal_gobbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_internal_jsonbirpc/dryrun.json b/data/conf/samples/diamagent_internal_jsonbirpc/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_internal_jsonbirpc/dryrun.json +++ b/data/conf/samples/diamagent_internal_jsonbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mongo/dryrun.json b/data/conf/samples/diamagent_mongo/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_mongo/dryrun.json +++ b/data/conf/samples/diamagent_mongo/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mongo_gobbirpc/dryrun.json b/data/conf/samples/diamagent_mongo_gobbirpc/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_mongo_gobbirpc/dryrun.json +++ b/data/conf/samples/diamagent_mongo_gobbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mongo_jsonbirpc/dryrun.json b/data/conf/samples/diamagent_mongo_jsonbirpc/dryrun.json index 2323e3f42..a812d0bc6 100644 --- a/data/conf/samples/diamagent_mongo_jsonbirpc/dryrun.json +++ b/data/conf/samples/diamagent_mongo_jsonbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mysql/dryrun.json b/data/conf/samples/diamagent_mysql/dryrun.json index 6b384af11..ea84a8d53 100644 --- a/data/conf/samples/diamagent_mysql/dryrun.json +++ b/data/conf/samples/diamagent_mysql/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mysql_gobbirpc/dryrun.json b/data/conf/samples/diamagent_mysql_gobbirpc/dryrun.json index 6b384af11..ea84a8d53 100644 --- a/data/conf/samples/diamagent_mysql_gobbirpc/dryrun.json +++ b/data/conf/samples/diamagent_mysql_gobbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagent_mysql_jsonbirpc/dryrun.json b/data/conf/samples/diamagent_mysql_jsonbirpc/dryrun.json index 6b384af11..ea84a8d53 100644 --- a/data/conf/samples/diamagent_mysql_jsonbirpc/dryrun.json +++ b/data/conf/samples/diamagent_mysql_jsonbirpc/dryrun.json @@ -8,7 +8,7 @@ "*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun" ], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ { "tag": "ToR", @@ -110,7 +110,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ { "tag": "ToR", diff --git a/data/conf/samples/diamagentmaxconn_internal/cgrates.json b/data/conf/samples/diamagentmaxconn_internal/cgrates.json index 0bcd35293..ef3d4e831 100755 --- a/data/conf/samples/diamagentmaxconn_internal/cgrates.json +++ b/data/conf/samples/diamagentmaxconn_internal/cgrates.json @@ -62,7 +62,7 @@ { "id": "maxconn", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[], "reply_fields":[], }, diff --git a/data/conf/samples/diamagentmaxconn_mongo/cgrates.json b/data/conf/samples/diamagentmaxconn_mongo/cgrates.json index fb3d2d91d..b0817aef3 100755 --- a/data/conf/samples/diamagentmaxconn_mongo/cgrates.json +++ b/data/conf/samples/diamagentmaxconn_mongo/cgrates.json @@ -66,7 +66,7 @@ { "id": "maxconn", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[], "reply_fields":[], }, diff --git a/data/conf/samples/diamagentmaxconn_mysql/cgrates.json b/data/conf/samples/diamagentmaxconn_mysql/cgrates.json index c1e2e2b9d..84191b0a0 100755 --- a/data/conf/samples/diamagentmaxconn_mysql/cgrates.json +++ b/data/conf/samples/diamagentmaxconn_mysql/cgrates.json @@ -62,7 +62,7 @@ { "id": "maxconn", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[], "reply_fields":[], }, diff --git a/data/conf/samples/diamsctpagent_internal/dryrun.json b/data/conf/samples/diamsctpagent_internal/dryrun.json index c64413e4b..f38672556 100755 --- a/data/conf/samples/diamsctpagent_internal/dryrun.json +++ b/data/conf/samples/diamsctpagent_internal/dryrun.json @@ -5,7 +5,7 @@ { "id": "dryrun1", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, @@ -39,7 +39,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, diff --git a/data/conf/samples/diamsctpagent_mongo/dryrun.json b/data/conf/samples/diamsctpagent_mongo/dryrun.json index c64413e4b..f38672556 100755 --- a/data/conf/samples/diamsctpagent_mongo/dryrun.json +++ b/data/conf/samples/diamsctpagent_mongo/dryrun.json @@ -5,7 +5,7 @@ { "id": "dryrun1", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, @@ -39,7 +39,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, diff --git a/data/conf/samples/diamsctpagent_mysql/dryrun.json b/data/conf/samples/diamsctpagent_mysql/dryrun.json index c64413e4b..f38672556 100755 --- a/data/conf/samples/diamsctpagent_mysql/dryrun.json +++ b/data/conf/samples/diamsctpagent_mysql/dryrun.json @@ -5,7 +5,7 @@ { "id": "dryrun1", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, @@ -39,7 +39,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "Val1", "path": "*cgreq.Val1", "type": "*constant", "value": "1"}, diff --git a/data/conf/samples/dispatchers/diamagent/dryrun.json b/data/conf/samples/dispatchers/diamagent/dryrun.json index 4d74fed36..850f350d3 100644 --- a/data/conf/samples/dispatchers/diamagent/dryrun.json +++ b/data/conf/samples/dispatchers/diamagent/dryrun.json @@ -5,7 +5,7 @@ { "id": "dryrun1", "filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"], - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "APIKey", "path": "*opts.*apiKey", "type": "*constant", "value": "ses12345"}, @@ -40,7 +40,7 @@ { "id": "dryrun2", "filters": ["*notempty:~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0]:"], // make sure the CC-Total-Octets was populated in the previous processor - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, {"tag": "APIKey", "path": "*opts.*apiKey", "type": "*constant", "value": "ses12345"}, diff --git a/data/conf/samples/dnsagent_internal/dryrun.json b/data/conf/samples/dnsagent_internal/dryrun.json index a8fce8adb..cbebdeebb 100644 --- a/data/conf/samples/dnsagent_internal/dryrun.json +++ b/data/conf/samples/dnsagent_internal/dryrun.json @@ -5,7 +5,7 @@ { "id": "DryRunNAPTR", "filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"], - "flags": ["*dryrun","*log"], + "flags": ["*dryRun","*log"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, ], diff --git a/data/conf/samples/dnsagent_mongo/dryrun.json b/data/conf/samples/dnsagent_mongo/dryrun.json index a8fce8adb..cbebdeebb 100644 --- a/data/conf/samples/dnsagent_mongo/dryrun.json +++ b/data/conf/samples/dnsagent_mongo/dryrun.json @@ -5,7 +5,7 @@ { "id": "DryRunNAPTR", "filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"], - "flags": ["*dryrun","*log"], + "flags": ["*dryRun","*log"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, ], diff --git a/data/conf/samples/dnsagent_mysql/dryrun.json b/data/conf/samples/dnsagent_mysql/dryrun.json index a8fce8adb..cbebdeebb 100644 --- a/data/conf/samples/dnsagent_mysql/dryrun.json +++ b/data/conf/samples/dnsagent_mysql/dryrun.json @@ -5,7 +5,7 @@ { "id": "DryRunNAPTR", "filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"], - "flags": ["*dryrun","*log"], + "flags": ["*dryRun","*log"], "request_fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*sms"}, ], diff --git a/data/conf/samples/ers_example/cgrates.json b/data/conf/samples/ers_example/cgrates.json index 232b7614d..c7a08213d 100644 --- a/data/conf/samples/ers_example/cgrates.json +++ b/data/conf/samples/ers_example/cgrates.json @@ -72,7 +72,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value diff --git a/data/conf/samples/ers_internal/cgrates.json b/data/conf/samples/ers_internal/cgrates.json index 7948ec4e3..90180a2a4 100644 --- a/data/conf/samples/ers_internal/cgrates.json +++ b/data/conf/samples/ers_internal/cgrates.json @@ -84,7 +84,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", }, @@ -96,7 +96,7 @@ }, "type": "*fileCSV", "source_path": "/tmp/ers2/in", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "processed_path": "/tmp/ers2/out", "fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice", "mandatory": true}, diff --git a/data/conf/samples/ers_mongo/cgrates.json b/data/conf/samples/ers_mongo/cgrates.json index a90699ea2..296f73a00 100644 --- a/data/conf/samples/ers_mongo/cgrates.json +++ b/data/conf/samples/ers_mongo/cgrates.json @@ -86,7 +86,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", }, @@ -98,7 +98,7 @@ }, "type": "*fileCSV", "source_path": "/tmp/ers2/in", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "processed_path": "/tmp/ers2/out", "fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice", "mandatory": true}, diff --git a/data/conf/samples/ers_mysql/cgrates.json b/data/conf/samples/ers_mysql/cgrates.json index 19bbac23a..a76f22143 100644 --- a/data/conf/samples/ers_mysql/cgrates.json +++ b/data/conf/samples/ers_mysql/cgrates.json @@ -83,7 +83,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", }, @@ -95,7 +95,7 @@ }, "type": "*fileCSV", "source_path": "/tmp/ers2/in", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "processed_path": "/tmp/ers2/out", "fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice", "mandatory": true}, diff --git a/data/conf/samples/ers_postgres/cgrates.json b/data/conf/samples/ers_postgres/cgrates.json index 77977b04b..33972b2af 100644 --- a/data/conf/samples/ers_postgres/cgrates.json +++ b/data/conf/samples/ers_postgres/cgrates.json @@ -80,7 +80,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", }, @@ -92,7 +92,7 @@ }, "type": "*fileCSV", "source_path": "/tmp/ers2/in", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "processed_path": "/tmp/ers2/out", "fields":[ {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice", "mandatory": true}, diff --git a/data/conf/samples/ers_reload/internal/cgrates.json b/data/conf/samples/ers_reload/internal/cgrates.json index 826819a6b..e1bc3bf77 100644 --- a/data/conf/samples/ers_reload/internal/cgrates.json +++ b/data/conf/samples/ers_reload/internal/cgrates.json @@ -72,7 +72,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value diff --git a/data/conf/samples/ers_reload/second_reload/cgrates.json b/data/conf/samples/ers_reload/second_reload/cgrates.json index 37c9baa36..b2e047254 100644 --- a/data/conf/samples/ers_reload/second_reload/cgrates.json +++ b/data/conf/samples/ers_reload/second_reload/cgrates.json @@ -72,7 +72,7 @@ "id": "file_reader1", "run_delay": "-1", "type": "*fileCSV", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", }, @@ -81,7 +81,7 @@ "run_delay": "-1", "type": "*fileCSV", "source_path": "/tmp/ers2/in", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "processed_path": "/tmp/ers2/out", "opts": { "csvFieldSeparator":";" diff --git a/data/conf/samples/httpagent_internal/httpagent.json b/data/conf/samples/httpagent_internal/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_internal/httpagent.json +++ b/data/conf/samples/httpagent_internal/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_internal_gob/httpagent.json b/data/conf/samples/httpagent_internal_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_internal_gob/httpagent.json +++ b/data/conf/samples/httpagent_internal_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_mongo/httpagent.json b/data/conf/samples/httpagent_mongo/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_mongo/httpagent.json +++ b/data/conf/samples/httpagent_mongo/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_mongo_gob/httpagent.json b/data/conf/samples/httpagent_mongo_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_mongo_gob/httpagent.json +++ b/data/conf/samples/httpagent_mongo_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_mysql/httpagent.json b/data/conf/samples/httpagent_mysql/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_mysql/httpagent.json +++ b/data/conf/samples/httpagent_mysql/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_mysql_gob/httpagent.json b/data/conf/samples/httpagent_mysql_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_mysql_gob/httpagent.json +++ b/data/conf/samples/httpagent_mysql_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagent_mysql_test/httpagent.json b/data/conf/samples/httpagent_mysql_test/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagent_mysql_test/httpagent.json +++ b/data/conf/samples/httpagent_mysql_test/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_internal/httpagent.json b/data/conf/samples/httpagenttls_internal/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_internal/httpagent.json +++ b/data/conf/samples/httpagenttls_internal/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_internal_gob/httpagent.json b/data/conf/samples/httpagenttls_internal_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_internal_gob/httpagent.json +++ b/data/conf/samples/httpagenttls_internal_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_mongo/httpagent.json b/data/conf/samples/httpagenttls_mongo/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_mongo/httpagent.json +++ b/data/conf/samples/httpagenttls_mongo/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_mongo_gob/httpagent.json b/data/conf/samples/httpagenttls_mongo_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_mongo_gob/httpagent.json +++ b/data/conf/samples/httpagenttls_mongo_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_mysql/httpagent.json b/data/conf/samples/httpagenttls_mysql/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_mysql/httpagent.json +++ b/data/conf/samples/httpagenttls_mysql/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/httpagenttls_mysql_gob/httpagent.json b/data/conf/samples/httpagenttls_mysql_gob/httpagent.json index 9cf922f03..9b33e66bc 100644 --- a/data/conf/samples/httpagenttls_mysql_gob/httpagent.json +++ b/data/conf/samples/httpagenttls_mysql_gob/httpagent.json @@ -13,7 +13,7 @@ "id": "OutboundAUTHDryRun", "filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ @@ -132,7 +132,7 @@ "id": "TextPlainDryRun", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun","*continue"], + "flags": ["*dryRun","*continue"], "request_fields":[ ], "reply_fields":[ @@ -152,7 +152,7 @@ "id": "TextPlainDryRun2", "filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[], "reply_fields":[ {"tag": "Field1", "path": "*rep.Item1.1", "type": "*group", diff --git a/data/conf/samples/multifiles/a.json b/data/conf/samples/multifiles/a.json index 0290ee091..ec346d97f 100644 --- a/data/conf/samples/multifiles/a.json +++ b/data/conf/samples/multifiles/a.json @@ -20,7 +20,7 @@ "id": "OutboundAUTHDryRun", "filters": [], "tenant": "cgrates.org", - "flags": ["*dryrun"], + "flags": ["*dryRun"], "request_fields":[ ], "reply_fields":[ diff --git a/docs/diamagent.rst b/docs/diamagent.rst index b278725df..bfbfde8cd 100644 --- a/docs/diamagent.rst +++ b/docs/diamagent.rst @@ -255,13 +255,13 @@ flags **\*none** Disable transfering the request from *Diameter* to *CGRateS* side. Used mostly to pasively answer *Diameter* requests or troubleshoot (mostly in combination with *\*log* flag). - **\*dryrun** + **\*dryRun** Together with not transfering the request on CGRateS side will also log the *Diameter* request/reply, useful for troubleshooting. **\*auth** Sends the request for authorization on CGRateS. - Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routes_ignore_errors**, **\*routes_event_cost**, **\*routes_maxcost** which are used to influence the auth behavior on CGRateS side. More info on that can be found on the **SessionS** component's API behavior. + Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routesIgnoreErrors**, **\*routesEventCost**, **\*routesMaxcost** which are used to influence the auth behavior on CGRateS side. More info on that can be found on the **SessionS** component's API behavior. **\*initiate** Initiates a session out of request on CGRateS side. @@ -281,7 +281,7 @@ flags **\*message** Process the request as individual message charging on CGRateS side. - Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routes_ignore_errors**, **\*routes_event_cost**, **\*routes_maxcost** which are used to influence the behavior on CGRateS side. + Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routesIgnoreErrors**, **\*routesEventCost**, **\*routesMaxcost** which are used to influence the behavior on CGRateS side. **\*event** diff --git a/docs/ers.rst b/docs/ers.rst index b8f991e55..0ac97a3be 100644 --- a/docs/ers.rst +++ b/docs/ers.rst @@ -202,13 +202,13 @@ flags **\*none** Disable transfering the Event from *Reader* to *CGRateS* side. - **\*dryrun** + **\*dryRun** Together with not transfering the Event on CGRateS side will also log it, useful for troubleshooting. **\*auth** Sends the Event for authorization on CGRateS. - Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routes_ignore_errors**, **\*routes_event_cost**, **\*routes_maxcost** which are used to influence the auth behavior on CGRateS side. More info on that can be found on the **SessionS** component's API behavior. + Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routesIgnoreErrors**, **\*routesEventCost**, **\*routesMaxcost** which are used to influence the auth behavior on CGRateS side. More info on that can be found on the **SessionS** component's API behavior. **\*initiate** Initiates a session out of Event on CGRateS side. @@ -228,7 +228,7 @@ flags **\*message** Process the Event as individual message charging on CGRateS side. - Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routes_ignore_errors**, **\*routes_event_cost**, **\*routes_maxcost** which are used to influence the behavior on CGRateS side. + Auxiliary flags available: **\*attributes**, **\*thresholds**, **\*stats**, **\*resources**, **\*accounts**, **\*routes**, **\*routesIgnoreErrors**, **\*routesEventCost**, **\*routesMaxcost** which are used to influence the behavior on CGRateS side. **\*event** Process the Event as generic event on CGRateS side. diff --git a/sessions/sessions_test.go b/sessions/sessions_test.go index ef653b934..f31baa5e1 100644 --- a/sessions/sessions_test.go +++ b/sessions/sessions_test.go @@ -972,7 +972,7 @@ func TestV1AuthorizeArgsParseFlags1(t *testing.T) { ForceDuration: true, } - strArg = "*accounts;*fd;*resources;*routes;*routes_ignore_errors;*routes_event_cost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" + strArg = "*accounts;*fd;*resources;*routes;*routesIgnoreErrors;*routesEventCost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" v1authArgs = new(V1AuthorizeArgs) v1authArgs.CGREvent = new(utils.CGREvent) v1authArgs.ParseFlags(strArg, utils.InfieldSep) @@ -998,7 +998,7 @@ func TestV1AuthorizeArgsParseFlags1(t *testing.T) { ForceDuration: true, } - strArg = "*accounts;*fd;*resources;;*dispatchers;*routes;*routes_ignore_errors;*routes_event_cost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" + strArg = "*accounts;*fd;*resources;;*dispatchers;*routes;*routesIgnoreErrors;*routesEventCost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" v1authArgs = new(V1AuthorizeArgs) v1authArgs.CGREvent = new(utils.CGREvent) v1authArgs.ParseFlags(strArg, utils.InfieldSep) @@ -1022,7 +1022,7 @@ func TestV1AuthorizeArgsParseFlags1(t *testing.T) { ForceDuration: true, } - strArg = "*accounts;*fd;*resources;;*dispatchers;*routes;*routes_ignore_errors;*routes_maxcost:100;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" + strArg = "*accounts;*fd;*resources;;*dispatchers;*routes;*routesIgnoreErrors;*routesMaxcost:100;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" v1authArgs = new(V1AuthorizeArgs) v1authArgs.CGREvent = new(utils.CGREvent) v1authArgs.ParseFlags(strArg, utils.InfieldSep) @@ -2037,7 +2037,7 @@ func TestV1ProcessMessageArgsParseFlags(t *testing.T) { CGREvent: eOut.CGREvent, } - strArg = "*accounts;*resources;*routes;*routes_ignore_errors;*routes_event_cost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" + strArg = "*accounts;*resources;*routes;*routesIgnoreErrors;*routesEventCost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" v1ProcessMsgArgs = new(V1ProcessMessageArgs) v1ProcessMsgArgs.CGREvent = new(utils.CGREvent) v1ProcessMsgArgs.ParseFlags(strArg, utils.InfieldSep) @@ -2062,7 +2062,7 @@ func TestV1ProcessMessageArgsParseFlags(t *testing.T) { ForceDuration: true, } - strArg = "*accounts;*resources;*dispatchers;*routes;*routes_ignore_errors;*routes_event_cost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3;*fd" + strArg = "*accounts;*resources;*dispatchers;*routes;*routesIgnoreErrors;*routesEventCost;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3;*fd" v1ProcessMsgArgs = new(V1ProcessMessageArgs) v1ProcessMsgArgs.CGREvent = new(utils.CGREvent) v1ProcessMsgArgs.ParseFlags(strArg, utils.InfieldSep) @@ -2085,7 +2085,7 @@ func TestV1ProcessMessageArgsParseFlags(t *testing.T) { CGREvent: eOut.CGREvent, } - strArg = "*accounts;*resources;*dispatchers;*routes;*routes_ignore_errors;*routes_maxcost:100;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" + strArg = "*accounts;*resources;*dispatchers;*routes;*routesIgnoreErrors;*routesMaxcost:100;*attributes:Attr1&Attr2;*thresholds:tr1&tr2&tr3;*stats:st1&st2&st3" v1ProcessMsgArgs = new(V1ProcessMessageArgs) v1ProcessMsgArgs.CGREvent = new(utils.CGREvent) v1ProcessMsgArgs.ParseFlags(strArg, utils.InfieldSep) diff --git a/utils/consts.go b/utils/consts.go index 628617bc9..f758bacef 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -642,10 +642,10 @@ const ( MetaEventCost = "*event_cost" MetaPositiveExports = "*positive_exports" MetaNegativeExports = "*negative_exports" - MetaRoutesEventCost = "*routes_event_cost" - MetaRoutesMaxCost = "*routes_maxcost" + MetaRoutesEventCost = "*routesEventCost" + MetaRoutesMaxCost = "*routesMaxcost" MetaMaxCost = "*maxcost" - MetaRoutesIgnoreErrors = "*routes_ignore_errors" + MetaRoutesIgnoreErrors = "*routesIgnoreErrors" Freeswitch = "freeswitch" Kamailio = "kamailio" Opensips = "opensips" @@ -671,7 +671,7 @@ const ( MetaTerminate = "*terminate" MetaEvent = "*event" MetaMessage = "*message" - MetaDryRun = "*dryrun" + MetaDryRun = "*dryRun" Event = "Event" EmptyString = "" DynamicDataPrefix = "~"