From fc4225989351e5aba1fe6de99faa1fced66edeec Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Thu, 1 Jul 2021 10:13:33 +0300 Subject: [PATCH] Change possible reader/exporter types format from snake case to camel case --- config/config_defaults.go | 6 +-- config/config_it_test.go | 2 +- config/config_test.go | 6 +-- config/eescfg_test.go | 20 +++++----- config/erscfg_test.go | 18 ++++----- data/conf/cgrates/cgrates.json | 6 +-- .../samples/actions_internal/cgradmin.json | 10 ++--- .../actions_internal_gob/cgradmin.json | 10 ++--- data/conf/samples/actions_mongo/cgradmin.json | 10 ++--- .../samples/actions_mongo_gob/cgradmin.json | 10 ++--- data/conf/samples/actions_mysql/cgradmin.json | 10 ++--- .../samples/actions_mysql_gob/cgradmin.json | 10 ++--- .../samples/cdrsexport_internal/cgrates.json | 12 +++--- .../samples/cdrsexport_mongo/cgrates.json | 12 +++--- .../samples/cdrsexport_mysql/cgrates.json | 12 +++--- .../cdrsreplicationmaster.json | 10 ++--- .../cdrsreplicationmaster.json | 10 ++--- .../samples/cdrsv1processevent/cgrates.json | 2 +- .../cdrsv1processeventmongo/cgrates.json | 2 +- .../cdrsv1processeventmysql/cgrates.json | 2 +- .../cdrsv_failover_internal/cgrates.json | 4 +- .../samples/cdrsv_failover_mongo/cgrates.json | 4 +- .../samples/cdrsv_failover_mysql/cgrates.json | 4 +- data/conf/samples/ees/cgrates.json | 24 ++++++------ data/conf/samples/ees_internal/cgrates.json | 8 ++-- data/conf/samples/ees_mongo/cgrates.json | 8 ++-- data/conf/samples/ees_mysql/cgrates.json | 8 ++-- data/conf/samples/ers_example/cgrates.json | 2 +- data/conf/samples/ers_internal/cgrates.json | 30 +++++++-------- data/conf/samples/ers_mongo/cgrates.json | 30 +++++++-------- data/conf/samples/ers_mysql/cgrates.json | 30 +++++++-------- data/conf/samples/ers_postgres/cgrates.json | 30 +++++++-------- .../ers_reload/first_reload/cgrates.json | 4 +- .../samples/ers_reload/internal/cgrates.json | 2 +- .../ers_reload/second_reload/cgrates.json | 12 +++--- data/conf/samples/multifiles/d.json | 2 +- data/conf/samples/tutmongo2/cgrates.json | 2 +- data/conf/samples/tutmongo2_gob/cgrates.json | 2 +- docs/cdre.rst | 38 +++++++++---------- docs/ers.rst | 18 ++++----- docs/rals.rst | 2 +- ees/ees_test.go | 6 +-- ers/amqp_it_test.go | 2 +- ers/amqpv1_it_test.go | 2 +- ers/kafka_it_test.go | 2 +- ers/nats_it_test.go | 20 +++++----- ers/s3_it_test.go | 2 +- ers/sql_it_test.go | 4 +- ers/sqs_it_test.go | 2 +- packages/debian/changelog | 12 +++--- utils/consts.go | 24 ++++++------ 51 files changed, 260 insertions(+), 260 deletions(-) diff --git a/config/config_defaults.go b/config/config_defaults.go index 544d18b26..2e0b943b6 100644 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -34,7 +34,7 @@ const CGRATES_CFG_JSON = ` "rounding_decimals": 5, // system level precision for floats "dbdata_encoding": "*msgpack", // encoding used to store object data in strings: <*msgpack|*json> "tpexport_dir": "/var/spool/cgrates/tpe", // path towards export folder for offline TariffPlans - "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR exports) + "poster_attempts": 3, // number of attempts before considering post request failed (eg: *httpPost, CDR exports) "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests "failed_posts_ttl": "5s", // time to wait before writing the failed posts in a single file "default_request_type": "*rated", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated> @@ -304,7 +304,7 @@ const CGRATES_CFG_JSON = ` "readers": [ { "id": "*default", // identifier of the EventReader profile - "type": "*none", // reader type <*file_csv> + "type": "*none", // reader type <*fileCSV> "run_delay": "0", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "/var/spool/cgrates/ers/in", // read data from this path @@ -425,7 +425,7 @@ const CGRATES_CFG_JSON = ` "enabled": false, // starts the EventReader service: "attributes_conns":[], // RPC Connections IDs "cache": { - "*file_csv": {"limit": -1, "ttl": "5s", "static_ttl": false}, + "*fileCSV": {"limit": -1, "ttl": "5s", "static_ttl": false}, }, "exporters": [ { diff --git a/config/config_it_test.go b/config/config_it_test.go index 630a08127..5addf3775 100644 --- a/config/config_it_test.go +++ b/config/config_it_test.go @@ -681,7 +681,7 @@ func testCgrCfgV1ReloadConfigSection(t *testing.T) { "source_path": "/tmp/ers/in", "tenant": "", "timezone": "", - "type": "*file_csv", + "type": "*fileCSV", "fields": content, "opts": map[string]interface{}{ "csvFieldSeparator": ",", diff --git a/config/config_test.go b/config/config_test.go index 5f140535d..fe96998d5 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -934,7 +934,7 @@ func TestLazySanityCheck(t *testing.T) { "exporters": [ { "id": "http_localhost", - "type": "*s3_json_map", + "type": "*s3JSONMap", "fields":[ {"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"} ] @@ -5110,7 +5110,7 @@ func TestV1GetConfigAsJSONApierS(t *testing.T) { func TestV1GetConfigAsJSONCfgEES(t *testing.T) { var reply string - expected := `{"ees":{"attributes_conns":[],"cache":{"*file_csv":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"5s"}},"enabled":false,"exporters":[{"attempts":1,"attribute_context":"","attribute_ids":[],"export_path":"/var/spool/cgrates/ees","fields":[],"filters":[],"flags":[],"id":"*default","opts":{},"synchronous":false,"tenant":"","timezone":"","type":"*none"}]}}` + expected := `{"ees":{"attributes_conns":[],"cache":{"*fileCSV":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"5s"}},"enabled":false,"exporters":[{"attempts":1,"attribute_context":"","attribute_ids":[],"export_path":"/var/spool/cgrates/ees","fields":[],"filters":[],"flags":[],"id":"*default","opts":{},"synchronous":false,"tenant":"","timezone":"","type":"*none"}]}}` cgrCfg := NewDefaultCGRConfig() if err := cgrCfg.V1GetConfigAsJSON(context.Background(), &SectionWithAPIOpts{Sections: []string{EEsJSON}}, &reply); err != nil { t.Error(err) @@ -5289,7 +5289,7 @@ func TestV1GetConfigAsJSONAllConfig(t *testing.T) { } }` var reply string - expected := `{"accounts":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"max_iterations":1000,"max_usage":"259200000000000","nested_fields":false,"prefix_indexed_fields":[],"rates_conns":[],"suffix_indexed_fields":[],"thresholds_conns":[]},"actions":{"accounts_conns":[],"cdrs_conns":[],"dynaprepaid_actionprofile":[],"ees_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"stats_conns":[],"suffix_indexed_fields":[],"tenants":[],"thresholds_conns":[]},"admins":{"actions_conns":[],"attributes_conns":[],"caches_conns":["*internal"],"ees_conns":[],"enabled":false},"analyzers":{"cleanup_interval":"1h0m0s","db_path":"/var/spool/cgrates/analyzers","enabled":false,"index_type":"*scorch","ttl":"24h0m0s"},"apiban":{"enabled":false,"keys":[]},"asterisk_agent":{"asterisk_conns":[{"address":"127.0.0.1:8088","alias":"","connect_attempts":3,"password":"CGRateS.org","reconnects":5,"user":"cgrates"}],"create_cdr":false,"enabled":false,"sessions_conns":["*birpc_internal"]},"attributes":{"admins_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"process_runs":1,"resources_conns":[],"stats_conns":[],"suffix_indexed_fields":[]},"caches":{"partitions":{"*account_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*accounts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*action_profile_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*action_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*apiban":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"2m0s"},"*attribute_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*attribute_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*caps_events":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*cdr_ids":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10m0s"},"*cdrs":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*charger_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*charger_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*closed_sessions":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10s"},"*diameter_messages":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*dispatcher_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_hosts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_loads":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_routes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatchers":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*event_charges":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10s"},"*event_resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*filters":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*load_ids":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_profile_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*replication_hosts":{"limit":0,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resource_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resource_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*reverse_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*route_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*route_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rpc_connections":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rpc_responses":{"limit":0,"precache":false,"replicate":false,"static_ttl":false,"ttl":"2s"},"*session_costs":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*stat_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*statqueue_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*statqueues":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*stir":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*threshold_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*threshold_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*thresholds":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_accounts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_action_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_attributes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_chargers":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_dispatcher_hosts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_dispatcher_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_filters":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_rate_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_routes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_stats":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_thresholds":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*uch":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*versions":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""}},"replication_conns":[]},"cdrs":{"actions_conns":[],"attributes_conns":[],"chargers_conns":[],"ees_conns":[],"enabled":false,"extra_fields":[],"online_cdr_exports":[],"session_cost_retries":5,"stats_conns":[],"store_cdrs":true,"thresholds_conns":[]},"chargers":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"suffix_indexed_fields":[]},"config_db":{"db_host":"","db_name":"","db_password":"","db_port":0,"db_type":"*internal","db_user":"","items":{},"opts":{"mongoQueryTimeout":"10s","redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"remote_conn_id":"","remote_conns":null,"replication_cache":"","replication_conns":null,"replication_filtered":false},"configs":{"enabled":false,"root_dir":"/var/spool/cgrates/configs","url":"/configs/"},"cores":{"caps":0,"caps_stats_interval":"0","caps_strategy":"*busy","shutdown_timeout":"1s"},"data_db":{"db_host":"127.0.0.1","db_name":"10","db_password":"","db_port":6379,"db_type":"*redis","db_user":"cgrates","items":{"*accounts":{"remote":false,"replicate":false},"*action_profiles":{"remote":false,"replicate":false},"*actions":{"remote":false,"replicate":false},"*attribute_profiles":{"remote":false,"replicate":false},"*charger_profiles":{"remote":false,"replicate":false},"*dispatcher_hosts":{"remote":false,"replicate":false},"*dispatcher_profiles":{"remote":false,"replicate":false},"*filters":{"remote":false,"replicate":false},"*indexes":{"remote":false,"replicate":false},"*load_ids":{"remote":false,"replicate":false},"*rate_profiles":{"remote":false,"replicate":false},"*resource_profiles":{"remote":false,"replicate":false},"*resources":{"remote":false,"replicate":false},"*route_profiles":{"remote":false,"replicate":false},"*statqueue_profiles":{"remote":false,"replicate":false},"*statqueues":{"remote":false,"replicate":false},"*threshold_profiles":{"remote":false,"replicate":false},"*thresholds":{"remote":false,"replicate":false}},"opts":{"mongoQueryTimeout":"10s","redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"remote_conn_id":"","remote_conns":[],"replication_cache":"","replication_conns":[],"replication_filtered":false},"diameter_agent":{"asr_template":"","concurrent_requests":-1,"dictionaries_path":"/usr/share/cgrates/diameter/dict/","enabled":false,"forced_disconnect":"*none","listen":"127.0.0.1:3868","listen_net":"tcp","origin_host":"CGR-DA","origin_realm":"cgrates.org","product_name":"CGRateS","rar_template":"","request_processors":[],"sessions_conns":["*birpc_internal"],"synced_conn_requests":false,"vendor_id":0},"dispatchers":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"suffix_indexed_fields":[]},"dns_agent":{"enabled":false,"listen":"127.0.0.1:2053","listen_net":"udp","request_processors":[],"sessions_conns":["*internal"],"timezone":""},"ees":{"attributes_conns":[],"cache":{"*file_csv":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"5s"}},"enabled":false,"exporters":[{"attempts":1,"attribute_context":"","attribute_ids":[],"export_path":"/var/spool/cgrates/ees","fields":[],"filters":[],"flags":[],"id":"*default","opts":{},"synchronous":false,"tenant":"","timezone":"","type":"*none"}]},"ers":{"enabled":false,"partial_cache_action":"*none","partial_cache_ttl":"1s","partial_path":"","readers":[{"cache_dump_fields":[],"concurrent_requests":1024,"fields":[{"mandatory":true,"path":"*cgreq.ToR","tag":"ToR","type":"*variable","value":"~*req.2"},{"mandatory":true,"path":"*cgreq.OriginID","tag":"OriginID","type":"*variable","value":"~*req.3"},{"mandatory":true,"path":"*cgreq.RequestType","tag":"RequestType","type":"*variable","value":"~*req.4"},{"mandatory":true,"path":"*cgreq.Tenant","tag":"Tenant","type":"*variable","value":"~*req.6"},{"mandatory":true,"path":"*cgreq.Category","tag":"Category","type":"*variable","value":"~*req.7"},{"mandatory":true,"path":"*cgreq.Account","tag":"Account","type":"*variable","value":"~*req.8"},{"mandatory":true,"path":"*cgreq.Subject","tag":"Subject","type":"*variable","value":"~*req.9"},{"mandatory":true,"path":"*cgreq.Destination","tag":"Destination","type":"*variable","value":"~*req.10"},{"mandatory":true,"path":"*cgreq.SetupTime","tag":"SetupTime","type":"*variable","value":"~*req.11"},{"mandatory":true,"path":"*cgreq.AnswerTime","tag":"AnswerTime","type":"*variable","value":"~*req.12"},{"mandatory":true,"path":"*cgreq.Usage","tag":"Usage","type":"*variable","value":"~*req.13"}],"filters":[],"flags":[],"id":"*default","opts":{"csvFieldSeparator":",","csvHeaderDefineChar":":","csvRowLength":0,"natsSubject":"cgrates_cdrs","partialOrderField":"~*req.AnswerTime","xmlRootPath":""},"partial_commit_fields":[],"processed_path":"/var/spool/cgrates/ers/out","run_delay":"0","source_path":"/var/spool/cgrates/ers/in","tenant":"","timezone":"","type":"*none"}],"sessions_conns":["*internal"]},"filters":{"admins_conns":[],"resources_conns":[],"stats_conns":[]},"freeswitch_agent":{"create_cdr":false,"empty_balance_ann_file":"","empty_balance_context":"","enabled":false,"event_socket_conns":[{"address":"127.0.0.1:8021","alias":"127.0.0.1:8021","password":"ClueCon","reconnects":5}],"extra_fields":[],"low_balance_ann_file":"","max_wait_connection":"2s","sessions_conns":["*birpc_internal"],"subscribe_park":true},"general":{"connect_attempts":5,"connect_timeout":"1s","dbdata_encoding":"*msgpack","default_caching":"*reload","default_category":"call","default_request_type":"*rated","default_tenant":"cgrates.org","default_timezone":"Local","digest_equal":":","digest_separator":",","failed_posts_dir":"/var/spool/cgrates/failed_posts","failed_posts_ttl":"5s","locking_timeout":"0","log_level":6,"logger":"*syslog","max_parallel_conns":100,"node_id":"ENGINE1","poster_attempts":3,"reconnects":-1,"reply_timeout":"2s","rounding_decimals":5,"rsr_separator":";","tpexport_dir":"/var/spool/cgrates/tpe"},"http":{"auth_users":{},"client_opts":{"dialFallbackDelay":"300ms","dialKeepAlive":"30s","dialTimeout":"30s","disableCompression":false,"disableKeepAlives":false,"expectContinueTimeout":"0","forceAttemptHttp2":true,"idleConnTimeout":"90s","maxConnsPerHost":0,"maxIdleConns":100,"maxIdleConnsPerHost":2,"responseHeaderTimeout":"0","skipTlsVerify":false,"tlsHandshakeTimeout":"10s"},"freeswitch_cdrs_url":"/freeswitch_json","http_cdrs":"/cdr_http","json_rpc_url":"/jsonrpc","registrars_url":"/registrar","use_basic_auth":false,"ws_url":"/ws"},"http_agent":[],"kamailio_agent":{"create_cdr":false,"enabled":false,"evapi_conns":[{"address":"127.0.0.1:8448","alias":"","reconnects":5}],"sessions_conns":["*birpc_internal"],"timezone":""},"listen":{"http":"127.0.0.1:2080","http_tls":"127.0.0.1:2280","rpc_gob":"127.0.0.1:2013","rpc_gob_tls":"127.0.0.1:2023","rpc_json":"127.0.0.1:2012","rpc_json_tls":"127.0.0.1:2022"},"loader":{"actions_conns":["*localhost"],"caches_conns":["*localhost"],"data_path":"./","disable_reverse":false,"field_separator":",","gapi_credentials":".gapi/credentials.json","gapi_token":".gapi/token.json","tpid":""},"loaders":[{"caches_conns":["*internal"],"data":[{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"Type","tag":"Type","type":"*variable","value":"~*req.2"},{"path":"Element","tag":"Element","type":"*variable","value":"~*req.3"},{"path":"Values","tag":"Values","type":"*variable","value":"~*req.4"}],"file_name":"Filters.csv","flags":null,"type":"*filters"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"TenantID","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ProfileID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"AttributeFilterIDs","tag":"AttributeFilterIDs","type":"*variable","value":"~*req.4"},{"path":"Path","tag":"Path","type":"*variable","value":"~*req.5"},{"path":"Type","tag":"Type","type":"*variable","value":"~*req.6"},{"path":"Value","tag":"Value","type":"*variable","value":"~*req.7"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.8"}],"file_name":"Attributes.csv","flags":null,"type":"*attributes"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"UsageTTL","tag":"TTL","type":"*variable","value":"~*req.4"},{"path":"Limit","tag":"Limit","type":"*variable","value":"~*req.5"},{"path":"AllocationMessage","tag":"AllocationMessage","type":"*variable","value":"~*req.6"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.7"},{"path":"Stored","tag":"Stored","type":"*variable","value":"~*req.8"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.9"}],"file_name":"Resources.csv","flags":null,"type":"*resources"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"QueueLength","tag":"QueueLength","type":"*variable","value":"~*req.4"},{"path":"TTL","tag":"TTL","type":"*variable","value":"~*req.5"},{"path":"MinItems","tag":"MinItems","type":"*variable","value":"~*req.6"},{"path":"MetricIDs","tag":"MetricIDs","type":"*variable","value":"~*req.7"},{"path":"MetricFilterIDs","tag":"MetricFilterIDs","type":"*variable","value":"~*req.8"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.9"},{"path":"Stored","tag":"Stored","type":"*variable","value":"~*req.10"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.11"}],"file_name":"Stats.csv","flags":null,"type":"*stats"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"MaxHits","tag":"MaxHits","type":"*variable","value":"~*req.4"},{"path":"MinHits","tag":"MinHits","type":"*variable","value":"~*req.5"},{"path":"MinSleep","tag":"MinSleep","type":"*variable","value":"~*req.6"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.7"},{"path":"ActionProfileIDs","tag":"ActionProfileIDs","type":"*variable","value":"~*req.8"},{"path":"Async","tag":"Async","type":"*variable","value":"~*req.9"}],"file_name":"Thresholds.csv","flags":null,"type":"*thresholds"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Sorting","tag":"Sorting","type":"*variable","value":"~*req.4"},{"path":"SortingParameters","tag":"SortingParameters","type":"*variable","value":"~*req.5"},{"path":"RouteID","tag":"RouteID","type":"*variable","value":"~*req.6"},{"path":"RouteFilterIDs","tag":"RouteFilterIDs","type":"*variable","value":"~*req.7"},{"path":"RouteAccountIDs","tag":"RouteAccountIDs","type":"*variable","value":"~*req.8"},{"path":"RouteRatingPlanIDs","tag":"RouteRatingPlanIDs","type":"*variable","value":"~*req.9"},{"path":"RouteResourceIDs","tag":"RouteResourceIDs","type":"*variable","value":"~*req.10"},{"path":"RouteStatIDs","tag":"RouteStatIDs","type":"*variable","value":"~*req.11"},{"path":"RouteWeight","tag":"RouteWeight","type":"*variable","value":"~*req.12"},{"path":"RouteBlocker","tag":"RouteBlocker","type":"*variable","value":"~*req.13"},{"path":"RouteParameters","tag":"RouteParameters","type":"*variable","value":"~*req.14"}],"file_name":"Routes.csv","flags":null,"type":"*routes"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"RunID","tag":"RunID","type":"*variable","value":"~*req.4"},{"path":"AttributeIDs","tag":"AttributeIDs","type":"*variable","value":"~*req.5"}],"file_name":"Chargers.csv","flags":null,"type":"*chargers"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Strategy","tag":"Strategy","type":"*variable","value":"~*req.4"},{"path":"StrategyParameters","tag":"StrategyParameters","type":"*variable","value":"~*req.5"},{"path":"ConnID","tag":"ConnID","type":"*variable","value":"~*req.6"},{"path":"ConnFilterIDs","tag":"ConnFilterIDs","type":"*variable","value":"~*req.7"},{"path":"ConnWeight","tag":"ConnWeight","type":"*variable","value":"~*req.8"},{"path":"ConnBlocker","tag":"ConnBlocker","type":"*variable","value":"~*req.9"},{"path":"ConnParameters","tag":"ConnParameters","type":"*variable","value":"~*req.10"}],"file_name":"DispatcherProfiles.csv","flags":null,"type":"*dispatchers"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"Address","tag":"Address","type":"*variable","value":"~*req.2"},{"path":"Transport","tag":"Transport","type":"*variable","value":"~*req.3"},{"path":"TLS","tag":"TLS","type":"*variable","value":"~*req.4"}],"file_name":"DispatcherHosts.csv","flags":null,"type":"*dispatcher_hosts"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"MinCost","tag":"MinCost","type":"*variable","value":"~*req.4"},{"path":"MaxCost","tag":"MaxCost","type":"*variable","value":"~*req.5"},{"path":"MaxCostStrategy","tag":"MaxCostStrategy","type":"*variable","value":"~*req.6"},{"path":"RateID","tag":"RateID","type":"*variable","value":"~*req.7"},{"path":"RateFilterIDs","tag":"RateFilterIDs","type":"*variable","value":"~*req.8"},{"path":"RateActivationTimes","tag":"RateActivationTimes","type":"*variable","value":"~*req.9"},{"path":"RateWeight","tag":"RateWeight","type":"*variable","value":"~*req.10"},{"path":"RateBlocker","tag":"RateBlocker","type":"*variable","value":"~*req.11"},{"path":"RateIntervalStart","tag":"RateIntervalStart","type":"*variable","value":"~*req.12"},{"path":"RateFixedFee","tag":"RateFixedFee","type":"*variable","value":"~*req.13"},{"path":"RateRecurrentFee","tag":"RateRecurrentFee","type":"*variable","value":"~*req.14"},{"path":"RateUnit","tag":"RateUnit","type":"*variable","value":"~*req.15"},{"path":"RateIncrement","tag":"RateIncrement","type":"*variable","value":"~*req.16"}],"file_name":"RateProfiles.csv","flags":null,"type":"*rate_profiles"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Schedule","tag":"Schedule","type":"*variable","value":"~*req.4"},{"path":"TargetType","tag":"TargetType","type":"*variable","value":"~*req.5"},{"path":"TargetIDs","tag":"TargetIDs","type":"*variable","value":"~*req.6"},{"path":"ActionID","tag":"ActionID","type":"*variable","value":"~*req.7"},{"path":"ActionFilterIDs","tag":"ActionFilterIDs","type":"*variable","value":"~*req.8"},{"path":"ActionBlocker","tag":"ActionBlocker","type":"*variable","value":"~*req.9"},{"path":"ActionTTL","tag":"ActionTTL","type":"*variable","value":"~*req.10"},{"path":"ActionType","tag":"ActionType","type":"*variable","value":"~*req.11"},{"path":"ActionOpts","tag":"ActionOpts","type":"*variable","value":"~*req.12"},{"path":"ActionPath","tag":"ActionPath","type":"*variable","value":"~*req.13"},{"path":"ActionValue","tag":"ActionValue","type":"*variable","value":"~*req.14"}],"file_name":"ActionProfiles.csv","flags":null,"type":"*action_profiles"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"BalanceID","tag":"BalanceID","type":"*variable","value":"~*req.4"},{"path":"BalanceFilterIDs","tag":"BalanceFilterIDs","type":"*variable","value":"~*req.5"},{"path":"BalanceWeight","tag":"BalanceWeight","type":"*variable","value":"~*req.6"},{"path":"BalanceBlocker","tag":"BalanceBlocker","type":"*variable","value":"~*req.7"},{"path":"BalanceType","tag":"BalanceType","type":"*variable","value":"~*req.8"},{"path":"BalanceOpts","tag":"BalanceOpts","type":"*variable","value":"~*req.9"},{"path":"BalanceCostIncrements","tag":"BalanceCostIncrements","type":"*variable","value":"~*req.10"},{"path":"BalanceAttributeIDs","tag":"BalanceAttributeIDs","type":"*variable","value":"~*req.11"},{"path":"BalanceRateProfileIDs","tag":"BalanceRateProfileIDs","type":"*variable","value":"~*req.12"},{"path":"BalanceUnitFactors","tag":"BalanceUnitFactors","type":"*variable","value":"~*req.13"},{"path":"BalanceUnits","tag":"BalanceUnits","type":"*variable","value":"~*req.14"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.15"}],"file_name":"Accounts.csv","flags":null,"type":"*accounts"}],"dry_run":false,"enabled":false,"field_separator":",","id":"*default","lock_filename":".cgr.lck","run_delay":"0","tenant":"","tp_in_dir":"/var/spool/cgrates/loader/in","tp_out_dir":"/var/spool/cgrates/loader/out"}],"migrator":{"out_datadb_encoding":"msgpack","out_datadb_host":"127.0.0.1","out_datadb_name":"10","out_datadb_opts":{"redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"out_datadb_password":"","out_datadb_port":"6379","out_datadb_type":"redis","out_datadb_user":"cgrates","out_stordb_host":"127.0.0.1","out_stordb_name":"cgrates","out_stordb_opts":{},"out_stordb_password":"","out_stordb_port":"3306","out_stordb_type":"mysql","out_stordb_user":"cgrates","users_filters":[]},"radius_agent":{"client_dictionaries":{"*default":"/usr/share/cgrates/radius/dict/"},"client_secrets":{"*default":"CGRateS.org"},"enabled":false,"listen_acct":"127.0.0.1:1813","listen_auth":"127.0.0.1:1812","listen_net":"udp","request_processors":[],"sessions_conns":["*internal"]},"rates":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"rate_indexed_selects":true,"rate_nested_fields":false,"rate_prefix_indexed_fields":[],"rate_suffix_indexed_fields":[],"suffix_indexed_fields":[],"verbosity":1000},"registrarc":{"dispatchers":{"hosts":[],"refresh_interval":"5m0s","registrars_conns":[]},"rpc":{"hosts":[],"refresh_interval":"5m0s","registrars_conns":[]}},"resources":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","suffix_indexed_fields":[],"thresholds_conns":[]},"routes":{"attributes_conns":[],"default_ratio":1,"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"resources_conns":[],"stats_conns":[],"suffix_indexed_fields":[]},"rpc_conns":{"*bijson_localhost":{"conns":[{"address":"127.0.0.1:2014","transport":"*birpc_json"}],"poolSize":0,"strategy":"*first"},"*birpc_internal":{"conns":[{"address":"*birpc_internal","transport":""}],"poolSize":0,"strategy":"*first"},"*internal":{"conns":[{"address":"*internal","transport":""}],"poolSize":0,"strategy":"*first"},"*localhost":{"conns":[{"address":"127.0.0.1:2012","transport":"*json"}],"poolSize":0,"strategy":"*first"}},"sessions":{"actions_conns":[],"alterable_fields":[],"attributes_conns":[],"cdrs_conns":[],"channel_sync_interval":"0","chargers_conns":[],"client_protocol":1,"debit_interval":"0","default_usage":{"*any":"3h0m0s","*data":"1048576","*sms":"1","*voice":"3h0m0s"},"enabled":false,"listen_bigob":"","listen_bijson":"127.0.0.1:2014","min_dur_low_balance":"0","replication_conns":[],"resources_conns":[],"routes_conns":[],"session_indexes":[],"session_ttl":"0","stats_conns":[],"stir":{"allowed_attest":["*any"],"default_attest":"A","payload_maxduration":"-1","privatekey_path":"","publickey_path":""},"store_session_costs":false,"terminate_attempts":5,"thresholds_conns":[]},"sip_agent":{"enabled":false,"listen":"127.0.0.1:5060","listen_net":"udp","request_processors":[],"retransmission_timer":"1s","sessions_conns":["*internal"],"timezone":""},"stats":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","store_uncompressed_limit":0,"suffix_indexed_fields":[],"thresholds_conns":[]},"stor_db":{"db_host":"127.0.0.1","db_name":"cgrates","db_password":"","db_port":3306,"db_type":"*mysql","db_user":"cgrates","items":{"*cdrs":{"remote":false,"replicate":false},"*session_costs":{"remote":false,"replicate":false},"*tp_accounts":{"remote":false,"replicate":false},"*tp_action_profiles":{"remote":false,"replicate":false},"*tp_attributes":{"remote":false,"replicate":false},"*tp_chargers":{"remote":false,"replicate":false},"*tp_dispatcher_hosts":{"remote":false,"replicate":false},"*tp_dispatcher_profiles":{"remote":false,"replicate":false},"*tp_filters":{"remote":false,"replicate":false},"*tp_rate_profiles":{"remote":false,"replicate":false},"*tp_resources":{"remote":false,"replicate":false},"*tp_routes":{"remote":false,"replicate":false},"*tp_stats":{"remote":false,"replicate":false},"*tp_thresholds":{"remote":false,"replicate":false},"*versions":{"remote":false,"replicate":false}},"opts":{"mongoQueryTimeout":"10s","mysqlLocation":"Local","sqlConnMaxLifetime":0,"sqlMaxIdleConns":10,"sqlMaxOpenConns":100,"sslMode":"disable"},"prefix_indexed_fields":[],"remote_conns":null,"replication_conns":null,"string_indexed_fields":[]},"suretax":{"bill_to_number":"","business_unit":"","client_number":"","client_tracking":"~*req.CGRID","customer_number":"~*req.Subject","include_local_cost":false,"orig_number":"~*req.Subject","p2pplus4":"","p2pzipcode":"","plus4":"","regulatory_code":"03","response_group":"03","response_type":"D4","return_file_code":"0","sales_type_code":"R","tax_exemption_code_list":"","tax_included":"0","tax_situs_rule":"04","term_number":"~*req.Destination","timezone":"UTC","trans_type_code":"010101","unit_type":"00","units":"1","url":"","validation_key":"","zipcode":""},"templates":{"*asr":[{"mandatory":true,"path":"*diamreq.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*diamreq.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*req.Destination-Host"},{"mandatory":true,"path":"*diamreq.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*req.Destination-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Realm","tag":"DestinationRealm","type":"*variable","value":"~*req.Origin-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Host","tag":"DestinationHost","type":"*variable","value":"~*req.Origin-Host"},{"mandatory":true,"path":"*diamreq.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"}],"*cca":[{"mandatory":true,"path":"*rep.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"path":"*rep.Result-Code","tag":"ResultCode","type":"*constant","value":"2001"},{"mandatory":true,"path":"*rep.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*vars.OriginHost"},{"mandatory":true,"path":"*rep.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*vars.OriginRealm"},{"mandatory":true,"path":"*rep.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"},{"mandatory":true,"path":"*rep.CC-Request-Type","tag":"CCRequestType","type":"*variable","value":"~*req.CC-Request-Type"},{"mandatory":true,"path":"*rep.CC-Request-Number","tag":"CCRequestNumber","type":"*variable","value":"~*req.CC-Request-Number"}],"*cdrLog":[{"mandatory":true,"path":"*cdr.ToR","tag":"ToR","type":"*variable","value":"~*req.BalanceType"},{"mandatory":true,"path":"*cdr.OriginHost","tag":"OriginHost","type":"*constant","value":"127.0.0.1"},{"mandatory":true,"path":"*cdr.RequestType","tag":"RequestType","type":"*constant","value":"*none"},{"mandatory":true,"path":"*cdr.Tenant","tag":"Tenant","type":"*variable","value":"~*req.Tenant"},{"mandatory":true,"path":"*cdr.Account","tag":"Account","type":"*variable","value":"~*req.Account"},{"mandatory":true,"path":"*cdr.Subject","tag":"Subject","type":"*variable","value":"~*req.Account"},{"mandatory":true,"path":"*cdr.Cost","tag":"Cost","type":"*variable","value":"~*req.Cost"},{"mandatory":true,"path":"*cdr.Source","tag":"Source","type":"*constant","value":"*cdrLog"},{"mandatory":true,"path":"*cdr.Usage","tag":"Usage","type":"*constant","value":"1"},{"mandatory":true,"path":"*cdr.RunID","tag":"RunID","type":"*variable","value":"~*req.ActionType"},{"mandatory":true,"path":"*cdr.SetupTime","tag":"SetupTime","type":"*constant","value":"*now"},{"mandatory":true,"path":"*cdr.AnswerTime","tag":"AnswerTime","type":"*constant","value":"*now"},{"mandatory":true,"path":"*cdr.PreRated","tag":"PreRated","type":"*constant","value":"true"}],"*err":[{"mandatory":true,"path":"*rep.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*rep.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*vars.OriginHost"},{"mandatory":true,"path":"*rep.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*vars.OriginRealm"}],"*errSip":[{"mandatory":true,"path":"*rep.Request","tag":"Request","type":"*constant","value":"SIP/2.0 500 Internal Server Error"}],"*rar":[{"mandatory":true,"path":"*diamreq.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*diamreq.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*req.Destination-Host"},{"mandatory":true,"path":"*diamreq.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*req.Destination-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Realm","tag":"DestinationRealm","type":"*variable","value":"~*req.Origin-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Host","tag":"DestinationHost","type":"*variable","value":"~*req.Origin-Host"},{"mandatory":true,"path":"*diamreq.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"},{"path":"*diamreq.Re-Auth-Request-Type","tag":"ReAuthRequestType","type":"*constant","value":"0"}]},"thresholds":{"actions_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","suffix_indexed_fields":[]},"tls":{"ca_certificate":"","client_certificate":"","client_key":"","server_certificate":"","server_key":"","server_name":"","server_policy":4}}` + expected := `{"accounts":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"max_iterations":1000,"max_usage":"259200000000000","nested_fields":false,"prefix_indexed_fields":[],"rates_conns":[],"suffix_indexed_fields":[],"thresholds_conns":[]},"actions":{"accounts_conns":[],"cdrs_conns":[],"dynaprepaid_actionprofile":[],"ees_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"stats_conns":[],"suffix_indexed_fields":[],"tenants":[],"thresholds_conns":[]},"admins":{"actions_conns":[],"attributes_conns":[],"caches_conns":["*internal"],"ees_conns":[],"enabled":false},"analyzers":{"cleanup_interval":"1h0m0s","db_path":"/var/spool/cgrates/analyzers","enabled":false,"index_type":"*scorch","ttl":"24h0m0s"},"apiban":{"enabled":false,"keys":[]},"asterisk_agent":{"asterisk_conns":[{"address":"127.0.0.1:8088","alias":"","connect_attempts":3,"password":"CGRateS.org","reconnects":5,"user":"cgrates"}],"create_cdr":false,"enabled":false,"sessions_conns":["*birpc_internal"]},"attributes":{"admins_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"process_runs":1,"resources_conns":[],"stats_conns":[],"suffix_indexed_fields":[]},"caches":{"partitions":{"*account_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*accounts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*action_profile_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*action_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*apiban":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"2m0s"},"*attribute_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*attribute_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*caps_events":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*cdr_ids":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10m0s"},"*cdrs":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*charger_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*charger_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*closed_sessions":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10s"},"*diameter_messages":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*dispatcher_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_hosts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_loads":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatcher_routes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*dispatchers":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*event_charges":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"10s"},"*event_resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*filters":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*load_ids":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_profile_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rate_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*replication_hosts":{"limit":0,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resource_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resource_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*reverse_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*route_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*route_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rpc_connections":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*rpc_responses":{"limit":0,"precache":false,"replicate":false,"static_ttl":false,"ttl":"2s"},"*session_costs":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*stat_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*statqueue_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*statqueues":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*stir":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*threshold_filter_indexes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*threshold_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*thresholds":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_accounts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_action_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_attributes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_chargers":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_dispatcher_hosts":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_dispatcher_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_filters":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_rate_profiles":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_resources":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_routes":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_stats":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*tp_thresholds":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""},"*uch":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"3h0m0s"},"*versions":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":""}},"replication_conns":[]},"cdrs":{"actions_conns":[],"attributes_conns":[],"chargers_conns":[],"ees_conns":[],"enabled":false,"extra_fields":[],"online_cdr_exports":[],"session_cost_retries":5,"stats_conns":[],"store_cdrs":true,"thresholds_conns":[]},"chargers":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"suffix_indexed_fields":[]},"config_db":{"db_host":"","db_name":"","db_password":"","db_port":0,"db_type":"*internal","db_user":"","items":{},"opts":{"mongoQueryTimeout":"10s","redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"remote_conn_id":"","remote_conns":null,"replication_cache":"","replication_conns":null,"replication_filtered":false},"configs":{"enabled":false,"root_dir":"/var/spool/cgrates/configs","url":"/configs/"},"cores":{"caps":0,"caps_stats_interval":"0","caps_strategy":"*busy","shutdown_timeout":"1s"},"data_db":{"db_host":"127.0.0.1","db_name":"10","db_password":"","db_port":6379,"db_type":"*redis","db_user":"cgrates","items":{"*accounts":{"remote":false,"replicate":false},"*action_profiles":{"remote":false,"replicate":false},"*actions":{"remote":false,"replicate":false},"*attribute_profiles":{"remote":false,"replicate":false},"*charger_profiles":{"remote":false,"replicate":false},"*dispatcher_hosts":{"remote":false,"replicate":false},"*dispatcher_profiles":{"remote":false,"replicate":false},"*filters":{"remote":false,"replicate":false},"*indexes":{"remote":false,"replicate":false},"*load_ids":{"remote":false,"replicate":false},"*rate_profiles":{"remote":false,"replicate":false},"*resource_profiles":{"remote":false,"replicate":false},"*resources":{"remote":false,"replicate":false},"*route_profiles":{"remote":false,"replicate":false},"*statqueue_profiles":{"remote":false,"replicate":false},"*statqueues":{"remote":false,"replicate":false},"*threshold_profiles":{"remote":false,"replicate":false},"*thresholds":{"remote":false,"replicate":false}},"opts":{"mongoQueryTimeout":"10s","redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"remote_conn_id":"","remote_conns":[],"replication_cache":"","replication_conns":[],"replication_filtered":false},"diameter_agent":{"asr_template":"","concurrent_requests":-1,"dictionaries_path":"/usr/share/cgrates/diameter/dict/","enabled":false,"forced_disconnect":"*none","listen":"127.0.0.1:3868","listen_net":"tcp","origin_host":"CGR-DA","origin_realm":"cgrates.org","product_name":"CGRateS","rar_template":"","request_processors":[],"sessions_conns":["*birpc_internal"],"synced_conn_requests":false,"vendor_id":0},"dispatchers":{"attributes_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"suffix_indexed_fields":[]},"dns_agent":{"enabled":false,"listen":"127.0.0.1:2053","listen_net":"udp","request_processors":[],"sessions_conns":["*internal"],"timezone":""},"ees":{"attributes_conns":[],"cache":{"*fileCSV":{"limit":-1,"precache":false,"replicate":false,"static_ttl":false,"ttl":"5s"}},"enabled":false,"exporters":[{"attempts":1,"attribute_context":"","attribute_ids":[],"export_path":"/var/spool/cgrates/ees","fields":[],"filters":[],"flags":[],"id":"*default","opts":{},"synchronous":false,"tenant":"","timezone":"","type":"*none"}]},"ers":{"enabled":false,"partial_cache_action":"*none","partial_cache_ttl":"1s","partial_path":"","readers":[{"cache_dump_fields":[],"concurrent_requests":1024,"fields":[{"mandatory":true,"path":"*cgreq.ToR","tag":"ToR","type":"*variable","value":"~*req.2"},{"mandatory":true,"path":"*cgreq.OriginID","tag":"OriginID","type":"*variable","value":"~*req.3"},{"mandatory":true,"path":"*cgreq.RequestType","tag":"RequestType","type":"*variable","value":"~*req.4"},{"mandatory":true,"path":"*cgreq.Tenant","tag":"Tenant","type":"*variable","value":"~*req.6"},{"mandatory":true,"path":"*cgreq.Category","tag":"Category","type":"*variable","value":"~*req.7"},{"mandatory":true,"path":"*cgreq.Account","tag":"Account","type":"*variable","value":"~*req.8"},{"mandatory":true,"path":"*cgreq.Subject","tag":"Subject","type":"*variable","value":"~*req.9"},{"mandatory":true,"path":"*cgreq.Destination","tag":"Destination","type":"*variable","value":"~*req.10"},{"mandatory":true,"path":"*cgreq.SetupTime","tag":"SetupTime","type":"*variable","value":"~*req.11"},{"mandatory":true,"path":"*cgreq.AnswerTime","tag":"AnswerTime","type":"*variable","value":"~*req.12"},{"mandatory":true,"path":"*cgreq.Usage","tag":"Usage","type":"*variable","value":"~*req.13"}],"filters":[],"flags":[],"id":"*default","opts":{"csvFieldSeparator":",","csvHeaderDefineChar":":","csvRowLength":0,"natsSubject":"cgrates_cdrs","partialOrderField":"~*req.AnswerTime","xmlRootPath":""},"partial_commit_fields":[],"processed_path":"/var/spool/cgrates/ers/out","run_delay":"0","source_path":"/var/spool/cgrates/ers/in","tenant":"","timezone":"","type":"*none"}],"sessions_conns":["*internal"]},"filters":{"admins_conns":[],"resources_conns":[],"stats_conns":[]},"freeswitch_agent":{"create_cdr":false,"empty_balance_ann_file":"","empty_balance_context":"","enabled":false,"event_socket_conns":[{"address":"127.0.0.1:8021","alias":"127.0.0.1:8021","password":"ClueCon","reconnects":5}],"extra_fields":[],"low_balance_ann_file":"","max_wait_connection":"2s","sessions_conns":["*birpc_internal"],"subscribe_park":true},"general":{"connect_attempts":5,"connect_timeout":"1s","dbdata_encoding":"*msgpack","default_caching":"*reload","default_category":"call","default_request_type":"*rated","default_tenant":"cgrates.org","default_timezone":"Local","digest_equal":":","digest_separator":",","failed_posts_dir":"/var/spool/cgrates/failed_posts","failed_posts_ttl":"5s","locking_timeout":"0","log_level":6,"logger":"*syslog","max_parallel_conns":100,"node_id":"ENGINE1","poster_attempts":3,"reconnects":-1,"reply_timeout":"2s","rounding_decimals":5,"rsr_separator":";","tpexport_dir":"/var/spool/cgrates/tpe"},"http":{"auth_users":{},"client_opts":{"dialFallbackDelay":"300ms","dialKeepAlive":"30s","dialTimeout":"30s","disableCompression":false,"disableKeepAlives":false,"expectContinueTimeout":"0","forceAttemptHttp2":true,"idleConnTimeout":"90s","maxConnsPerHost":0,"maxIdleConns":100,"maxIdleConnsPerHost":2,"responseHeaderTimeout":"0","skipTlsVerify":false,"tlsHandshakeTimeout":"10s"},"freeswitch_cdrs_url":"/freeswitch_json","http_cdrs":"/cdr_http","json_rpc_url":"/jsonrpc","registrars_url":"/registrar","use_basic_auth":false,"ws_url":"/ws"},"http_agent":[],"kamailio_agent":{"create_cdr":false,"enabled":false,"evapi_conns":[{"address":"127.0.0.1:8448","alias":"","reconnects":5}],"sessions_conns":["*birpc_internal"],"timezone":""},"listen":{"http":"127.0.0.1:2080","http_tls":"127.0.0.1:2280","rpc_gob":"127.0.0.1:2013","rpc_gob_tls":"127.0.0.1:2023","rpc_json":"127.0.0.1:2012","rpc_json_tls":"127.0.0.1:2022"},"loader":{"actions_conns":["*localhost"],"caches_conns":["*localhost"],"data_path":"./","disable_reverse":false,"field_separator":",","gapi_credentials":".gapi/credentials.json","gapi_token":".gapi/token.json","tpid":""},"loaders":[{"caches_conns":["*internal"],"data":[{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"Type","tag":"Type","type":"*variable","value":"~*req.2"},{"path":"Element","tag":"Element","type":"*variable","value":"~*req.3"},{"path":"Values","tag":"Values","type":"*variable","value":"~*req.4"}],"file_name":"Filters.csv","flags":null,"type":"*filters"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"TenantID","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ProfileID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"AttributeFilterIDs","tag":"AttributeFilterIDs","type":"*variable","value":"~*req.4"},{"path":"Path","tag":"Path","type":"*variable","value":"~*req.5"},{"path":"Type","tag":"Type","type":"*variable","value":"~*req.6"},{"path":"Value","tag":"Value","type":"*variable","value":"~*req.7"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.8"}],"file_name":"Attributes.csv","flags":null,"type":"*attributes"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"UsageTTL","tag":"TTL","type":"*variable","value":"~*req.4"},{"path":"Limit","tag":"Limit","type":"*variable","value":"~*req.5"},{"path":"AllocationMessage","tag":"AllocationMessage","type":"*variable","value":"~*req.6"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.7"},{"path":"Stored","tag":"Stored","type":"*variable","value":"~*req.8"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.9"}],"file_name":"Resources.csv","flags":null,"type":"*resources"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"QueueLength","tag":"QueueLength","type":"*variable","value":"~*req.4"},{"path":"TTL","tag":"TTL","type":"*variable","value":"~*req.5"},{"path":"MinItems","tag":"MinItems","type":"*variable","value":"~*req.6"},{"path":"MetricIDs","tag":"MetricIDs","type":"*variable","value":"~*req.7"},{"path":"MetricFilterIDs","tag":"MetricFilterIDs","type":"*variable","value":"~*req.8"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.9"},{"path":"Stored","tag":"Stored","type":"*variable","value":"~*req.10"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.11"}],"file_name":"Stats.csv","flags":null,"type":"*stats"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"MaxHits","tag":"MaxHits","type":"*variable","value":"~*req.4"},{"path":"MinHits","tag":"MinHits","type":"*variable","value":"~*req.5"},{"path":"MinSleep","tag":"MinSleep","type":"*variable","value":"~*req.6"},{"path":"Blocker","tag":"Blocker","type":"*variable","value":"~*req.7"},{"path":"ActionProfileIDs","tag":"ActionProfileIDs","type":"*variable","value":"~*req.8"},{"path":"Async","tag":"Async","type":"*variable","value":"~*req.9"}],"file_name":"Thresholds.csv","flags":null,"type":"*thresholds"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Sorting","tag":"Sorting","type":"*variable","value":"~*req.4"},{"path":"SortingParameters","tag":"SortingParameters","type":"*variable","value":"~*req.5"},{"path":"RouteID","tag":"RouteID","type":"*variable","value":"~*req.6"},{"path":"RouteFilterIDs","tag":"RouteFilterIDs","type":"*variable","value":"~*req.7"},{"path":"RouteAccountIDs","tag":"RouteAccountIDs","type":"*variable","value":"~*req.8"},{"path":"RouteRatingPlanIDs","tag":"RouteRatingPlanIDs","type":"*variable","value":"~*req.9"},{"path":"RouteResourceIDs","tag":"RouteResourceIDs","type":"*variable","value":"~*req.10"},{"path":"RouteStatIDs","tag":"RouteStatIDs","type":"*variable","value":"~*req.11"},{"path":"RouteWeight","tag":"RouteWeight","type":"*variable","value":"~*req.12"},{"path":"RouteBlocker","tag":"RouteBlocker","type":"*variable","value":"~*req.13"},{"path":"RouteParameters","tag":"RouteParameters","type":"*variable","value":"~*req.14"}],"file_name":"Routes.csv","flags":null,"type":"*routes"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"RunID","tag":"RunID","type":"*variable","value":"~*req.4"},{"path":"AttributeIDs","tag":"AttributeIDs","type":"*variable","value":"~*req.5"}],"file_name":"Chargers.csv","flags":null,"type":"*chargers"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Strategy","tag":"Strategy","type":"*variable","value":"~*req.4"},{"path":"StrategyParameters","tag":"StrategyParameters","type":"*variable","value":"~*req.5"},{"path":"ConnID","tag":"ConnID","type":"*variable","value":"~*req.6"},{"path":"ConnFilterIDs","tag":"ConnFilterIDs","type":"*variable","value":"~*req.7"},{"path":"ConnWeight","tag":"ConnWeight","type":"*variable","value":"~*req.8"},{"path":"ConnBlocker","tag":"ConnBlocker","type":"*variable","value":"~*req.9"},{"path":"ConnParameters","tag":"ConnParameters","type":"*variable","value":"~*req.10"}],"file_name":"DispatcherProfiles.csv","flags":null,"type":"*dispatchers"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"Address","tag":"Address","type":"*variable","value":"~*req.2"},{"path":"Transport","tag":"Transport","type":"*variable","value":"~*req.3"},{"path":"TLS","tag":"TLS","type":"*variable","value":"~*req.4"}],"file_name":"DispatcherHosts.csv","flags":null,"type":"*dispatcher_hosts"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"MinCost","tag":"MinCost","type":"*variable","value":"~*req.4"},{"path":"MaxCost","tag":"MaxCost","type":"*variable","value":"~*req.5"},{"path":"MaxCostStrategy","tag":"MaxCostStrategy","type":"*variable","value":"~*req.6"},{"path":"RateID","tag":"RateID","type":"*variable","value":"~*req.7"},{"path":"RateFilterIDs","tag":"RateFilterIDs","type":"*variable","value":"~*req.8"},{"path":"RateActivationTimes","tag":"RateActivationTimes","type":"*variable","value":"~*req.9"},{"path":"RateWeight","tag":"RateWeight","type":"*variable","value":"~*req.10"},{"path":"RateBlocker","tag":"RateBlocker","type":"*variable","value":"~*req.11"},{"path":"RateIntervalStart","tag":"RateIntervalStart","type":"*variable","value":"~*req.12"},{"path":"RateFixedFee","tag":"RateFixedFee","type":"*variable","value":"~*req.13"},{"path":"RateRecurrentFee","tag":"RateRecurrentFee","type":"*variable","value":"~*req.14"},{"path":"RateUnit","tag":"RateUnit","type":"*variable","value":"~*req.15"},{"path":"RateIncrement","tag":"RateIncrement","type":"*variable","value":"~*req.16"}],"file_name":"RateProfiles.csv","flags":null,"type":"*rate_profiles"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"Schedule","tag":"Schedule","type":"*variable","value":"~*req.4"},{"path":"TargetType","tag":"TargetType","type":"*variable","value":"~*req.5"},{"path":"TargetIDs","tag":"TargetIDs","type":"*variable","value":"~*req.6"},{"path":"ActionID","tag":"ActionID","type":"*variable","value":"~*req.7"},{"path":"ActionFilterIDs","tag":"ActionFilterIDs","type":"*variable","value":"~*req.8"},{"path":"ActionBlocker","tag":"ActionBlocker","type":"*variable","value":"~*req.9"},{"path":"ActionTTL","tag":"ActionTTL","type":"*variable","value":"~*req.10"},{"path":"ActionType","tag":"ActionType","type":"*variable","value":"~*req.11"},{"path":"ActionOpts","tag":"ActionOpts","type":"*variable","value":"~*req.12"},{"path":"ActionPath","tag":"ActionPath","type":"*variable","value":"~*req.13"},{"path":"ActionValue","tag":"ActionValue","type":"*variable","value":"~*req.14"}],"file_name":"ActionProfiles.csv","flags":null,"type":"*action_profiles"},{"fields":[{"mandatory":true,"path":"Tenant","tag":"Tenant","type":"*variable","value":"~*req.0"},{"mandatory":true,"path":"ID","tag":"ID","type":"*variable","value":"~*req.1"},{"path":"FilterIDs","tag":"FilterIDs","type":"*variable","value":"~*req.2"},{"path":"Weight","tag":"Weight","type":"*variable","value":"~*req.3"},{"path":"BalanceID","tag":"BalanceID","type":"*variable","value":"~*req.4"},{"path":"BalanceFilterIDs","tag":"BalanceFilterIDs","type":"*variable","value":"~*req.5"},{"path":"BalanceWeight","tag":"BalanceWeight","type":"*variable","value":"~*req.6"},{"path":"BalanceBlocker","tag":"BalanceBlocker","type":"*variable","value":"~*req.7"},{"path":"BalanceType","tag":"BalanceType","type":"*variable","value":"~*req.8"},{"path":"BalanceOpts","tag":"BalanceOpts","type":"*variable","value":"~*req.9"},{"path":"BalanceCostIncrements","tag":"BalanceCostIncrements","type":"*variable","value":"~*req.10"},{"path":"BalanceAttributeIDs","tag":"BalanceAttributeIDs","type":"*variable","value":"~*req.11"},{"path":"BalanceRateProfileIDs","tag":"BalanceRateProfileIDs","type":"*variable","value":"~*req.12"},{"path":"BalanceUnitFactors","tag":"BalanceUnitFactors","type":"*variable","value":"~*req.13"},{"path":"BalanceUnits","tag":"BalanceUnits","type":"*variable","value":"~*req.14"},{"path":"ThresholdIDs","tag":"ThresholdIDs","type":"*variable","value":"~*req.15"}],"file_name":"Accounts.csv","flags":null,"type":"*accounts"}],"dry_run":false,"enabled":false,"field_separator":",","id":"*default","lock_filename":".cgr.lck","run_delay":"0","tenant":"","tp_in_dir":"/var/spool/cgrates/loader/in","tp_out_dir":"/var/spool/cgrates/loader/out"}],"migrator":{"out_datadb_encoding":"msgpack","out_datadb_host":"127.0.0.1","out_datadb_name":"10","out_datadb_opts":{"redisCACertificate":"","redisClientCertificate":"","redisClientKey":"","redisCluster":false,"redisClusterOndownDelay":"0","redisClusterSync":"5s","redisSentinel":"","redisTLS":false},"out_datadb_password":"","out_datadb_port":"6379","out_datadb_type":"redis","out_datadb_user":"cgrates","out_stordb_host":"127.0.0.1","out_stordb_name":"cgrates","out_stordb_opts":{},"out_stordb_password":"","out_stordb_port":"3306","out_stordb_type":"mysql","out_stordb_user":"cgrates","users_filters":[]},"radius_agent":{"client_dictionaries":{"*default":"/usr/share/cgrates/radius/dict/"},"client_secrets":{"*default":"CGRateS.org"},"enabled":false,"listen_acct":"127.0.0.1:1813","listen_auth":"127.0.0.1:1812","listen_net":"udp","request_processors":[],"sessions_conns":["*internal"]},"rates":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"rate_indexed_selects":true,"rate_nested_fields":false,"rate_prefix_indexed_fields":[],"rate_suffix_indexed_fields":[],"suffix_indexed_fields":[],"verbosity":1000},"registrarc":{"dispatchers":{"hosts":[],"refresh_interval":"5m0s","registrars_conns":[]},"rpc":{"hosts":[],"refresh_interval":"5m0s","registrars_conns":[]}},"resources":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","suffix_indexed_fields":[],"thresholds_conns":[]},"routes":{"attributes_conns":[],"default_ratio":1,"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"resources_conns":[],"stats_conns":[],"suffix_indexed_fields":[]},"rpc_conns":{"*bijson_localhost":{"conns":[{"address":"127.0.0.1:2014","transport":"*birpc_json"}],"poolSize":0,"strategy":"*first"},"*birpc_internal":{"conns":[{"address":"*birpc_internal","transport":""}],"poolSize":0,"strategy":"*first"},"*internal":{"conns":[{"address":"*internal","transport":""}],"poolSize":0,"strategy":"*first"},"*localhost":{"conns":[{"address":"127.0.0.1:2012","transport":"*json"}],"poolSize":0,"strategy":"*first"}},"sessions":{"actions_conns":[],"alterable_fields":[],"attributes_conns":[],"cdrs_conns":[],"channel_sync_interval":"0","chargers_conns":[],"client_protocol":1,"debit_interval":"0","default_usage":{"*any":"3h0m0s","*data":"1048576","*sms":"1","*voice":"3h0m0s"},"enabled":false,"listen_bigob":"","listen_bijson":"127.0.0.1:2014","min_dur_low_balance":"0","replication_conns":[],"resources_conns":[],"routes_conns":[],"session_indexes":[],"session_ttl":"0","stats_conns":[],"stir":{"allowed_attest":["*any"],"default_attest":"A","payload_maxduration":"-1","privatekey_path":"","publickey_path":""},"store_session_costs":false,"terminate_attempts":5,"thresholds_conns":[]},"sip_agent":{"enabled":false,"listen":"127.0.0.1:5060","listen_net":"udp","request_processors":[],"retransmission_timer":"1s","sessions_conns":["*internal"],"timezone":""},"stats":{"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","store_uncompressed_limit":0,"suffix_indexed_fields":[],"thresholds_conns":[]},"stor_db":{"db_host":"127.0.0.1","db_name":"cgrates","db_password":"","db_port":3306,"db_type":"*mysql","db_user":"cgrates","items":{"*cdrs":{"remote":false,"replicate":false},"*session_costs":{"remote":false,"replicate":false},"*tp_accounts":{"remote":false,"replicate":false},"*tp_action_profiles":{"remote":false,"replicate":false},"*tp_attributes":{"remote":false,"replicate":false},"*tp_chargers":{"remote":false,"replicate":false},"*tp_dispatcher_hosts":{"remote":false,"replicate":false},"*tp_dispatcher_profiles":{"remote":false,"replicate":false},"*tp_filters":{"remote":false,"replicate":false},"*tp_rate_profiles":{"remote":false,"replicate":false},"*tp_resources":{"remote":false,"replicate":false},"*tp_routes":{"remote":false,"replicate":false},"*tp_stats":{"remote":false,"replicate":false},"*tp_thresholds":{"remote":false,"replicate":false},"*versions":{"remote":false,"replicate":false}},"opts":{"mongoQueryTimeout":"10s","mysqlLocation":"Local","sqlConnMaxLifetime":0,"sqlMaxIdleConns":10,"sqlMaxOpenConns":100,"sslMode":"disable"},"prefix_indexed_fields":[],"remote_conns":null,"replication_conns":null,"string_indexed_fields":[]},"suretax":{"bill_to_number":"","business_unit":"","client_number":"","client_tracking":"~*req.CGRID","customer_number":"~*req.Subject","include_local_cost":false,"orig_number":"~*req.Subject","p2pplus4":"","p2pzipcode":"","plus4":"","regulatory_code":"03","response_group":"03","response_type":"D4","return_file_code":"0","sales_type_code":"R","tax_exemption_code_list":"","tax_included":"0","tax_situs_rule":"04","term_number":"~*req.Destination","timezone":"UTC","trans_type_code":"010101","unit_type":"00","units":"1","url":"","validation_key":"","zipcode":""},"templates":{"*asr":[{"mandatory":true,"path":"*diamreq.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*diamreq.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*req.Destination-Host"},{"mandatory":true,"path":"*diamreq.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*req.Destination-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Realm","tag":"DestinationRealm","type":"*variable","value":"~*req.Origin-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Host","tag":"DestinationHost","type":"*variable","value":"~*req.Origin-Host"},{"mandatory":true,"path":"*diamreq.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"}],"*cca":[{"mandatory":true,"path":"*rep.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"path":"*rep.Result-Code","tag":"ResultCode","type":"*constant","value":"2001"},{"mandatory":true,"path":"*rep.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*vars.OriginHost"},{"mandatory":true,"path":"*rep.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*vars.OriginRealm"},{"mandatory":true,"path":"*rep.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"},{"mandatory":true,"path":"*rep.CC-Request-Type","tag":"CCRequestType","type":"*variable","value":"~*req.CC-Request-Type"},{"mandatory":true,"path":"*rep.CC-Request-Number","tag":"CCRequestNumber","type":"*variable","value":"~*req.CC-Request-Number"}],"*cdrLog":[{"mandatory":true,"path":"*cdr.ToR","tag":"ToR","type":"*variable","value":"~*req.BalanceType"},{"mandatory":true,"path":"*cdr.OriginHost","tag":"OriginHost","type":"*constant","value":"127.0.0.1"},{"mandatory":true,"path":"*cdr.RequestType","tag":"RequestType","type":"*constant","value":"*none"},{"mandatory":true,"path":"*cdr.Tenant","tag":"Tenant","type":"*variable","value":"~*req.Tenant"},{"mandatory":true,"path":"*cdr.Account","tag":"Account","type":"*variable","value":"~*req.Account"},{"mandatory":true,"path":"*cdr.Subject","tag":"Subject","type":"*variable","value":"~*req.Account"},{"mandatory":true,"path":"*cdr.Cost","tag":"Cost","type":"*variable","value":"~*req.Cost"},{"mandatory":true,"path":"*cdr.Source","tag":"Source","type":"*constant","value":"*cdrLog"},{"mandatory":true,"path":"*cdr.Usage","tag":"Usage","type":"*constant","value":"1"},{"mandatory":true,"path":"*cdr.RunID","tag":"RunID","type":"*variable","value":"~*req.ActionType"},{"mandatory":true,"path":"*cdr.SetupTime","tag":"SetupTime","type":"*constant","value":"*now"},{"mandatory":true,"path":"*cdr.AnswerTime","tag":"AnswerTime","type":"*constant","value":"*now"},{"mandatory":true,"path":"*cdr.PreRated","tag":"PreRated","type":"*constant","value":"true"}],"*err":[{"mandatory":true,"path":"*rep.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*rep.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*vars.OriginHost"},{"mandatory":true,"path":"*rep.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*vars.OriginRealm"}],"*errSip":[{"mandatory":true,"path":"*rep.Request","tag":"Request","type":"*constant","value":"SIP/2.0 500 Internal Server Error"}],"*rar":[{"mandatory":true,"path":"*diamreq.Session-Id","tag":"SessionId","type":"*variable","value":"~*req.Session-Id"},{"mandatory":true,"path":"*diamreq.Origin-Host","tag":"OriginHost","type":"*variable","value":"~*req.Destination-Host"},{"mandatory":true,"path":"*diamreq.Origin-Realm","tag":"OriginRealm","type":"*variable","value":"~*req.Destination-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Realm","tag":"DestinationRealm","type":"*variable","value":"~*req.Origin-Realm"},{"mandatory":true,"path":"*diamreq.Destination-Host","tag":"DestinationHost","type":"*variable","value":"~*req.Origin-Host"},{"mandatory":true,"path":"*diamreq.Auth-Application-Id","tag":"AuthApplicationId","type":"*variable","value":"~*vars.*appid"},{"path":"*diamreq.Re-Auth-Request-Type","tag":"ReAuthRequestType","type":"*constant","value":"0"}]},"thresholds":{"actions_conns":[],"enabled":false,"indexed_selects":true,"nested_fields":false,"prefix_indexed_fields":[],"store_interval":"","suffix_indexed_fields":[]},"tls":{"ca_certificate":"","client_certificate":"","client_key":"","server_certificate":"","server_key":"","server_name":"","server_policy":4}}` cgrCfg, err := NewCGRConfigFromJSONStringWithDefaults(cfgJSON) if err != nil { t.Fatal(err) diff --git a/config/eescfg_test.go b/config/eescfg_test.go index 7751a718c..99dfa3731 100644 --- a/config/eescfg_test.go +++ b/config/eescfg_test.go @@ -32,7 +32,7 @@ func TestEESClone(t *testing.T) { "enabled": true, "attributes_conns":["*internal", "*conn1"], "cache": { - "*file_csv": {"limit": -2, "ttl": "3s", "static_ttl": true}, + "*fileCSV": {"limit": -2, "ttl": "3s", "static_ttl": true}, }, "exporters": [ { @@ -348,14 +348,14 @@ func TestEventExporterSameID(t *testing.T) { "exporters": [ { "id": "file_exporter1", - "type": "*file_csv", + "type": "*fileCSV", "fields":[ {"tag": "CustomTag1", "path": "*exp.CustomPath1", "type": "*variable", "value": "CustomValue1", "mandatory": true}, ], }, { "id": "file_exporter1", - "type": "*file_csv", + "type": "*fileCSV", "fields":[ {"tag": "CustomTag2", "path": "*exp.CustomPath2", "type": "*variable", "value": "CustomValue2", "mandatory": true}, ], @@ -384,7 +384,7 @@ func TestEEsCfgloadFromJsonCfgCase1(t *testing.T) { Exporters: &[]*EventExporterJsonCfg{ { Id: utils.StringPointer("CSVExporter"), - Type: utils.StringPointer("*file_csv"), + Type: utils.StringPointer("*fileCSV"), Filters: &[]string{}, Attribute_ids: &[]string{}, Flags: &[]string{"*dryrun"}, @@ -433,7 +433,7 @@ func TestEEsCfgloadFromJsonCfgCase1(t *testing.T) { }, { ID: "CSVExporter", - Type: "*file_csv", + Type: "*fileCSV", Filters: []string{}, AttributeSIDs: []string{}, Flags: utils.FlagsWithParamsFromSlice([]string{utils.MetaDryRun}), @@ -492,7 +492,7 @@ func TestEEsCfgloadFromJsonCfgCase2(t *testing.T) { Exporters: &[]*EventExporterJsonCfg{ { Id: utils.StringPointer("CSVExporter"), - Type: utils.StringPointer("*file_csv"), + Type: utils.StringPointer("*fileCSV"), Filters: &[]string{}, Attribute_ids: &[]string{}, Flags: &[]string{"*dryrun"}, @@ -547,7 +547,7 @@ func TestEEsCfgloadFromJsonCfgCase2(t *testing.T) { }, { ID: "CSVExporter", - Type: "*file_csv", + Type: "*fileCSV", Filters: []string{}, AttributeSIDs: []string{}, Flags: utils.FlagsWithParamsFromSlice([]string{utils.MetaDryRun}), @@ -623,12 +623,12 @@ func TestEEsCfgAsMapInterface(t *testing.T) { "enabled": true, "attributes_conns":["*internal","*conn2"], "cache": { - "*file_csv": {"limit": -2, "precache": false, "replicate": false, "ttl": "1s", "static_ttl": false} + "*fileCSV": {"limit": -2, "precache": false, "replicate": false, "ttl": "1s", "static_ttl": false} }, "exporters": [ { "id": "CSVExporter", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV", "opts": { "kafkaGroupID": "test", @@ -663,7 +663,7 @@ func TestEEsCfgAsMapInterface(t *testing.T) { utils.ExportersCfg: []map[string]interface{}{ { utils.IDCfg: "CSVExporter", - utils.TypeCfg: "*file_csv", + utils.TypeCfg: "*fileCSV", utils.ExportPathCfg: "/tmp/testCSV", utils.OptsCfg: map[string]interface{}{ utils.KafkaGroupID: "test", diff --git a/config/erscfg_test.go b/config/erscfg_test.go index d0cadffe3..8dfdcf66b 100644 --- a/config/erscfg_test.go +++ b/config/erscfg_test.go @@ -34,7 +34,7 @@ func TestERSClone(t *testing.T) { { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -119,7 +119,7 @@ func TestERSClone(t *testing.T) { }, { ID: "file_reader1", - Type: "*file_csv", + Type: "*fileCSV", RunDelay: -1, ConcurrentReqs: 1024, SourcePath: "/tmp/ers/in", @@ -347,7 +347,7 @@ func TestERSLoadFromjsonCfg(t *testing.T) { { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "cache_dump_fields": [], @@ -893,7 +893,7 @@ func TestEventReaderSameID(t *testing.T) { { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "row_length" : 5, "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -905,7 +905,7 @@ func TestEventReaderSameID(t *testing.T) { { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "fields":[ @@ -935,7 +935,7 @@ func TestERsCfgAsMapInterfaceCase1(t *testing.T) { "id": "file_reader1", "run_delay": "-1", "tenant": "~*req.Destination1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", "cache_dump_fields": [], @@ -986,7 +986,7 @@ func TestERsCfgAsMapInterfaceCase1(t *testing.T) { utils.CacheDumpFieldsCfg: []map[string]interface{}{}, utils.PartialCommitFieldsCfg: []map[string]interface{}{}, utils.ConcurrentRequestsCfg: 1024, - utils.TypeCfg: "*file_csv", + utils.TypeCfg: "*fileCSV", utils.FieldsCfg: []map[string]interface{}{ {utils.MandatoryCfg: true, utils.PathCfg: "*cgreq.ToR", utils.TagCfg: "ToR", utils.TypeCfg: "*variable", utils.ValueCfg: "~*req.2"}, {utils.MandatoryCfg: true, utils.PathCfg: "*cgreq.OriginID", utils.TagCfg: "OriginID", utils.TypeCfg: "*variable", utils.ValueCfg: "~*req.3"}, @@ -1039,7 +1039,7 @@ func TestERSCfgAsMapInterfaceCase2(t *testing.T) { "id": "file_reader1", "run_delay": "10s", "tenant": "~*req.Destination1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["randomFlag"], "filters": ["randomFilter"], "source_path": "/tmp/ers/in", @@ -1115,7 +1115,7 @@ func TestERSCfgAsMapInterfaceCase2(t *testing.T) { }, }, utils.ConcurrentRequestsCfg: 1024, - utils.TypeCfg: "*file_csv", + utils.TypeCfg: "*fileCSV", utils.FieldsCfg: []map[string]interface{}{ {utils.MandatoryCfg: true, utils.PathCfg: "*cgreq.ToR", utils.TagCfg: "ToR", utils.TypeCfg: "*variable", utils.ValueCfg: "~*req.2"}, {utils.MandatoryCfg: true, utils.PathCfg: "*cgreq.OriginID", utils.TagCfg: "OriginID", utils.TypeCfg: "*variable", utils.ValueCfg: "~*req.3"}, diff --git a/data/conf/cgrates/cgrates.json b/data/conf/cgrates/cgrates.json index 12d24cc37..030c3aea5 100755 --- a/data/conf/cgrates/cgrates.json +++ b/data/conf/cgrates/cgrates.json @@ -13,7 +13,7 @@ // "rounding_decimals": 5, // system level precision for floats // "dbdata_encoding": "*msgpack", // encoding used to store object data in strings: <*msgpack|*json> // "tpexport_dir": "/var/spool/cgrates/tpe", // path towards export folder for offline TariffPlans -// "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR exports) +// "poster_attempts": 3, // number of attempts before considering post request failed (eg: *httpPost, CDR exports) // "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests // "failed_posts_ttl": "5s", // time to wait before writing the failed posts in a single file // "default_request_type": "*rated", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated> @@ -283,7 +283,7 @@ // "readers": [ // { // "id": "*default", // identifier of the EventReader profile -// "type": "*none", // reader type <*file_csv> +// "type": "*none", // reader type <*fileCSV> // "run_delay": "0", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together // "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited // "source_path": "/var/spool/cgrates/ers/in", // read data from this path @@ -385,7 +385,7 @@ // "enabled": false, // starts the EventReader service: // "attributes_conns":[], // RPC Connections IDs // "cache": { -// "*file_csv": {"limit": -1, "ttl": "5s", "static_ttl": false}, +// "*fileCSV": {"limit": -1, "ttl": "5s", "static_ttl": false}, // }, // "exporters": [ // { diff --git a/data/conf/samples/actions_internal/cgradmin.json b/data/conf/samples/actions_internal/cgradmin.json index d835e0a82..1e8247de6 100644 --- a/data/conf/samples/actions_internal/cgradmin.json +++ b/data/conf/samples/actions_internal/cgradmin.json @@ -62,7 +62,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -73,7 +73,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -83,7 +83,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -93,7 +93,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -103,7 +103,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/actions_internal_gob/cgradmin.json b/data/conf/samples/actions_internal_gob/cgradmin.json index c3dc52cc6..d8ec318a4 100644 --- a/data/conf/samples/actions_internal_gob/cgradmin.json +++ b/data/conf/samples/actions_internal_gob/cgradmin.json @@ -71,7 +71,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -82,7 +82,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -92,7 +92,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -102,7 +102,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -112,7 +112,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/actions_mongo/cgradmin.json b/data/conf/samples/actions_mongo/cgradmin.json index c5e47facf..dcc652314 100644 --- a/data/conf/samples/actions_mongo/cgradmin.json +++ b/data/conf/samples/actions_mongo/cgradmin.json @@ -67,7 +67,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -78,7 +78,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -88,7 +88,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -98,7 +98,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -108,7 +108,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/actions_mongo_gob/cgradmin.json b/data/conf/samples/actions_mongo_gob/cgradmin.json index be77cb614..2aec36c5c 100644 --- a/data/conf/samples/actions_mongo_gob/cgradmin.json +++ b/data/conf/samples/actions_mongo_gob/cgradmin.json @@ -68,7 +68,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -79,7 +79,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -89,7 +89,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -99,7 +99,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -109,7 +109,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/actions_mysql/cgradmin.json b/data/conf/samples/actions_mysql/cgradmin.json index 9731e9624..e64b626a1 100644 --- a/data/conf/samples/actions_mysql/cgradmin.json +++ b/data/conf/samples/actions_mysql/cgradmin.json @@ -64,7 +64,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -75,7 +75,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -85,7 +85,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -95,7 +95,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -105,7 +105,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/actions_mysql_gob/cgradmin.json b/data/conf/samples/actions_mysql_gob/cgradmin.json index ab3225fc7..a980dc918 100644 --- a/data/conf/samples/actions_mysql_gob/cgradmin.json +++ b/data/conf/samples/actions_mysql_gob/cgradmin.json @@ -70,7 +70,7 @@ "exporters": [ { "id": "sqs_fail", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "notAValidURL", "tenant": "cgrates.org", @@ -81,7 +81,7 @@ }, { "id": "kafka_fail", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -91,7 +91,7 @@ }, { "id": "amqp_fail", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -101,7 +101,7 @@ }, { "id": "s3_fail", - "type": "*s3_json_map", + "type": "*s3JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, @@ -111,7 +111,7 @@ }, { "id": "aws_fail", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "notAValidURL", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/cdrsexport_internal/cgrates.json b/data/conf/samples/cdrsexport_internal/cgrates.json index aeea69a8a..fcf366e62 100644 --- a/data/conf/samples/cdrsexport_internal/cgrates.json +++ b/data/conf/samples/cdrsexport_internal/cgrates.json @@ -51,7 +51,7 @@ "exporters": [ { "id": "http_localhost", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12081/cdr_http", "tenant": "cgrates.org", "attempts": 1, @@ -61,7 +61,7 @@ }, { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -77,7 +77,7 @@ }, { "id": "aws_test_file", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "amqps://guest:guest@localhost:95672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -90,7 +90,7 @@ }, { "id": "sqs_test_file", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "http://sqs.eu-west-2.amazonaws.com/", "opts": { @@ -108,7 +108,7 @@ }, { "id": "kafka_localhost", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "127.0.0.1:9092", "opts":{ "kafkaTopic": "cgrates_cdrs" @@ -121,7 +121,7 @@ }, { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/cdrsexport_mongo/cgrates.json b/data/conf/samples/cdrsexport_mongo/cgrates.json index d5f6847c6..cf3f8a08b 100644 --- a/data/conf/samples/cdrsexport_mongo/cgrates.json +++ b/data/conf/samples/cdrsexport_mongo/cgrates.json @@ -56,7 +56,7 @@ "exporters": [ { "id": "http_localhost", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12081/cdr_http", "tenant": "cgrates.org", "attempts": 1, @@ -66,7 +66,7 @@ }, { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -82,7 +82,7 @@ }, { "id": "aws_test_file", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "amqps://guest:guest@localhost:95672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -95,7 +95,7 @@ }, { "id": "sqs_test_file", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "http://sqs.eu-west-2.amazonaws.com/", "opts": { @@ -113,7 +113,7 @@ }, { "id": "kafka_localhost", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "127.0.0.1:9092", "opts":{ "kafkaTopic": "cgrates_cdrs", @@ -126,7 +126,7 @@ }, { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/cdrsexport_mysql/cgrates.json b/data/conf/samples/cdrsexport_mysql/cgrates.json index cfb1eb317..a28b4acc0 100644 --- a/data/conf/samples/cdrsexport_mysql/cgrates.json +++ b/data/conf/samples/cdrsexport_mysql/cgrates.json @@ -53,7 +53,7 @@ "exporters": [ { "id": "http_localhost", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12081/cdr_http", "tenant": "cgrates.org", "attempts": 1, @@ -63,7 +63,7 @@ }, { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -79,7 +79,7 @@ }, { "id": "aws_test_file", - "type": "*amqpv1_json_map", + "type": "*amqpv1JSONMap", "export_path": "amqps://guest:guest@localhost:95672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -92,7 +92,7 @@ }, { "id": "sqs_test_file", - "type": "*sqs_json_map", + "type": "*sqsJSONMap", // export_path for sqs: "endpoint" "export_path": "http://sqs.eu-west-2.amazonaws.com/", "opts": { @@ -109,7 +109,7 @@ }, { "id": "kafka_localhost", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "127.0.0.1:9092", "opts": { "kafkaTopic": "cgrates_cdrs", @@ -122,7 +122,7 @@ }, { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/cdrsonexpmaster_mongo/cdrsreplicationmaster.json b/data/conf/samples/cdrsonexpmaster_mongo/cdrsreplicationmaster.json index 6e08411d1..2e1bbfab8 100644 --- a/data/conf/samples/cdrsonexpmaster_mongo/cdrsreplicationmaster.json +++ b/data/conf/samples/cdrsonexpmaster_mongo/cdrsreplicationmaster.json @@ -50,7 +50,7 @@ "exporters": [ { "id": "http_localhost", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/cdr_http", "tenant": "cgrates.org", "synchronous": true, @@ -75,7 +75,7 @@ }, { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -104,7 +104,7 @@ }, { "id": "http_test_file", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/invalid", "tenant": "cgrates.org", "synchronous": true, @@ -115,7 +115,7 @@ }, { "id": "kafka_localhost", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "localhost:9092", "opts": { "kafkaTopic": "cgrates_cdrs", @@ -129,7 +129,7 @@ }, { "id": "eventcost_filter", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@wrongurl:25672/", "opts": { "amqpQueueID": "cgrates_cdrs", diff --git a/data/conf/samples/cdrsonexpmaster_mysql/cdrsreplicationmaster.json b/data/conf/samples/cdrsonexpmaster_mysql/cdrsreplicationmaster.json index 6bc469fed..e2eba5c31 100644 --- a/data/conf/samples/cdrsonexpmaster_mysql/cdrsreplicationmaster.json +++ b/data/conf/samples/cdrsonexpmaster_mysql/cdrsreplicationmaster.json @@ -48,7 +48,7 @@ "exporters": [ { "id": "http_localhost", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/cdr_http", "tenant": "cgrates.org", "synchronous": true, @@ -73,7 +73,7 @@ }, { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID": "cgrates_cdrs", @@ -102,7 +102,7 @@ }, { "id": "http_test_file", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/invalid", "tenant": "cgrates.org", "synchronous": true, @@ -113,7 +113,7 @@ }, { "id": "kafka_localhost", - "type": "*kafka_json_map", + "type": "*kafkaJSONMap", "export_path": "localhost:9092", "opts": { "kafkaTopic": "cgrates_cdrs", @@ -127,7 +127,7 @@ }, { "id": "eventcost_filter", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@wrongurl:25672/", "opts": { "amqpQueueID": "cgrates_cdrs", diff --git a/data/conf/samples/cdrsv1processevent/cgrates.json b/data/conf/samples/cdrsv1processevent/cgrates.json index 7035a835e..f75a79acf 100644 --- a/data/conf/samples/cdrsv1processevent/cgrates.json +++ b/data/conf/samples/cdrsv1processevent/cgrates.json @@ -34,7 +34,7 @@ "exporters": [ { "id": "amqp_test_file", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqps://guest:guest@localhost:256733/", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/cdrsv1processeventmongo/cgrates.json b/data/conf/samples/cdrsv1processeventmongo/cgrates.json index f5e42bcff..3f28b9743 100644 --- a/data/conf/samples/cdrsv1processeventmongo/cgrates.json +++ b/data/conf/samples/cdrsv1processeventmongo/cgrates.json @@ -37,7 +37,7 @@ "exporters": [ { "id": "amqp_test_file", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqps://guest:guest@localhost:256733/", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/cdrsv1processeventmysql/cgrates.json b/data/conf/samples/cdrsv1processeventmysql/cgrates.json index d4302d235..cfe1eda2d 100644 --- a/data/conf/samples/cdrsv1processeventmysql/cgrates.json +++ b/data/conf/samples/cdrsv1processeventmysql/cgrates.json @@ -34,7 +34,7 @@ "exporters": [ { "id": "amqp_test_file", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqps://guest:guest@localhost:256733/", "tenant": "cgrates.org", "attempts": 1, diff --git a/data/conf/samples/cdrsv_failover_internal/cgrates.json b/data/conf/samples/cdrsv_failover_internal/cgrates.json index 2fc76a8bc..146015fcb 100644 --- a/data/conf/samples/cdrsv_failover_internal/cgrates.json +++ b/data/conf/samples/cdrsv_failover_internal/cgrates.json @@ -7,7 +7,7 @@ "general": { "log_level": 7, "node_id": "TestFailCDRS", - "poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports) + "poster_attempts": 1, // number of attempts before considering post request failed (eg: *httpPost, CDR exports) "failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file "failed_posts_dir": "/tmp/failed_posts" // directory path where we store failed requests }, @@ -68,7 +68,7 @@ "exporters": [ { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/cdrsv_failover_mongo/cgrates.json b/data/conf/samples/cdrsv_failover_mongo/cgrates.json index c858fafd9..77473355a 100644 --- a/data/conf/samples/cdrsv_failover_mongo/cgrates.json +++ b/data/conf/samples/cdrsv_failover_mongo/cgrates.json @@ -6,7 +6,7 @@ "general": { "log_level": 7, - "poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports) + "poster_attempts": 1, // number of attempts before considering post request failed (eg: *httpPost, CDR exports) "failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file "failed_posts_dir": "/tmp/failed_posts" // directory path where we store failed requests }, @@ -77,7 +77,7 @@ "exporters": [ { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/cdrsv_failover_mysql/cgrates.json b/data/conf/samples/cdrsv_failover_mysql/cgrates.json index a8cca240c..d18b449c6 100644 --- a/data/conf/samples/cdrsv_failover_mysql/cgrates.json +++ b/data/conf/samples/cdrsv_failover_mysql/cgrates.json @@ -6,7 +6,7 @@ "general": { "log_level": 7, - "poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports) + "poster_attempts": 1, // number of attempts before considering post request failed (eg: *httpPost, CDR exports) "failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file "failed_posts_dir": "/tmp/failed_posts" // directory path where we store failed requests }, @@ -74,7 +74,7 @@ "exporters": [ { "id": "s3_test_file", - "type": "*s3_json_map", + "type": "*s3JSONMap", // export_path for s3: "endpoint" "export_path": "http://s3.us-east-2.amazonaws.com/", "opts": { diff --git a/data/conf/samples/ees/cgrates.json b/data/conf/samples/ees/cgrates.json index aad991ba5..76c178804 100644 --- a/data/conf/samples/ees/cgrates.json +++ b/data/conf/samples/ees/cgrates.json @@ -58,13 +58,13 @@ "enabled": true, "attributes_conns":["*internal"], "cache": { - "*file_csv": {"limit": -1, "ttl": "500ms", "static_ttl": false}, - "*file_fwv": {"limit": -1, "ttl": "500ms", "static_ttl": false} + "*fileCSV": {"limit": -1, "ttl": "500ms", "static_ttl": false}, + "*fileFWV": {"limit": -1, "ttl": "500ms", "static_ttl": false} }, "exporters": [ { "id": "CSVExporter", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -74,7 +74,7 @@ }, { "id": "CSVExporterComposed", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testComposedCSV", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -123,7 +123,7 @@ }, { "id": "FwvExporter", - "type": "*file_fwv", + "type": "*fileFWV", "export_path": "/tmp/testFWV", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -197,7 +197,7 @@ }, { "id": "HTTPPostExporter", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/event_http", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -223,7 +223,7 @@ }, { "id": "HTTPJsonMapExporter", - "type": "*http_json_map", + "type": "*httpJSONMap", "export_path": "http://127.0.0.1:12081/event_json_map_http", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -250,7 +250,7 @@ }, { "id": "CSVMaskedDestination", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSVMasked", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -291,7 +291,7 @@ }, { "id": "CSVExporterFromVirt", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSVfromVirt", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -315,7 +315,7 @@ }, { "id": "CSVExporterWIthTemplate", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSVExpTemp", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -364,7 +364,7 @@ }, { "id": "HTTPJsonMapExporterWithNoFields", - "type": "*http_json_map", + "type": "*httpJSONMap", "export_path": "http://127.0.0.1:12081/event_json_map_http", "tenant": "cgrates.org", "flags": ["*attributes"], @@ -380,7 +380,7 @@ }, { "id": "HTTPPostExporterWithNoFields", - "type": "*http_post", + "type": "*httpPost", "export_path": "http://127.0.0.1:12080/event_http", "tenant": "cgrates.org", "flags": ["*attributes"], diff --git a/data/conf/samples/ees_internal/cgrates.json b/data/conf/samples/ees_internal/cgrates.json index 79a569476..a9c368823 100644 --- a/data/conf/samples/ees_internal/cgrates.json +++ b/data/conf/samples/ees_internal/cgrates.json @@ -57,12 +57,12 @@ "enabled": true, "attributes_conns":["*internal"], "cache": { - "*file_csv": {"limit": -1, "ttl": "1s", "static_ttl": false}, + "*fileCSV": {"limit": -1, "ttl": "1s", "static_ttl": false}, }, "exporters": [ { "id": "CSVExporter", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV", "tenant": "cgrates.org", "timezone": "UTC", @@ -88,7 +88,7 @@ }, { "id": "CSVExporter2", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV2", "tenant": "cgrates.org", "timezone": "UTC", @@ -115,7 +115,7 @@ }, { "id": "CSVExporter3", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV3", "tenant": "cgrates.org", "timezone": "UTC", diff --git a/data/conf/samples/ees_mongo/cgrates.json b/data/conf/samples/ees_mongo/cgrates.json index 5453739ff..78f571f05 100644 --- a/data/conf/samples/ees_mongo/cgrates.json +++ b/data/conf/samples/ees_mongo/cgrates.json @@ -61,12 +61,12 @@ "enabled": true, "attributes_conns":["*internal"], "cache": { - "*file_csv": {"limit": -1, "ttl": "1s", "static_ttl": false}, + "*fileCSV": {"limit": -1, "ttl": "1s", "static_ttl": false}, }, "exporters": [ { "id": "CSVExporter", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV", "tenant": "cgrates.org", "timezone": "UTC", @@ -92,7 +92,7 @@ }, { "id": "CSVExporter2", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV2", "tenant": "cgrates.org", "timezone": "UTC", @@ -119,7 +119,7 @@ }, { "id": "CSVExporter3", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV3", "tenant": "cgrates.org", "timezone": "UTC", diff --git a/data/conf/samples/ees_mysql/cgrates.json b/data/conf/samples/ees_mysql/cgrates.json index dd35b7d27..938f10f8d 100644 --- a/data/conf/samples/ees_mysql/cgrates.json +++ b/data/conf/samples/ees_mysql/cgrates.json @@ -59,12 +59,12 @@ "enabled": true, "attributes_conns":["*internal"], "cache": { - "*file_csv": {"limit": -1, "ttl": "1s", "static_ttl": false}, + "*fileCSV": {"limit": -1, "ttl": "1s", "static_ttl": false}, }, "exporters": [ { "id": "CSVExporter", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV", "tenant": "cgrates.org", "timezone": "UTC", @@ -90,7 +90,7 @@ }, { "id": "CSVExporter2", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV2", "tenant": "cgrates.org", "timezone": "UTC", @@ -117,7 +117,7 @@ }, { "id": "CSVExporter3", - "type": "*file_csv", + "type": "*fileCSV", "export_path": "/tmp/testCSV3", "tenant": "cgrates.org", "timezone": "UTC", diff --git a/data/conf/samples/ers_example/cgrates.json b/data/conf/samples/ers_example/cgrates.json index cc3de3ec3..232b7614d 100644 --- a/data/conf/samples/ers_example/cgrates.json +++ b/data/conf/samples/ers_example/cgrates.json @@ -71,7 +71,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", diff --git a/data/conf/samples/ers_internal/cgrates.json b/data/conf/samples/ers_internal/cgrates.json index 46419d9d0..db19ac180 100644 --- a/data/conf/samples/ers_internal/cgrates.json +++ b/data/conf/samples/ers_internal/cgrates.json @@ -83,7 +83,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -94,7 +94,7 @@ "opts": { "csvFieldSeparator":";" }, - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*dryrun"], "processed_path": "/tmp/ers2/out", @@ -118,7 +118,7 @@ { "id": "init_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/init_session/in", "flags": ["*initiate","*accounts","*resources","*attributes","*log"], "processed_path": "/tmp/init_session/out", @@ -139,7 +139,7 @@ { "id": "terminate_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/terminate_session/in", "flags": ["*terminate","*accounts","*resources","*log"], "processed_path": "/tmp/terminate_session/out", @@ -153,7 +153,7 @@ { "id": "create_cdr", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/cdrs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/cdrs/out", @@ -176,7 +176,7 @@ { "id": "file_reader_with_filters", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":";" }, @@ -205,7 +205,7 @@ { "id": "XmlDryRun", "run_delay": "-1", - "type": "*file_xml", + "type": "*fileXML", "source_path": "/tmp/xmlErs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/xmlErs/out", @@ -228,7 +228,7 @@ { "id": "FWV1", "run_delay": "-1", - "type": "*file_fwv", + "type": "*fileFWV", "source_path": "/tmp/fwvErs/in", "flags": ["*cdrs"], "processed_path": "/tmp/fwvErs/out", @@ -261,7 +261,7 @@ "id": "PartialCSV1", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs1/in", "flags": ["*cdrs"], "processed_path": "", @@ -306,7 +306,7 @@ "id": "PartialCSV_PostExpiry", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs2/in", "processed_path": "", "flags": ["*cdrs"], @@ -341,7 +341,7 @@ "id": "FlatstoreOsips", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -395,7 +395,7 @@ "id": "FlatstoreOsipsWithACK", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -451,7 +451,7 @@ { "id": "JSONReader", "run_delay": "-1", - "type": "*file_json", + "type": "*fileJSON", "source_path": "/tmp/ErsJSON/in", "flags": ["*cdrs"], "processed_path": "/tmp/ErsJSON/out", @@ -472,7 +472,7 @@ { "id": "readerWithTemplate", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/readerWithTemplate/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/readerWithTemplate/out", @@ -486,7 +486,7 @@ "id": "PartialWithMultipleMethods", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":",", "partialcsvFieldSeparator": ",", diff --git a/data/conf/samples/ers_mongo/cgrates.json b/data/conf/samples/ers_mongo/cgrates.json index 783a81eb1..856ed2939 100644 --- a/data/conf/samples/ers_mongo/cgrates.json +++ b/data/conf/samples/ers_mongo/cgrates.json @@ -85,7 +85,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -96,7 +96,7 @@ "opts": { "csvFieldSeparator":";" }, - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*dryrun"], "processed_path": "/tmp/ers2/out", @@ -120,7 +120,7 @@ { "id": "init_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/init_session/in", "flags": ["*initiate","*accounts","*resources","*attributes","*log"], "processed_path": "/tmp/init_session/out", @@ -141,7 +141,7 @@ { "id": "terminate_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/terminate_session/in", "flags": ["*terminate","*accounts","*resources","*log"], "processed_path": "/tmp/terminate_session/out", @@ -155,7 +155,7 @@ { "id": "create_cdr", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/cdrs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/cdrs/out", @@ -178,7 +178,7 @@ { "id": "file_reader_with_filters", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":";" }, @@ -207,7 +207,7 @@ { "id": "XmlDryRun", "run_delay": "-1", - "type": "*file_xml", + "type": "*fileXML", "source_path": "/tmp/xmlErs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/xmlErs/out", @@ -230,7 +230,7 @@ { "id": "FWV1", "run_delay": "-1", - "type": "*file_fwv", + "type": "*fileFWV", "source_path": "/tmp/fwvErs/in", "flags": ["*cdrs"], "processed_path": "/tmp/fwvErs/out", @@ -263,7 +263,7 @@ "id": "PartialCSV1", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs1/in", "flags": ["*cdrs"], "processed_path": "", @@ -308,7 +308,7 @@ "id": "PartialCSV_PostExpiry", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs2/in", "processed_path": "", "flags": ["*cdrs"], @@ -343,7 +343,7 @@ "id": "FlatstoreOsips", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -397,7 +397,7 @@ "id": "FlatstoreOsipsWithACK", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -453,7 +453,7 @@ { "id": "JSONReader", "run_delay": "-1", - "type": "*file_json", + "type": "*fileJSON", "source_path": "/tmp/ErsJSON/in", "flags": ["*cdrs"], "processed_path": "/tmp/ErsJSON/out", @@ -474,7 +474,7 @@ { "id": "readerWithTemplate", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/readerWithTemplate/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/readerWithTemplate/out", @@ -488,7 +488,7 @@ "id": "PartialWithMultipleMethods", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":",", "partialcsvFieldSeparator": ",", diff --git a/data/conf/samples/ers_mysql/cgrates.json b/data/conf/samples/ers_mysql/cgrates.json index a7fe350c9..29a3b912b 100644 --- a/data/conf/samples/ers_mysql/cgrates.json +++ b/data/conf/samples/ers_mysql/cgrates.json @@ -82,7 +82,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -93,7 +93,7 @@ "opts": { "csvFieldSeparator":";" }, - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*dryrun"], "processed_path": "/tmp/ers2/out", @@ -117,7 +117,7 @@ { "id": "init_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/init_session/in", "flags": ["*initiate","*accounts","*resources","*attributes","*log"], "processed_path": "/tmp/init_session/out", @@ -138,7 +138,7 @@ { "id": "terminate_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/terminate_session/in", "flags": ["*terminate","*accounts","*resources","*log"], "processed_path": "/tmp/terminate_session/out", @@ -152,7 +152,7 @@ { "id": "create_cdr", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/cdrs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/cdrs/out", @@ -175,7 +175,7 @@ { "id": "file_reader_with_filters", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":";" }, @@ -204,7 +204,7 @@ { "id": "XmlDryRun", "run_delay": "-1", - "type": "*file_xml", + "type": "*fileXML", "source_path": "/tmp/xmlErs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/xmlErs/out", @@ -227,7 +227,7 @@ { "id": "FWV1", "run_delay": "-1", - "type": "*file_fwv", + "type": "*fileFWV", "source_path": "/tmp/fwvErs/in", "flags": ["*cdrs"], "processed_path": "/tmp/fwvErs/out", @@ -260,7 +260,7 @@ "id": "PartialCSV1", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs1/in", "flags": ["*cdrs"], "processed_path": "", @@ -305,7 +305,7 @@ "id": "PartialCSV_PostExpiry", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs2/in", "processed_path": "", "flags": ["*cdrs"], @@ -340,7 +340,7 @@ "id": "FlatstoreOsips", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -394,7 +394,7 @@ "id": "FlatstoreOsipsWithACK", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -450,7 +450,7 @@ { "id": "JSONReader", "run_delay": "-1", - "type": "*file_json", + "type": "*fileJSON", "source_path": "/tmp/ErsJSON/in", "flags": ["*cdrs"], "processed_path": "/tmp/ErsJSON/out", @@ -471,7 +471,7 @@ { "id": "readerWithTemplate", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/readerWithTemplate/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/readerWithTemplate/out", @@ -485,7 +485,7 @@ "id": "PartialWithMultipleMethods", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":",", "partialcsvFieldSeparator": ",", diff --git a/data/conf/samples/ers_postgres/cgrates.json b/data/conf/samples/ers_postgres/cgrates.json index d7ba24cd8..f321ff1a6 100644 --- a/data/conf/samples/ers_postgres/cgrates.json +++ b/data/conf/samples/ers_postgres/cgrates.json @@ -79,7 +79,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -90,7 +90,7 @@ "opts": { "csvFieldSeparator":";" }, - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*dryrun"], "processed_path": "/tmp/ers2/out", @@ -114,7 +114,7 @@ { "id": "init_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/init_session/in", "flags": ["*initiate","*accounts","*resources","*attributes","*log"], "processed_path": "/tmp/init_session/out", @@ -135,7 +135,7 @@ { "id": "terminate_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/terminate_session/in", "flags": ["*terminate","*accounts","*resources","*log"], "processed_path": "/tmp/terminate_session/out", @@ -149,7 +149,7 @@ { "id": "create_cdr", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/cdrs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/cdrs/out", @@ -172,7 +172,7 @@ { "id": "file_reader_with_filters", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":";" }, @@ -201,7 +201,7 @@ { "id": "XmlDryRun", "run_delay": "-1", - "type": "*file_xml", + "type": "*fileXML", "source_path": "/tmp/xmlErs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/xmlErs/out", @@ -224,7 +224,7 @@ { "id": "FWV1", "run_delay": "-1", - "type": "*file_fwv", + "type": "*fileFWV", "source_path": "/tmp/fwvErs/in", "flags": ["*cdrs"], "processed_path": "/tmp/fwvErs/out", @@ -257,7 +257,7 @@ "id": "PartialCSV1", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs1/in", "flags": ["*cdrs"], "processed_path": "", @@ -302,7 +302,7 @@ "id": "PartialCSV_PostExpiry", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/partErs2/in", "processed_path": "", "flags": ["*cdrs"], @@ -337,7 +337,7 @@ "id": "FlatstoreOsips", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -391,7 +391,7 @@ "id": "FlatstoreOsipsWithACK", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":"|", "partialcsvFieldSeparator": "|", @@ -447,7 +447,7 @@ { "id": "JSONReader", "run_delay": "-1", - "type": "*file_json", + "type": "*fileJSON", "source_path": "/tmp/ErsJSON/in", "flags": ["*cdrs"], "processed_path": "/tmp/ErsJSON/out", @@ -468,7 +468,7 @@ { "id": "readerWithTemplate", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/readerWithTemplate/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/readerWithTemplate/out", @@ -482,7 +482,7 @@ "id": "PartialWithMultipleMethods", "enabled": true, "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "opts": { "csvFieldSeparator":",", "partialcsvFieldSeparator": ",", diff --git a/data/conf/samples/ers_reload/first_reload/cgrates.json b/data/conf/samples/ers_reload/first_reload/cgrates.json index 1f78d17b5..81abba8f0 100644 --- a/data/conf/samples/ers_reload/first_reload/cgrates.json +++ b/data/conf/samples/ers_reload/first_reload/cgrates.json @@ -71,7 +71,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*cdrs","*log"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -79,7 +79,7 @@ { "id": "file_reader2", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/ers2/out", diff --git a/data/conf/samples/ers_reload/internal/cgrates.json b/data/conf/samples/ers_reload/internal/cgrates.json index 0eb7d9d03..826819a6b 100644 --- a/data/conf/samples/ers_reload/internal/cgrates.json +++ b/data/conf/samples/ers_reload/internal/cgrates.json @@ -71,7 +71,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", diff --git a/data/conf/samples/ers_reload/second_reload/cgrates.json b/data/conf/samples/ers_reload/second_reload/cgrates.json index e202b1272..37c9baa36 100644 --- a/data/conf/samples/ers_reload/second_reload/cgrates.json +++ b/data/conf/samples/ers_reload/second_reload/cgrates.json @@ -71,7 +71,7 @@ { "id": "file_reader1", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "flags": ["*dryrun"], "source_path": "/tmp/ers/in", "processed_path": "/tmp/ers/out", @@ -79,7 +79,7 @@ { "id": "file_reader2", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers2/in", "flags": ["*dryrun"], "processed_path": "/tmp/ers2/out", @@ -106,7 +106,7 @@ { "id": "init_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/init_session/in", "flags": ["*initiate","*accounts","*resources","*attributes","*log"], "processed_path": "/tmp/init_session/out", @@ -127,7 +127,7 @@ { "id": "terminate_session", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/terminate_session/in", "flags": ["*terminate","*accounts","*resources","*log"], "processed_path": "/tmp/terminate_session/out", @@ -141,7 +141,7 @@ { "id": "create_cdr", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/cdrs/in", "flags": ["*cdrs","*log"], "processed_path": "/tmp/cdrs/out", @@ -164,7 +164,7 @@ { "id": "file_reader_with_filters", "run_delay": "-1", - "type": "*file_csv", + "type": "*fileCSV", "source_path": "/tmp/ers_with_filters/in", "processed_path": "/tmp/ers_with_filters/out", "flags": ["*cdrs","*log"], diff --git a/data/conf/samples/multifiles/d.json b/data/conf/samples/multifiles/d.json index 45926e0de..a1c209e8a 100644 --- a/data/conf/samples/multifiles/d.json +++ b/data/conf/samples/multifiles/d.json @@ -10,7 +10,7 @@ "rounding_decimals": *env:ROUND_DEC, // system level precision for floats "dbdata_encoding": "*env:DB_ENCODING", // encoding used to store object data in strings: <*msgpack|*json> "tpexport_dir": "*env:TP_EXPORT_DIR", // path towards export folder for offline Tariff Plans - "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR replication) + "poster_attempts": 3, // number of attempts before considering post request failed (eg: *httpPost, CDR replication) "failed_posts_dir": "*env:FAILED_POSTS_DIR", // directory path where we store failed requests "default_tenant": "*env:DF_TENANT", // default tenant to consider when missing from requests "default_timezone": "*env:TIMEZONE", // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB> diff --git a/data/conf/samples/tutmongo2/cgrates.json b/data/conf/samples/tutmongo2/cgrates.json index 765d2c378..4c8b4c708 100644 --- a/data/conf/samples/tutmongo2/cgrates.json +++ b/data/conf/samples/tutmongo2/cgrates.json @@ -58,7 +58,7 @@ "exporters": [ { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID":"cgrates_cdrs", diff --git a/data/conf/samples/tutmongo2_gob/cgrates.json b/data/conf/samples/tutmongo2_gob/cgrates.json index 36d67d177..886aba914 100644 --- a/data/conf/samples/tutmongo2_gob/cgrates.json +++ b/data/conf/samples/tutmongo2_gob/cgrates.json @@ -65,7 +65,7 @@ "exporters": [ { "id": "amqp_localhost", - "type": "*amqp_json_map", + "type": "*amqpJSONMap", "export_path": "amqp://guest:guest@localhost:5672/", "opts": { "amqpQueueID":"cgrates_cdrs", diff --git a/docs/cdre.rst b/docs/cdre.rst index df99c6363..616993617 100644 --- a/docs/cdre.rst +++ b/docs/cdre.rst @@ -49,64 +49,64 @@ One **export profile** includes the following parameters: export_format Specify the type of export which will run. Possible values are: - **\*file_csv** + **\*fileCSV** Exports into a comma separated file format. - **\*file_fwv** + **\*fileFWV** Exports into a fixed width file format. - **\*http_post** + **\*httpPost** Will post the CDR to a HTTP server. The export content will be a HTTP form encoded representation of the `internal CDR object `_. **\*http_json_cdr** Will post the CDR to a HTTP server. The export content will be a JSON serialized representation of the `internal CDR object `_. - **\*http_json_map** + **\*httpJSONMap** Will post the CDR to a HTTP server. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. **\*amqp_json_cdr** Will post the CDR to an AMQP_ queue. The export content will be a JSON serialized representation of the `internal CDR object `_. Uses AMQP_ protocol version 0.9.1. - **\*amqp_json_map** + **\*amqpJSONMap** Will post the CDR to an AMQP_ queue. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. Uses AMQP_ protocol version 1.0. - **\*amqpv1_json_map** + **\*amqpv1JSONMap** Will post the CDR to an AMQP_ queue. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. Uses AMQP_ protocol version 1.0. - **\*sqs_json_map** + **\*sqsJSONMap** Will post the CDR to an `Amazon SQS queue `_. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. - **\*s3_json_map** + **\*s3JSONMap** Will post the CDR to `Amazon S3 storage `_. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. - **\*kafka_json_map** + **\*kafkaJSONMap** Will post the CDR to an `Apache Kafka `_. The export content will be a JSON serialized hmap with fields defined within the *fields* section of the template. export_path Specify the export path. It has special format depending of the export type. - **\*file_csv**, **\*file_fwv** + **\*fileCSV**, **\*fileFWV** Standard unix-like filesystem path. - **\*http_post**, **\*http_json_cdr**, **\*http_json_map** + **\*httpPost**, **\*http_json_cdr**, **\*httpJSONMap** Full HTTP URL - **\*amqp_json_map**, **\*amqpv1_json_map** + **\*amqpJSONMap**, **\*amqpv1JSONMap** AMQP URL with extra parameters. Sample: *amqp://guest:guest@localhost:5672/?queue_id=cgrates_cdrs&exchange=exchangename&exchange_type=fanout&routing_key=cgr_cdrs* - **\*sqs_json_map** + **\*sqsJSONMap** SQS URL with extra parameters. Sample: *http://sqs.eu-west-2.amazonaws.com/?aws_region=eu-west-2&aws_key=testkey&aws_secret=testsecret&queue_id=cgrates-cdrs* - **\*s3_json_map** + **\*s3JSONMap** S3 URL with extra parameters. Sample: *http://s3.us-east-2.amazonaws.com/?aws_region=eu-west-2&aws_key=testkey&aws_secret=testsecret&queue_id=cgrates-cdrs* - **\*kafka_json_map** + **\*kafkaJSONMap** Kafka URL with extra parameters. Sample: *localhost:9092?topic=cgrates_cdrs* @@ -131,7 +131,7 @@ attempts Number of attempts before giving up on the export and writing the failed request to file. The failed request will be written to *failed_posts_dir* defined in *general* section. field_separator - Field separator to be used in some export types (ie. *\*file_csv*). + Field separator to be used in some export types (ie. *\*fileCSV*). attributes_context The context used when sending the CDR event to :ref:`AttributeS` for modifications. If empty, there will be no event sent to :ref:`AttributeS`. @@ -149,10 +149,10 @@ path Reference to the exported record. *\*hdr* - Reference to the header content. Available in case of **\*file_csv** and **\*file_fwv** export types. + Reference to the header content. Available in case of **\*fileCSV** and **\*fileFWV** export types. *\*trl* - Reference to the trailer content. Available in case of **\*file_csv** and **\*file_fwv** export types. + Reference to the trailer content. Available in case of **\*fileCSV** and **\*fileFWV** export types. type The field type will give out the logic for generating the value. Values used depend on the type of prefix used in path. @@ -180,7 +180,7 @@ type **\*masked_destination** Masks the destination using *\** as suffix. Matches the destination field against the list defined via *mask_destinationd_id* field. - **\*http_post** + **\*httpPost** Uses a HTTP server as datasource for the value exported. For *\*hdr* and *\*trl*, following field types are possible: diff --git a/docs/ers.rst b/docs/ers.rst index 321addf2c..357679682 100644 --- a/docs/ers.rst +++ b/docs/ers.rst @@ -38,7 +38,7 @@ With explanations in the comments: "id": "file_reader2", // file_reader2 reader "run_delay": "-1", // reading of events it is triggered outside of ERs "field_separator": ";", // field separator definition - "type": "*file_csv", // type of reader, *file_csv can read .csv files + "type": "*fileCSV", // type of reader, *fileCSV can read .csv files "row_length" : 0, // Number of fields from csv file "flags": [ // influence processing logic within CGRateS workflow "*cdrs", // *cdrs will create CDRs @@ -131,16 +131,16 @@ id type Reader type. Following types are implemented: - **\*file_csv** + **\*fileCSV** Reader for *comma separated* files. - **\*file_xml** + **\*fileXML** Reader for *.xml* formatted files. - **\*file_fwv** + **\*fileFWV** Reader for *fixed width value* formatted files. - **\*kafka_json_map** + **\*kafkaJSONMap** Reader for hashmaps within Kafka_ database. **\*sql** @@ -180,10 +180,10 @@ filters Request read from the source. In case of file content without field name, the index will be passed instead of field source path. **\*hdr** - Header values (available only in case of *\*file_fwv*). In case of file content without field name, the index will be passed instead of field source path. + Header values (available only in case of *\*fileFWV*). In case of file content without field name, the index will be passed instead of field source path. **\*trl** - Trailer values (available only in case of *\*file_fwv*). In case of file content without field name, the index will be passed instead of field source path. + Trailer values (available only in case of *\*fileFWV*). In case of file content without field name, the index will be passed instead of field source path. flags Special tags enforcing the actions/verbs done on an event. There are two types of flags: **main** and **auxiliary**. @@ -248,10 +248,10 @@ path Write the value in the request object which will be sent to CGRateS side. **\*hdr** - Header values (available only in case of *\*file_fwv*). In case of file content without field name, the index will be passed instead of field source path. + Header values (available only in case of *\*fileFWV*). In case of file content without field name, the index will be passed instead of field source path. **\*trl** - Trailer values (available only in case of *\*file_fwv*). In case of file content without field name, the index will be passed instead of field source path. + Trailer values (available only in case of *\*fileFWV*). In case of file content without field name, the index will be passed instead of field source path. type diff --git a/docs/rals.rst b/docs/rals.rst index b70a6e302..f631c9640 100644 --- a/docs/rals.rst +++ b/docs/rals.rst @@ -398,7 +398,7 @@ ActionType **\*disable_account** Set the :ref:`Account` *Disabled* flag. - **\*http_post** + **\*httpPost** Post data over HTTP protocol to configured HTTP URL. **\*http_post_async** diff --git a/ees/ees_test.go b/ees/ees_test.go index 698de8097..9f0fa3673 100644 --- a/ees/ees_test.go +++ b/ees/ees_test.go @@ -152,7 +152,7 @@ func TestV1ProcessEvent(t *testing.T) { t.Error(err) } cgrCfg := config.NewDefaultCGRConfig() - cgrCfg.EEsCfg().Exporters[0].Type = "*file_csv" + cgrCfg.EEsCfg().Exporters[0].Type = "*fileCSV" cgrCfg.EEsCfg().Exporters[0].ID = "SQLExporterFull" cgrCfg.EEsCfg().Exporters[0].ExportPath = filePath newIDb := engine.NewInternalDB(nil, nil, true) @@ -201,7 +201,7 @@ func TestV1ProcessEvent(t *testing.T) { func TestV1ProcessEvent2(t *testing.T) { cgrCfg := config.NewDefaultCGRConfig() - cgrCfg.EEsCfg().Exporters[0].Type = "*file_csv" + cgrCfg.EEsCfg().Exporters[0].Type = "*fileCSV" cgrCfg.EEsCfg().Exporters[0].ID = "SQLExporterFull" cgrCfg.EEsCfg().Exporters[0].Filters = []string{"*prefix:~*req.Subject:20"} cgrCfg.EEsCfg().Exporters[0].Tenant = config.NewRSRParsersMustCompile("cgrates.org", utils.InfieldSep) @@ -239,7 +239,7 @@ func TestV1ProcessEvent2(t *testing.T) { func TestV1ProcessEvent3(t *testing.T) { cgrCfg := config.NewDefaultCGRConfig() - cgrCfg.EEsCfg().Exporters[0].Type = "*file_csv" + cgrCfg.EEsCfg().Exporters[0].Type = "*fileCSV" cgrCfg.EEsCfg().Exporters[0].ID = "SQLExporterFull" cgrCfg.EEsCfg().Exporters[0].Flags = utils.FlagsWithParams{ utils.MetaAttributes: utils.FlagParams{}, diff --git a/ers/amqp_it_test.go b/ers/amqp_it_test.go index 3e0fa2282..c84fc0118 100644 --- a/ers/amqp_it_test.go +++ b/ers/amqp_it_test.go @@ -40,7 +40,7 @@ func TestAMQPER(t *testing.T) { "readers": [ { "id": "amqp", // identifier of the EventReader profile - "type": "*amqp_json_map", // reader type <*file_csv> + "type": "*amqpJSONMap", // reader type <*fileCSV> "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "amqp://guest:guest@localhost:5672/",// read data from this path diff --git a/ers/amqpv1_it_test.go b/ers/amqpv1_it_test.go index febebaff1..cef1f2697 100644 --- a/ers/amqpv1_it_test.go +++ b/ers/amqpv1_it_test.go @@ -49,7 +49,7 @@ func TestAMQPERv1(t *testing.T) { "readers": [ { "id": "amqpv1", // identifier of the EventReader profile - "type": "*amqpv1_json_map", // reader type <*file_csv> + "type": "*amqpv1JSONMap", // reader type <*fileCSV> "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "amqps://RootManageSharedAccessKey:Je8l%2Bt9tyOgZbdA%2B5SmGIJEsEzhZ9VdIO7yRke5EYtM%3D@test0123456y.servicebus.windows.net",// read data from this path diff --git a/ers/kafka_it_test.go b/ers/kafka_it_test.go index ae034bb02..796d0ac3b 100644 --- a/ers/kafka_it_test.go +++ b/ers/kafka_it_test.go @@ -48,7 +48,7 @@ func TestKafkaER(t *testing.T) { "readers": [ { "id": "kafka", // identifier of the EventReader profile - "type": "*kafka_json_map", // reader type <*file_csv> + "type": "*kafkaJSONMap", // reader type <*fileCSV> "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "localhost:9092", // read data from this path diff --git a/ers/nats_it_test.go b/ers/nats_it_test.go index 13f81b082..7979173d5 100644 --- a/ers/nats_it_test.go +++ b/ers/nats_it_test.go @@ -217,7 +217,7 @@ func TestNatsERJetStream(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", @@ -265,7 +265,7 @@ func TestNatsER(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", @@ -311,7 +311,7 @@ func TestNatsERJetStreamUser(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://user:password@localhost:4222", @@ -359,7 +359,7 @@ func TestNatsERUser(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://user:password@localhost:4222", @@ -405,7 +405,7 @@ func TestNatsERJetStreamToken(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://token@localhost:4222", @@ -453,7 +453,7 @@ func TestNatsERToken(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://token@localhost:4222", @@ -519,7 +519,7 @@ func TestNatsERNkey(t *testing.T) { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", @@ -587,7 +587,7 @@ users: [ "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", @@ -674,7 +674,7 @@ resolver_preload: { "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", @@ -762,7 +762,7 @@ system_account:AAFIBB6C56ROU5XRVJLJYR3BTGGYK3HJGHEHQV7L7QZMTT3ZRBLHBS7F "readers": [ { "id": "nats", - "type": "*nats_json_map", + "type": "*natsJSONMap", "run_delay": "-1", "concurrent_requests": 1024, "source_path": "nats://localhost:4222", diff --git a/ers/s3_it_test.go b/ers/s3_it_test.go index cdfd85681..6d1a10328 100644 --- a/ers/s3_it_test.go +++ b/ers/s3_it_test.go @@ -52,7 +52,7 @@ func TestS3ER(t *testing.T) { "readers": [ { "id": "s3", // identifier of the EventReader profile - "type": "*s3_json_map", // reader type <*file_csv> + "type": "*s3JSONMap", // reader type <*fileCSV> "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "s3.us-east-2.amazonaws.com", // read data from this path diff --git a/ers/sql_it_test.go b/ers/sql_it_test.go index f31b1eac2..aafacaf60 100644 --- a/ers/sql_it_test.go +++ b/ers/sql_it_test.go @@ -92,7 +92,7 @@ func testSQLInitConfig(t *testing.T) { "readers": [ { "id": "mysql", // identifier of the EventReader profile - "type": "*sql", // reader type <*file_csv> + "type": "*sql", // reader type <*fileCSV> "run_delay": "1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "*mysql://cgrates:CGRateS.org@127.0.0.1:3306", // read data from this path @@ -370,7 +370,7 @@ func testSQLInitConfig2(t *testing.T) { "readers": [ { "id": "mysql", // identifier of the EventReader profile - "type": "*sql", // reader type <*file_csv> + "type": "*sql", // reader type <*fileCSV> "run_delay": "1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "*mysql://cgrates:CGRateS.org@127.0.0.1:3306", // read data from this path diff --git a/ers/sqs_it_test.go b/ers/sqs_it_test.go index fe71ab04f..647f532c3 100644 --- a/ers/sqs_it_test.go +++ b/ers/sqs_it_test.go @@ -51,7 +51,7 @@ func TestSQSER(t *testing.T) { "readers": [ { "id": "sqs", // identifier of the EventReader profile - "type": "*sqs_json_map", // reader type <*file_csv> + "type": "*sqsJSONMap", // reader type <*fileCSV> "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited "source_path": "sqs.us-east-2.amazonaws.com", // read data from this path diff --git a/packages/debian/changelog b/packages/debian/changelog index 8e560f49b..bc1ed62f4 100644 --- a/packages/debian/changelog +++ b/packages/debian/changelog @@ -11,8 +11,8 @@ cgrates (1.0) UNRELEASED; urgency=medium * [FilterS] Added *regex filter * [DispatcherS] Removed Subsystems field in favor of filters * [RSRParsers] Added *len dataconverter - * [ERs] Added *nats_json_map - * [EEs] Added *nats_json_map + * [ERs] Added *natsJSONMap + * [EEs] Added *natsJSONMap -- DanB Thu, 4 May 2021 12:05:00 +0200 @@ -113,7 +113,7 @@ cgrates (0.11.0) UNRELEASED; urgency=medium * [CGR-CONSOLE] Uniformize the commands between profile and subsystem * [StatS] Add rounding operation for duration metric (e.g. acd, tcd, etc...) * [DispatcherH] Added DispatcherH subsystem - * [ERs] Added support for *amqp_json_map type + * [ERs] Added support for *amqpJSONMap type * [DataDB] Moved all specific DB options in opts * [Config] Add new section "template" * [LoaderS] Add support for *template type @@ -130,9 +130,9 @@ cgrates (0.11.0) UNRELEASED; urgency=medium * [AttributeS] Add support for *prefix and *suffix type * [ConfigS] Add "redis_" prefix to "dataDB" option for redis * [DataDB] Add support for redis with TLS connection ( + integration test ) - * [ERs] Added support for *s3_json_map type - * [ERs] Added support for *sqs_json_map type - * [ERs] Added support for *amqpv1_json_map type + * [ERs] Added support for *s3JSONMap type + * [ERs] Added support for *sqsJSONMap type + * [ERs] Added support for *amqpv1JSONMap type * [RALs] Send balance update event from rals to threshold ( in case of negative) only once * [SessionS] Use rals_conns when sending refund rounding * [General] Made tenant optional for all API calls diff --git a/utils/consts.go b/utils/consts.go index 4397b2ab1..f89e76ce1 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -314,8 +314,8 @@ const ( MetaBiJSONLocalHost = "*bijson_localhost" MetaRatingSubjectPrefix = "*zero" OK = "OK" - MetaFileXML = "*file_xml" - MetaFileJSON = "*file_json" + MetaFileXML = "*fileXML" + MetaFileJSON = "*fileJSON" MaskChar = "*" ConcatenatedKeySep = ":" UnitTest = "UNIT_TEST" @@ -357,19 +357,19 @@ const ( TestSQL = "TEST_SQL" MetaConstant = "*constant" MetaFiller = "*filler" - MetaHTTPPost = "*http_post" + MetaHTTPPost = "*httpPost" MetaHTTPjson = "*http_json" MetaHTTPjsonCDR = "*http_json_cdr" - MetaHTTPjsonMap = "*http_json_map" + MetaHTTPjsonMap = "*httpJSONMap" MetaAMQPjsonCDR = "*amqp_json_cdr" - MetaAMQPjsonMap = "*amqp_json_map" - MetaAMQPV1jsonMap = "*amqpv1_json_map" - MetaSQSjsonMap = "*sqs_json_map" - MetaKafkajsonMap = "*kafka_json_map" - MetaNatsjsonMap = "*nats_json_map" + MetaAMQPjsonMap = "*amqpJSONMap" + MetaAMQPV1jsonMap = "*amqpv1JSONMap" + MetaSQSjsonMap = "*sqsJSONMap" + MetaKafkajsonMap = "*kafkaJSONMap" + MetaNatsjsonMap = "*natsJSONMap" MetaSQL = "*sql" MetaMySQL = "*mysql" - MetaS3jsonMap = "*s3_json_map" + MetaS3jsonMap = "*s3JSONMap" ConfigPath = "/etc/cgrates/" DisconnectCause = "DisconnectCause" MetaRating = "*rating" @@ -466,10 +466,10 @@ const ( ContentText = "text" FileLockPrefix = "file_" ActionsPoster = "act" - MetaFileCSV = "*file_csv" + MetaFileCSV = "*fileCSV" MetaVirt = "*virt" MetaElastic = "*els" - MetaFileFWV = "*file_fwv" + MetaFileFWV = "*fileFWV" MetaFile = "*file" Accounts = "Accounts" AccountS = "AccountS"