Files
cgrates/data/conf/samples/cdrewithattributes/cgrates.json
2023-06-13 20:14:58 +02:00

80 lines
1.9 KiB
JSON

{
// CGRateS Configuration file
//
"general": {
"log_level": 7,
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
"db_type": "redis", // data_db type: <redis|mongo>
"db_port": 6379, // data_db port to reach the database
"db_name": "10", // data_db database name to connect to
},
"stor_db": {
"db_password": "CGRateS.org",
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"cdrs": {
"enabled": true,
},
"cdre": {
"TemplateWithAttributeS": {
"export_format": "*file_csv",
"export_path": "/tmp/",
"attributes_context":"*cdre",
"filters" :["*string:~*req.Source:test2"],
"fields": [
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
{"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
{"path": "*exp.Source", "type": "*composed", "value": "~*req.Source"},
{"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
{"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
{"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
{"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
{"path": "*exp.Subject", "type": "*composed", "value": "~*req.Subject"},
{"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
{"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
{"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
],
},
},
"attributes": {
"enabled": true,
},
"apiers": {
"enabled": true,
"caches_conns":["*internal"],
"scheduler_conns": ["*internal"],
"attributes_conns": ["*internal"], // connections to AttributeS for CDRExporter
},
}