From e184c0bf1f621fcdb786a7bdf003b92731a836b5 Mon Sep 17 00:00:00 2001 From: DanB Date: Fri, 8 Mar 2019 19:39:55 +0100 Subject: [PATCH] New tutmysql2 configuration folder --- data/conf/samples/tutmysql2/cgrates.json | 158 +++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 data/conf/samples/tutmysql2/cgrates.json diff --git a/data/conf/samples/tutmysql2/cgrates.json b/data/conf/samples/tutmysql2/cgrates.json new file mode 100644 index 000000000..9c22c4e18 --- /dev/null +++ b/data/conf/samples/tutmysql2/cgrates.json @@ -0,0 +1,158 @@ +{ +// CGRateS Configuration file +// + + +"general": { + "node_id": "CGRateSTutorial" + "log_level": 7, +}, + + +"listen": { + "rpc_json": ":2012", + "rpc_gob": ":2013", + "http": ":2080", +}, + + +"stor_db": { + "db_password": "CGRateS.org", +}, + + +"scheduler": { + "enabled": true, + "cdrs_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], +}, + + +"rals": { + "enabled": true, + "thresholds_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], + "stats_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], +}, + + +"cdrs": { + "enabled": true, + "extra_fields": ["PayPalAccount", "LCRProfile", "ResourceID"], + "chargers_conns":[ + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], + "store_cdrs": true, + "online_cdr_exports": [] +}, + + +"cdre": { + "amqp_localhost": { + "export_format": "*amqp_json_map", + "export_path": "amqp://guest:guest@localhost:5672/?queue_id=cgrates_cdrs", + "content_fields": [ + {"field_id": "CGRID", "type": "*variable", "value": "~CGRID"}, + {"field_id": "RunID", "type": "*variable", "value": "~RunID"}, + {"field_id": "ToR", "type": "*variable", "value": "~ToR"}, + {"field_id": "OriginID", "type": "*variable", "value": "~OriginID"}, + {"field_id": "OriginHost", "type": "*variable", "value": "~OriginHost"}, + {"field_id": "RequestType", "type": "*variable", "value": "~RequestType", }, + {"field_id": "Tenant", "type": "*variable", "value": "~Tenant"}, + {"field_id": "Category", "type": "*variable", "value": "~Category"}, + {"field_id": "Account", "type": "*variable", "value": "~Account"}, + {"field_id": "Destination", "type": "*variable", "value": "~Destination"}, + {"field_id": "SetupTime", "type": "*variable", "value": "~SetupTime"}, + {"field_id": "AnswerTime", "type": "*variable", "value": "~AnswerTime"}, + {"field_id": "Usage", "type": "*variable", "value": "~Usage"}, + {"field_id": "Cost", "type": "*variable", "value": "~Cost"}, + {"field_id": "PayPalAccount", "type": "*variable", "value": "~PayPalAccount"}, + {"field_id": "LCRProfile", "type": "*variable", "value": "~LCRProfile", }, + {"field_id": "ResourceID", "type": "*variable", "value": "~ResourceID", }, + ], + }, +}, + + +"cdrc": [ + { + "id": "tutorial_csv_cdr", + "enabled": true, + "cdr_source_id": "cgr_tutorial", + "content_fields":[ + {"field_id": "OriginID", "type": "*composed", "value": "~3", "mandatory": true}, + {"field_id": "Account", "type": "*composed", "value": "~8", "mandatory": true}, + {"field_id": "Destination", "type": "*composed", "value": "~10", "mandatory": true}, + {"field_id": "SetupTime", "type": "*composed", "value": "~11", "mandatory": true}, + {"field_id": "AnswerTime", "type": "*composed", "value": "~12", "mandatory": true}, + {"field_id": "Usage", "type": "*composed", "value": "~13", "mandatory": true}, + ], + }, +], + + +"sessions": { + "enabled": true, + "resources_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], + "suppliers_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], + "attributes_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], +}, + + +"attributes": { + "enabled": true, + "string_indexed_fields": ["Account"] +}, + + +"chargers": { + "enabled": true, + "attributes_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], + "string_indexed_fields": ["Account"] +}, + + +"resources": { + "enabled": true, + "thresholds_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], + "string_indexed_fields": ["Account"] +}, + + +"stats": { + "enabled": true, + "thresholds_conns": [ + {"address": "127.0.0.1:2012", "transport":"*json"} + ], + "string_indexed_fields": ["Account"] +}, + + +"thresholds": { + "enabled": true, + "string_indexed_fields": ["Account"] +}, + + +"suppliers": { + "enabled": true, + "string_indexed_fields": ["LCRProfile"], + "prefix_indexed_fields":["Destination"], +}, + + +}