mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Make flags camel case for ers ees and agents
This commit is contained in:
committed by
Dan Christian Bogos
parent
fe1f6c37da
commit
503d3fe22c
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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{}{
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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{}{
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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{}{
|
||||
|
||||
@@ -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{}{
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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":[],
|
||||
},
|
||||
|
||||
@@ -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":[],
|
||||
},
|
||||
|
||||
@@ -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":[],
|
||||
},
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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"},
|
||||
],
|
||||
|
||||
@@ -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"},
|
||||
],
|
||||
|
||||
@@ -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"},
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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":";"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": [],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"flags": ["*dryRun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
|
||||
@@ -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**
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 = "~"
|
||||
|
||||
Reference in New Issue
Block a user