Files
cgrates/data/conf/samples/sipagent_mongo/cgrates.json
2025-10-19 13:15:57 +02:00

91 lines
1.6 KiB
JSON

{
// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
// Copyright (C) ITsysCOM GmbH
//
// This file contains the default configuration hardcoded into CGRateS.
// This is what you get when you load CGRateS with an empty configuration file.
"logger": {
"level": 7
},
"db": {
"db_conns": {
"*default": {
"db_type": "mongo",
"db_host": "127.0.0.1",
"db_port": 27017,
"db_name": "10",
"db_user": "cgrates"
},
"StorDB": {
"db_type": "mongo",
"db_host": "127.0.0.1",
"db_port": 27017,
"db_name": "cgrates",
"db_user": "cgrates"
}
},
"items": {
"*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
}
},
"rates": {
"enabled": true,
},
"sessions": {
"enabled": true,
"attributes_conns": ["*localhost"],
"rates_conns": ["*internal"],
"cdrs_conns": ["*internal"],
"chargers_conns": ["*internal"],
"routes_conns": ["*localhost"],
},
"cdrs": {
"enabled": true,
"rates_conns": ["*internal"],
},
"chargers": {
"enabled": true,
"attributes_conns": ["*localhost"], // connections to AttributeS for event fields altering <""|127.0.0.1:2013>
},
"attributes": {
"enabled": true,
"indexed_selects": false, // enable profile matching exclusively on indexes
},
"routes": {
"enabled": true,
"rates_conns": ["*localhost"],
},
"sip_agent": {
"enabled": true,
},
"admins": {
"enabled": true,
},
"templates": {
"*err": [
{"tag": "Request", "path": "*rep.Request", "type": "*constant",
"value": "SIP/2.0 500 Internal Server Error", "mandatory": true},
],
}
}