Files
cgrates/data/conf/samples/tutmysql2/cgrates.json
2019-03-15 15:37:55 +01:00

132 lines
2.4 KiB
JSON

{
// 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": []
},
"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"],
},
}