Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "general": {
- "logger":"*stdout",
- "log_level": 7,
- "node_id": "*env:NODE_ID",
- },
- "listen": {
- "rpc_json": ":2012",
- "rpc_gob": ":2013",
- "http": ":2080",
- },
- "data_db": {
- "db_type": "*env:DATADB_TYPE",
- "db_host": "*env:DATADB_HOST",
- "db_port": *env:DATADB_PORT,
- "db_name": "*env:DATADB_NAME",
- "db_password": "*env:DATADB_PASSWORD",
- "items":{
- "*accounts":{"remote":false,"replicate":false},
- "*reverse_destinations": {"remote":false,"replicate":false},
- "*destinations": {"remote":false,"replicate":false},
- "*rating_plans": {"remote":false,"replicate":false},
- "*rating_profiles":{"remote":false,"replicate":false},
- "*actions":{"remote":false,"replicate":false},
- "*action_plans": {"remote":false,"replicate":false},
- "*account_action_plans":{"remote":false,"replicate":false},
- "*action_triggers":{"remote":false,"replicate":false},
- "*shared_groups":{"remote":false,"replicate":false},
- "*timings": {"remote":false,"replicate":false},
- "*resource_profiles":{"remote":false,"replicate":false},
- "*resources":{"remote":false,"replicate":false},
- "*statqueue_profiles": {"remote":false,"replicate":false},
- "*statqueues": {"remote":false,"replicate":false},
- "*threshold_profiles": {"remote":false,"replicate":false},
- "*thresholds": {"remote":false,"replicate":false},
- "*filters": {"remote":false,"replicate":false},
- "*supplier_profiles":{"remote":false,"replicate":false},
- "*attribute_profiles":{"remote":false,"replicate":false},
- "*charger_profiles": {"remote":false,"replicate":false},
- "*dispatcher_profiles":{"remote":false,"replicate":false},
- "*dispatcher_hosts":{"remote":false,"replicate":false},
- "*filter_indexes" :{"remote":false,"replicate":false},
- "*load_ids":{"remote":false,"replicate":false}
- }
- },
- "stor_db": {
- "db_type": "*internal",
- },
- "caches":{
- "*dispatcher_routes": {"limit": -1, "ttl": "2s"}
- },
- "rpc_conns": {
- "*localhost": {
- "conns": [{"address": "127.0.0.1:2012", "transport":"*json"}],
- },
- "ReplicateSessions": {
- "strategy": "*broadcast_sync",
- "conns": [{"address": "127.0.0.1:2012", "transport": "*json"}],
- },
- },
- "schedulers": {
- "enabled": false,
- },
- "cdrs": {
- "enabled": true,
- "store_cdrs": false,
- "chargers_conns":["*internal"],
- "rals_conns":["*localhost"],
- "attributes_conns": ["*internal"],
- "thresholds_conns": ["*internal"],
- "stats_conns": ["*internal"],
- "online_cdr_exports": ["aws_sqs"]
- },
- "chargers": {
- "enabled": true,
- "attributes_conns": ["*internal"],
- },
- "resources": {
- "enabled": true,
- "store_interval": "-1",
- },
- "attributes": {
- "enabled": true,
- },
- "thresholds": {
- "enabled": true,
- "store_interval": "-1",
- },
- "stats": {
- "enabled": true,
- "store_interval": "-1",
- "thresholds_conns": ["*internal"],
- },
- "suppliers": {
- "enabled": true,
- "indexed_selects":true,
- //"string_indexed_fields": [],
- "prefix_indexed_fields": [],
- "nested_fields": false,
- "attributes_conns": ["*internal"],
- "resources_conns": ["*internal"],
- "stats_conns": ["*internal"],
- "rals_conns": ["*localhost"],
- //"default_ratio":1
- },
- "sessions": {
- "enabled": true,
- "listen_bijson": "127.0.0.1:2014",
- "chargers_conns": ["*internal"],
- "rals_conns": ["*localhost"],
- "cdrs_conns": ["*internal"],
- "resources_conns": ["*internal"],
- "thresholds_conns": ["*internal"],
- "stats_conns": ["*internal"],
- "suppliers_conns": ["*internal"],
- "attributes_conns": ["*internal"],
- "debit_interval": "5s",
- },
- "rals": {
- "enabled": true,
- },
- "dispatchers":{
- "enabled": true
- },
- //TODO add IAM Permissions
- "cdre": {
- "aws_sqs": {
- "export_format": "*sqs_json_map",
- "export_path": "http://sqs.eu-central-1.amazonaws.com/?aws_region=eu-central-1&aws_key=XXXXXXXXXX&aws_secret=XXXXXXXXXXXXXXXXXX&queue_id=cdrs-cgrates",
- "fields": [
- {"path": "*exp.CDRType", "type": "*composed", "value": "~*req.CDRType"},
- {"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
- {"path": "*exp.ToR", "type": "*composed", "value": "~*req.ToR"},
- {"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
- {"path": "*exp.OriginHost", "type": "*composed", "value": "~*req.OriginHost"},
- {"path": "*exp.RequestType", "type": "*composed", "value": "~*req.RequestType"},
- {"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
- {"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
- {"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
- {"path": "*exp.Subject", "type": "*composed", "value": "~*req.Subject"},
- {"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
- {"path": "*exp.SetupTime", "type": "*composed", "value": "~*req.SetupTime", "layout": "2006-01-02T15:04:05Z"},
- {"path": "*exp.AnswerTime", "type": "*composed", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z"},
- {"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
- {"path": "*exp.UsageSecs", "type": "*composed", "value": "~*req.Usage{*duration_seconds}"},
- {"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 3},
- {"path": "*exp.OriginCLI", "type": "*composed", "value": "~*req.OriginCLI"},
- {"path": "*exp.OriginCLD", "type": "*composed", "value": "~*req.OriginCLD"},
- {"path": "*exp.OriginIP", "type": "*composed", "value": "~*req.OriginIP"},
- {"path": "*exp.DisconnectCause", "type": "*composed", "value": "~*req.DisconnectCause"},
- {"path": "*exp.UserAgent", "type": "*composed", "value": "~*req.UserAgent"},
- {
- "path": "*exp.ID",
- "type": "*composed",
- "value": "~*ec.Charges[0].Increments[0].Accounting.Balance.ID"
- },
- {
- "path": "*exp.RatePlanID",
- "type": "*composed",
- "value": "~*req.CostDetails.RatingFilters:s/RatingPlanID\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
- },
- {
- "path": "*exp.DestinationPrefix",
- "type": "*composed",
- "value": "~*req.CostDetails.RatingFilters:s/DestinationPrefix\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
- },
- {
- "path": "*exp.DestinationID",
- "type": "*composed",
- "value": "~*req.CostDetails.RatingFilters:s/DestinationID\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
- },
- {
- "path": "*exp.RPSubject",
- "type": "*composed",
- "value": "~*req.CostDetails.RatingFilters:s/Subject\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
- },
- ],
- },
- },
- "apiers": {
- "enabled": true,
- //"scheduler_conns": ["*internal"],
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement