mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
127 lines
2.5 KiB
JSON
127 lines
2.5 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
//
|
|
// used by gen/cdre_it_test.go
|
|
|
|
|
|
"general": {
|
|
"log_level": 7,
|
|
"reply_timeout": "50s",
|
|
},
|
|
|
|
|
|
"listen": {
|
|
"rpc_json": ":2012",
|
|
"rpc_gob": ":2013",
|
|
"http": ":2080",
|
|
},
|
|
|
|
|
|
"data_db": {
|
|
"db_type": "*internal",
|
|
},
|
|
|
|
|
|
"stor_db": {
|
|
"db_type": "*internal",
|
|
},
|
|
|
|
|
|
"rals": {
|
|
"enabled": true,
|
|
"thresholds_conns": ["*internal"],
|
|
"max_increments":3000000,
|
|
},
|
|
|
|
|
|
"schedulers": {
|
|
"enabled": true,
|
|
"cdrs_conns": ["*internal"],
|
|
},
|
|
|
|
"cdre": {
|
|
"TestTutITExportCDR": {
|
|
"fields": [
|
|
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
|
{"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
|
|
{"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
|
{"path": "*exp.RequestType", "type": "*composed", "value": "~*req.RequestType"},
|
|
{"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.Destination", "type": "*composed", "value": "~*req.Destination"},
|
|
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
|
{"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
|
|
{"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
|
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
|
],
|
|
},
|
|
},
|
|
|
|
"cdrs": {
|
|
"enabled": true,
|
|
"chargers_conns":["*internal"],
|
|
},
|
|
|
|
|
|
"attributes": {
|
|
"enabled": true,
|
|
},
|
|
|
|
|
|
"chargers": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"resources": {
|
|
"enabled": true,
|
|
"store_interval": "-1",
|
|
"thresholds_conns": ["*internal"]
|
|
},
|
|
|
|
|
|
"stats": {
|
|
"enabled": true,
|
|
"store_interval": "-1",
|
|
"thresholds_conns": ["*internal"],
|
|
},
|
|
|
|
"thresholds": {
|
|
"enabled": true,
|
|
"store_interval": "-1",
|
|
},
|
|
|
|
|
|
"suppliers": {
|
|
"enabled": true,
|
|
"prefix_indexed_fields":["Destination"],
|
|
"stats_conns": ["*internal"],
|
|
"resources_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"sessions": {
|
|
"enabled": true,
|
|
"suppliers_conns": ["*internal"],
|
|
"resources_conns": ["*internal"],
|
|
"attributes_conns": ["*internal"],
|
|
"rals_conns": ["*internal"],
|
|
"cdrs_conns": ["*internal"],
|
|
"chargers_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"apiers": {
|
|
"enabled": true,
|
|
"scheduler_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"filters": {
|
|
"apiers_conns": ["*internal"],
|
|
},
|
|
|
|
}
|