{ // CGRateS Configuration file // "general": { "log_level": 7, "reply_timeout": "50s" }, "listen": { "rpc_json": ":2012", "rpc_gob": ":2013", "http": ":2080" }, "data_db": { "db_type": "*internal" }, "stor_db": { "db_type": "*internal" }, "rals": { "enabled": true, "thresholds_conns": ["*internal"], "max_increments":3000000 }, "schedulers": { "enabled": true, "cdrs_conns": ["*internal"], "stats_conns": ["*localhost"] }, "cdrs": { "enabled": true, "chargers_conns":["*internal"] }, "attributes": { "enabled": true, "stats_conns": ["*localhost"], "resources_conns": ["*localhost"], "admins_conns": ["*localhost"] }, "chargers": { "enabled": true, "attributes_conns": ["*internal"] }, "resources": { "enabled": true, "store_interval": "-1", "thresholds_conns": ["*internal"] }, "stats": { "enabled": true, "store_interval": "-1", "thresholds_conns": ["*internal"] }, "thresholds": { "enabled": true, "store_interval": "-1" }, "routes": { "enabled": true, "prefix_indexed_fields":["*req.Destination"], "stats_conns": ["*internal"], "resources_conns": ["*internal"], "rals_conns": ["*internal"] }, "sessions": { "enabled": true, "routes_conns": ["*internal"], "resources_conns": ["*internal"], "attributes_conns": ["*internal"], "rals_conns": ["*internal"], "cdrs_conns": ["*internal"], "chargers_conns": ["*internal"] }, "admins": { "enabled": true, "scheduler_conns": ["*internal"] }, "rates": { "enabled": true }, "actions": { "enabled": true, "accounts_conns": ["*localhost"] }, "accounts": { "enabled": true }, "filters": { "stats_conns": ["*internal"], "resources_conns": ["*internal"], "admins_conns": ["*internal"] }, "loaders": [ { "id": "LoaderRatesTest", "enabled": true, "tenant": "cgrates.org", "tp_in_dir": "/usr/share/cgrates/tariffplans/100_thousand_dest", "tp_out_dir": "", "run_delay": "0", "data":[ { "type": "*rate_profiles", "file_name": "Rates.csv", "fields": [ {"tag": "TenantID", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true}, {"tag": "ProfileID", "path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true}, {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~*req.2"}, {"tag": "Weights", "path": "Weights", "type": "*variable", "value": "~*req.3"}, {"tag": "MinCost", "path": "MinCost", "type": "*variable", "value": "~*req.4"}, {"tag": "MaxCost", "path": "MaxCost", "type": "*variable", "value": "~*req.5"}, {"tag": "MaxCostStrategy", "path": "MaxCostStrategy", "type": "*variable", "value": "~*req.6"}, {"tag": "RateID", "path": "RateID", "type": "*variable", "value": "~*req.7"}, {"tag": "RateFilterIDs", "path": "RateFilterIDs", "type": "*variable", "value": "~*req.8"}, {"tag": "RateActivationTimes", "path": "RateActivationTimes", "type": "*variable", "value": "~*req.9"}, {"tag": "RateWeights", "path": "RateWeights", "type": "*variable", "value": "~*req.10"}, {"tag": "RateBlocker", "path": "RateBlocker", "type": "*variable", "value": "~*req.11"}, {"tag": "RateIntervalStart", "path": "RateIntervalStart", "type": "*variable", "value": "~*req.12"}, {"tag": "RateFixedFee", "path": "RateFixedFee", "type": "*variable", "value": "~*req.13"}, {"tag": "RateRecurrentFee", "path": "RateRecurrentFee", "type": "*variable", "value": "~*req.14"}, {"tag": "RateUnit", "path": "RateUnit", "type": "*variable", "value": "~*req.15"}, {"tag": "RateIncrement", "path": "RateIncrement", "type": "*variable", "value": "~*req.16"}, ], }, ], }, ], }