diff --git a/data/conf/cgrates/cgrates.json b/data/conf/cgrates/cgrates.json index 30d2f3afa..835359828 100755 --- a/data/conf/cgrates/cgrates.json +++ b/data/conf/cgrates/cgrates.json @@ -151,8 +151,28 @@ // } // }, - - +// "stor_db": { // database used to store offline tariff plans and CDRs +// "db_type": "*mysql", // stor database type to use: <*mongo|*mysql|*postgres|*internal> +// "db_host": "127.0.0.1", // the host to connect to +// "db_port": 3306, // the port to reach the stor_db +// "db_name": "cgrates", // stor database name +// "db_user": "cgrates", // username to use when connecting to stor_db +// "db_password": "", // password to use when connecting to stor_db +// "string_indexed_fields": [], // indexes on cdrs table to speed up queries, used in case of *mongo and *internal +// "prefix_indexed_fields": [], // prefix indexes on cdrs table to speed up queries, used in case of *internal +// "opts": { +// "sqlMaxOpenConns": 100, // maximum database connections opened, not applying for mongo +// "sqlMaxIdleConns": 10, // maximum database connections idle, not applying for mongo +// "sqlConnMaxLifetime": "0", // maximum amount of time a connection may be reused (0 for unlimited), not applying for mongo +// "mysqlDSNParams":{}, // DSN params for opening db +// "mongoQueryTimeout":"10s", // timeout for query when mongo is used +// "pgSSLMode":"disable", // ssl mode in case of *postgres +// "mysqlLocation": "Local", // the location the time from mysql is retrived +// }, +// "items":{ +// "*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false}, +// }, +// }, // "listen": { // "rpc_json": "127.0.0.1:2012", // RPC JSON listening address @@ -246,7 +266,8 @@ // "*rpc_connections": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate": false}, // RPC connections caching // "*uch": {"limit": -1, "ttl": "3h", "static_ttl": false, "remote":false, "replicate": false}, // User cache // "*stir": {"limit": -1, "ttl": "3h", "static_ttl": false, "remote":false, "replicate": false}, // stirShaken cache keys -// "*apiban":{"limit": -1, "ttl": "2m", "static_ttl": false, "remote":false, "replicate": false}, +// "*apiban":{"limit": -1, "ttl": "2m", "static_ttl": false, "remote":false, "replicate": false}, +// "*sentrypeer":{"limit": -1, "ttl": "24h", "static_ttl": true, "remote":false, "replicate": false}, // "*caps_events": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate": false}, // caps cached samples // "*replication_hosts": {"limit": 0, "ttl": "", "static_ttl": false, "remote":false, "replicate": false}, // the replication hosts cache(used when replication_filtered is enbled) // }, @@ -266,6 +287,7 @@ // "cdrs": { // CDRs config // "enabled": false, // start the CDR Server: // "extra_fields": [], // extra fields to store in CDRs for non-generic CDRs (ie: FreeSWITCH JSON) +// "store_cdrs": true, // store cdrs in StorDB // "session_cost_retries": 5, // number of queries to session_costs before recalculating CDR // "chargers_conns": [], // connection to ChargerS for CDR forking, empty to disable billing for CDRs: <""|*internal|$rpc_conns_id> // "attributes_conns": [], // connection to AttributeS for altering *raw CDRs, empty to disable attributes functionality: <""|*internal|$rpc_conns_id> @@ -362,11 +384,16 @@ // // "amqpQueueID": "cgrates_cdrs", // the queue id for AMQP and AMQPv1 readers from were the events are read // // "amqpQueueIDProcessed": "", // the queue id for AMQP and AMQPv1 readers were the events are sent after they are processed -// // AMQP -// // "amqpConsumerTag": "cgrates", // the ID of the consumer -// // "amqpExchange": "", -// // "amqpExchangeType": "", -// // "amqpRoutingKey": "", +// // "amqpUsername": "", // amqp 1.0 exclusive, used for SASL PLAIN auth, usually represents the policy name +// // "amqpPassword": "", // amqp 1.0 exclusive, used for SASL PLAIN auth, populated with one of its policy's keys + +// // "amqpUsernameProcessed": "", +// // "amqpPasswordProcessed": "", + +// // "amqpConsumerTag": "cgrates", // the ID of the consumer, amqp 0.9.1 exclusive +// // "amqpExchange": "", // amqp 0.9.1 exclusive +// // "amqpExchangeType": "", // amqp 0.9.1 exclusive +// // "amqpRoutingKey": "", // amqp 0.9.1 exclusive // // "amqpExchangeProcessed": "", // // "amqpExchangeTypeProcessed": "", @@ -420,6 +447,7 @@ // // nats // // "natsJetStream": false, // controls if the nats reader uses the JetStream // // "natsConsumerName": "cgrates", // in case of JetStream the name of the consumer +// // "natsStreamName": "cdrs", // the name of the NATS JetStream stream from which the consumer will read messages // "natsSubject": "cgrates_cdrs", // the subject from were the events are read // // "natsQueueID": "", // the queue id the consumer listen to // // "natsJWTFile": "", // the path to the JWT file( can be the chained file or the user file) @@ -436,7 +464,7 @@ // // "natsCertificateAuthorityProcessed": "", // the path to a custom certificate authority file( used by tls) // // "natsClientCertificateProcessed": "", // the path to a client certificate( used by tls) // // "natsClientKeyProcessed": "", // the path to a client key( used by tls) -// // "natsJetStreamMaxWaitProcessed": "5s ", // the maximum amount of time to wait for a response +// // "natsJetStreamMaxWaitProcessed": "5s", // the maximum amount of time to wait for a response // }, // "tenant": "", // tenant used by import // "timezone": "", // timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB> @@ -487,6 +515,21 @@ // // Elasticsearch options +// // "elsCloud":true, //ExportPath will be an CLoud ID deployment +// // "elsApiKey": "", // Base64-encoded token for authorization; if set, overrides username/password and service token. +// // "elsUsername":"", // Username for HTTP Basic Authentication. +// // "elsPassword":"", // Password for HTTP Basic Authentication. +// // "elsServiceToken":"" // Service token for authorization; if set, overrides username/password. +// // "elsCertificateFingerPrint":"" // SHA256 hex fingerprint given by Elasticsearch on first launch. +// // "elsDiscoverNodesOnStart":false, // Discover nodes when initializing the client. Default: false. +// // "elsDiscoverNodesInterval":"10s", // Discover nodes periodically. Default: disabled. +// // "elsEnableDebugLogger":"false", // Enable the debug logging. +// // "elsLogger":"", //The logger type can either be elsJson,elsColor and elsText +// // "elsCompressRequestBody":false, //Enable compression on requests +// // "elsCompressRequestBodyLevel":0, //Default: gzip.DefaultCompression, 9:BestCompression,-2:HuffmanOnly,1:BestSpeed +// // "elsRetryOnStatus":[], // List of status codes for retry. Default: 502, 503, 504. +// // "elsMaxRetries": 0, // Default: 3. +// // "elsDisableRetry": false, // Default: false. // // "elsIndex": "", // ElsIndex // // "elsIfPrimaryTerm": 0, // ElsIfPrimaryTerm // // "elsIfSeqNo": 0, // ElsIfSeqNo @@ -520,9 +563,11 @@ // // AMQP // // "amqpQueueID": "cgrates_cdrs", // the queue id for AMQP exporters from were the events are exported -// // "amqpRoutingKey": "", // RoutingKey -// // "amqpExchange": "", // Exchange -// // "amqpExchangeType": "", // ExchangeType +// // "amqpRoutingKey": "", // RoutingKey, amqp 0.9.1 exclusive +// // "amqpExchange": "", // Exchange, amqp 0.9.1 exclusive +// // "amqpExchangeType": "", // ExchangeType, amqp 0.9.1 exclusive +// // "amqpUsername": "", // amqp 1.0 exclusive, used for SASL PLAIN auth, usually represents the policy name +// // "amqpPassword": "", // amqp 1.0 exclusive, used for SASL PLAIN auth, populated with one of its policy's keys // // SQS and S3 @@ -919,8 +964,12 @@ // "dns_agent": { // "enabled": false, // enables the DNS agent: -// "listen": "127.0.0.1:2053", // address where to listen for DNS requests -// "listen_net": "udp", // network to listen on +// "listeners":[ +// { +// "address": "127.0.0.1:53", // address where to listen for DNS requests +// "network": "udp" // network to listen on +// } +// ], // "sessions_conns": ["*internal"], // "timezone": "", // timezone of the events if not specified // "request_processors": [ // request processors to be applied to DNS messages @@ -1735,6 +1784,16 @@ // "keys": [], // }, +// "sentrypeer":{ +// "client_id":"", +// "client_secret":"", +// "token_url":"https://authz.sentrypeer.com/oauth/token", +// "ips_url":"https://sentrypeer.com/api/ip-addresses", +// "numbers_url":"https://sentrypeer.com/api/phone-numbers", +// "audience":"https://sentrypeer.com/api", +// "grant_type":"client_credentials", +// }, + // "actions": { // ActionS config // "enabled": false, // starts attribute service: