Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // Real-time Charging System for Telecom & ISP environments
- // Copyright (C) ITsysCOM GmbH
- //
- "general": {
- "node_id": "", // identifier of this instance in the cluster, if empty it will be autogenerated
- "logger":"*syslog", // controls the destination of logs <*syslog|*stdout>
- "log_level": 7, // control the level of messages logged (0-emerg to 7-debug)
- "http_skip_tls_verify": true, // if enabled HttpClient will accept any TLS certificate
- "rounding_decimals": 5, // system level precision for floats
- "dbdata_encoding": "*msgpack", // encoding used to store object data in strings: <*msgpack|*json>
- "tpexport_dir": "/var/spool/cgrates/tpe", // path towards export folder for offline TariffPlans
- "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
- "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests
- "failed_posts_ttl": "5s", // time to wait before writing the failed posts in a single file
- "default_request_type": "*prepaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
- "default_category": "call", // default category to consider when missing from requests
- "default_tenant": "cgrates.org", // default tenant to consider when missing from requests
- "default_timezone": "Local", // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
- "default_caching":"*reload", // default actions to do when caching items
- "connect_attempts": 5, // initial server connect attempts
- "reconnects": -1, // number of retries in case of connection lost
- "connect_timeout": "1s", // consider connection unsuccessful on timeout, 0 to disable the feature
- "reply_timeout": "2s", // consider connection down for replies taking longer than this value
- "locking_timeout": "0", // timeout internal locks to avoid deadlocks
- "digest_separator": ",", // separator to use in replies containing data digests
- "digest_equal": ":", // equal symbol used in case of digests
- "rsr_separator": ";", // separator used within RSR fields
- "max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
- "concurrent_requests": 0, // number of active concurrent requests
- "concurrent_strategy": "*busy", // strategy for limit active concurrent requests
- },
- "listen": {
- "rpc_json": ":2012",
- "rpc_gob": ":2013",
- "http": ":2080",
- },
- //"data_db": { // database used to store runtime data (eg: accounts)
- // "db_type": "*redis", // data_db type: <*redis|*mongo>
- // "db_host": "127.0.0.1", // data_db host address
- // "db_port": 6379, // data_db port to reach the database
- // "db_name": "****", // data_db database name to connect to
- // "db_user": "****", // username to use when connecting to data_db
- // "db_password": "****", // password to use when connecting to data_db
- // "redis_sentinel":"", // the name of sentinel when used
- // "query_timeout":"10s",
- // "remote_conns":[],
- // "replication_conns":[],
- // "items":{
- // "*accounts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*reverse_destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*rating_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*rating_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*actions":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*action_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*account_action_plans":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*action_triggers":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*shared_groups":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*timings": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*resource_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*resources":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*statqueue_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*statqueues": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*threshold_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*thresholds": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*filters": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*supplier_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*attribute_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*charger_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*dispatcher_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*dispatcher_hosts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*filter_indexes" :{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // "*load_ids":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
- // },
- //},
- "stor_db": {
- // "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": "****", // stor database name
- // "db_user": "****", // username to use when connecting to stor_db
- "db_password": "CGRateS.org", // password to use when connecting to stor_db
- // "max_open_conns": 100, // maximum database connections opened, not applying for mongo
- // "max_idle_conns": 10, // maximum database connections idle, not applying for mongo
- // "conn_max_lifetime": 0, // maximum amount of time in seconds a connection may be reused (0 for unlimited), not applying for mongo
- // "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
- // "query_timeout":"10s",
- // "sslmode":"disable", // sslmode in case of *postgres
- // "items":{
- // "session_costs": {"limit": -1, "ttl": "", "static_ttl": false},
- // "cdrs": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_timings":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_destinations": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_rates": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_destination_rates": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_rating_plans":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_rating_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_shared_groups": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_actions":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_action_plans":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_action_triggers":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_account_actions": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_resources":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_stats":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_thresholds": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_filters": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_suppliers": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_attributes":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_chargers":{"limit": -1, "ttl": "", "static_ttl": false},
- // "versions": {"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_dispatcher_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
- // "tp_dispatcher_hosts":{"limit": -1, "ttl": "", "static_ttl": false},
- // },
- //
- //
- //
- },
- "schedulers": {
- "enabled": true,
- },
- "rals": {
- "enabled": true,
- "thresholds_conns": ["*localhost"],
- "stats_conns": ["*localhost"],
- "attributes_conns": ["*localhost"],
- },
- "cdrs": {
- "enabled": true,
- "store_cdrs": true,
- "stats_conns": ["*localhost"],
- "chargers_conns": ["*localhost"],
- "resources_conns": ["*localhost"],
- "rals_conns": ["*localhost"],
- // "ees_conns": [""],
- // "stor_db
- "exporters": ["*default"],
- "sessions_cost_retries": 5
- // "online_cdr_exports": ["*default"]
- },
- "ers": {
- "enabled": true
- },
- "ees": {
- "enabled": false,
- // "attributes_conns":[], // RPC Connections IDs
- // "cache": {
- // "*file_csv": {"limit": -1, "ttl": "5s", "static_ttl": false},
- // },
- "exporters": [
- {
- "id": "*default", // identifier of the EventReader profile
- "type": "*amqp_json_map", // exporter type
- "export_path": "amqp://URL", // path where the exported events will be placed
- "concurrent_requests": 0, // maximum simultaneous requests to process, 0 for unlimited
- "opts": {
- // "amqpExchange": "", // Exchange
- // "amqpExchangeType": "fanout", // ExchangeType
- }, // extra options for exporter
- // "timezone": "", // timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
- // "filters": [], // limit parsing based on the filters
- // "flags": [], // flags to influence the event processing
- // "attribute_ids": [], // select Attribute profiles instead of discovering them
- // "attribute_context": "", // context used to discover matching Attribute profiles
- // "synchronous": false, // block processing until export has a result
- "attempts": 1, // export attempts
- // "fields":[
- // {"path":"*exp.Account", "type": "*composed", "value": "~*req.Account"},
- // {"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
- // {"path": "*exp.Source", "type": "*composed", "value": "~*req.source_number"},
- // {"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
- // {"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
- // {"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
- // {"path": "*exp.SetupTime", "type": "*composed", "value": "~*req.SetupTime"},
- // {"path": "*exp.StartTime", "type": "*composed", "value": "~*req.CostDetails:s/StartTime\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"},
- // {"path": "*exp.AnswerTime", "type": "*composed", "value": "~*req.AnswerTime"},
- //
- // ],
- "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests
- },
- ],
- },
- "chargers": {
- "enabled": true,
- "attributes_conns": ["*localhost"],
- },
- "sessions": {
- "enabled": true,
- // "listen_bijson": "127.0.0.1:2014", // address where to listen for bidirectional JSON-RPC requests
- "listen_bijson": ":2014",
- "chargers_conns": ["*localhost"],
- "client_protocol": 1.0,
- "rals_conns": ["*localhost"],
- "cdrs_conns": ["*localhost"],
- "resources_conns": ["*localhost"],
- "routes_conns": ["*localhost"],
- "attributes_conns": ["*localhost"],
- "stats_conns": ["*localhost"],
- "thresholds_conns": ["*localhost"],
- "debit_interval": "60s",
- "channel_sync_interval":"30s",
- "alterable_fields": ["DisconnectReason", "HangupSource", "SIPCode"],
- },
- "attributes": {
- "enabled": true,
- "indexed_selects": true,
- "string_indexed_fields": ["*req.Account"],
- "prefix_indexed_fields": ["*req.Destination"],
- },
- "resources": {
- "enabled": true,
- "thresholds_conns": ["*localhost"],
- "string_indexed_fields": ["*req.Account"],
- "store_interval": "-1",
- "prefix_indexed_fields": ["*req.Destination"],
- },
- "stats": {
- "enabled": true,
- "thresholds_conns": ["*localhost"],
- "string_indexed_fields": ["*req.Account"],
- },
- "thresholds": {
- "enabled": true,
- "string_indexed_fields": ["*req.Account"],
- },
- "routes": {
- "enabled": false,
- "resources_conns": ["*localhost"],
- "stats_conns": ["*localhost"],
- "string_indexed_fields": ["*req.Account"],
- "prefix_indexed_fields": ["*req.Destination"],
- },
- "filters": { // Filters configuration (*new)
- "enabled": true,
- // "stats_conns": [], // connections to StatS for <*stats> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
- "resources_conns": ["*localhost"], // connections to ResourceS for <*resources> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
- "apiers_conns": ["*localhost"], // connections to RALs for <*accounts> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
- },
- "apiers": {
- "enabled": true,
- "scheduler_conns": ["*localhost"],
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment