Files
cgrates/data/conf/samples/tutmongo2_gob/cgrates.json
2020-09-04 12:32:09 +02:00

161 lines
3.7 KiB
JSON

{
// CGRateS Configuration file
//
"general": {
"node_id": "CGRateSTutorial",
"log_level": 7
},
"rpc_conns": {
"conn1": {
"strategy": "*first",
"conns": [{"address": "127.0.0.1:2013", "transport":"*gob"}],
},
},
"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": ["conn1"],
},
"rals": {
"enabled": true,
"thresholds_conns": ["conn1"],
"stats_conns": ["conn1"],
},
"cdrs": {
"enabled": true,
"extra_fields": ["PayPalAccount", "LCRProfile", "ResourceID"],
"chargers_conns":["conn1"],
"store_cdrs": true,
"online_cdr_exports": [],
"ees_conns": ["*localhost"]
},
"ees": {
"enabled": true,
"attributes_conns":["*internal"],
"exporters": [
{
"id": "amqp_localhost",
"type": "*amqp_json_map",
"export_path": "amqp://guest:guest@localhost:5672/",
"opts": {
"queue_id":"cgrates_cdrs",
},
"tenant": "cgrates.org",
"attempts": 1,
"fields":[
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
{"tag": "SetupTime", "path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"},
{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
{"tag": "PayPalAccount", "path": "*exp.PayPalAccount", "type": "*variable", "value": "~*req.PayPalAccount"},
{"tag": "LCRProfile", "path": "*exp.LCRProfile", "type": "*variable", "value": "~*req.LCRProfile"},
{"tag": "ResourceID", "path": "*exp.ResourceID", "type": "*variable", "value": "~*req.ResourceID"}
],
},
],
},
"sessions": {
"enabled": true,
"resources_conns": ["conn1"],
"routes_conns": ["conn1"],
"attributes_conns": ["conn1"],
"rals_conns": ["*internal"],
"cdrs_conns": ["*internal"],
"chargers_conns": ["*internal"],
},
"attributes": {
"enabled": true,
"string_indexed_fields": ["*req.Account"]
},
"chargers": {
"enabled": true,
"attributes_conns": ["conn1"],
"string_indexed_fields": ["*req.Account"]
},
"resources": {
"enabled": true,
"thresholds_conns": ["conn1"],
"string_indexed_fields": ["*req.Account"]
},
"stats": {
"enabled": true,
"thresholds_conns": ["conn1"],
"string_indexed_fields": ["*req.Account"]
},
"thresholds": {
"enabled": true,
"string_indexed_fields": ["*req.Account"]
},
"routes": {
"enabled": true,
"string_indexed_fields": ["*req.LCRProfile"],
"prefix_indexed_fields":["*req.Destination"],
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
"filters": {
"apiers_conns": ["*internal"],
},
}