mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
139 lines
2.8 KiB
JSON
139 lines
2.8 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
//
|
|
|
|
|
|
"general": {
|
|
"node_id": "CGRateSTutorial",
|
|
"log_level": 7
|
|
},
|
|
|
|
|
|
"listen": {
|
|
"rpc_json": ":2012",
|
|
"rpc_gob": ":2013",
|
|
"http": ":2080",
|
|
},
|
|
|
|
|
|
"data_db": {
|
|
"db_type": "mongo",
|
|
"db_port": 27017,
|
|
},
|
|
|
|
|
|
"stor_db": {
|
|
"db_type": "mongo",
|
|
"db_port": 27017,
|
|
},
|
|
|
|
|
|
|
|
"schedulers": {
|
|
"enabled": true,
|
|
"cdrs_conns": ["*localhost"],
|
|
},
|
|
|
|
|
|
"rals": {
|
|
"enabled": true,
|
|
"thresholds_conns": ["*localhost"],
|
|
"stats_conns": ["*localhost"],
|
|
},
|
|
|
|
|
|
"cdrs": {
|
|
"enabled": true,
|
|
"extra_fields": ["PayPalAccount", "LCRProfile", "ResourceID"],
|
|
"chargers_conns":["*localhost"],
|
|
"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",
|
|
"fields": [
|
|
{"path": "CGRID", "type": "*variable", "value": "~CGRID"},
|
|
{"path": "RunID", "type": "*variable", "value": "~RunID"},
|
|
{"path": "ToR", "type": "*variable", "value": "~ToR"},
|
|
{"path": "OriginID", "type": "*variable", "value": "~OriginID"},
|
|
{"path": "OriginHost", "type": "*variable", "value": "~OriginHost"},
|
|
{"path": "RequestType", "type": "*variable", "value": "~RequestType", },
|
|
{"path": "Tenant", "type": "*variable", "value": "~Tenant"},
|
|
{"path": "Category", "type": "*variable", "value": "~Category"},
|
|
{"path": "Account", "type": "*variable", "value": "~Account"},
|
|
{"path": "Destination", "type": "*variable", "value": "~Destination"},
|
|
{"path": "SetupTime", "type": "*variable", "value": "~SetupTime"},
|
|
{"path": "AnswerTime", "type": "*variable", "value": "~AnswerTime"},
|
|
{"path": "Usage", "type": "*variable", "value": "~Usage"},
|
|
{"path": "Cost", "type": "*variable", "value": "~Cost"},
|
|
{"path": "PayPalAccount", "type": "*variable", "value": "~PayPalAccount"},
|
|
{"path": "LCRProfile", "type": "*variable", "value": "~LCRProfile", },
|
|
{"path": "ResourceID", "type": "*variable", "value": "~ResourceID", },
|
|
],
|
|
},
|
|
},
|
|
|
|
|
|
"sessions": {
|
|
"enabled": true,
|
|
"resources_conns": ["*localhost"],
|
|
"suppliers_conns": ["*localhost"],
|
|
"attributes_conns": ["*localhost"],
|
|
"rals_conns": ["*internal"],
|
|
"cdrs_conns": ["*internal"],
|
|
"chargers_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"attributes": {
|
|
"enabled": true,
|
|
"string_indexed_fields": ["Account"]
|
|
},
|
|
|
|
|
|
"chargers": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*localhost"],
|
|
"string_indexed_fields": ["Account"]
|
|
},
|
|
|
|
|
|
"resources": {
|
|
"enabled": true,
|
|
"thresholds_conns": ["*localhost"],
|
|
"string_indexed_fields": ["Account"]
|
|
},
|
|
|
|
|
|
"stats": {
|
|
"enabled": true,
|
|
"thresholds_conns": ["*localhost"],
|
|
"string_indexed_fields": ["Account"]
|
|
},
|
|
|
|
|
|
"thresholds": {
|
|
"enabled": true,
|
|
"string_indexed_fields": ["Account"]
|
|
},
|
|
|
|
|
|
"suppliers": {
|
|
"enabled": true,
|
|
"string_indexed_fields": ["LCRProfile"],
|
|
"prefix_indexed_fields":["Destination"],
|
|
},
|
|
|
|
|
|
"apiers": {
|
|
"enabled": true,
|
|
"scheduler_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
}
|