Files
cgrates/data/conf/samples/sipagent_mongo/cgrates.json
2023-10-25 10:16:07 +02:00

90 lines
1.7 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.
"general": {
"log_level": 7, // control the level of messages logged (0-emerg to 7-debug)
},
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
"db_type": "*mongo", // stor database type to use: <mysql|postgres>
"db_port": 27017, // the port to reach the stordb
"db_name": "10",
},
"stor_db": {
"db_type": "*mongo", // stor database type to use: <mysql|postgres>
"db_port": 27017, // the port to reach the stordb
"db_name": "cgrates",
"db_password": "",
},
"schedulers": {
"enabled": true,
"cdrs_conns": ["*internal"],
},
"sessions": {
"enabled": true,
"attributes_conns": ["*localhost"],
"rals_conns": ["*internal"],
"cdrs_conns": ["*internal"],
"chargers_conns": ["*internal"],
"routes_conns": ["*localhost"],
},
"rals": {
"enabled": true,
},
"cdrs": {
"enabled": true,
"rals_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,
"rals_conns": ["*localhost"],
},
"sip_agent": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
"templates": {
"*err": [
{"tag": "Request", "path": "*rep.Request", "type": "*constant",
"value": "SIP/2.0 500 Internal Server Error", "mandatory": true},
],
}
}