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
- //
- // 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,
- //},
- //"stor_db": { // database used to store offline tariff plans and CDRs
- // "db_password": "CGRateS.org", // password to use when connecting to stordb
- //},
- "listen": {
- "rpc_json": ":2012", // RPC JSON listening address
- "rpc_gob": ":2013", // RPC GOB listening address
- "http": ":2080", // HTTP listening address
- },
- "stor_db": {
- "db_type": "postgres", // stor database type to use: <mysql|postgres>
- "db_port": 5432, // the port to reach the stordb
- "db_password": "CGRateS.org",
- },
- "rals": {
- "enabled": true,
- "cdrstats_conns": [
- {"address": "*internal"}
- ],
- "historys_conns": [
- {"address": "*internal"}
- ],
- "pubsubs_conns": [
- {"address": "*internal"}
- ],
- "users_conns": [
- {"address": "*internal"}
- ],
- "aliases_conns": [
- {"address": "*internal"}
- ],
- },
- "scheduler": {
- "enabled": true,
- },
- "cdrs": {
- "enabled": true,
- "cdrstats_conns": [
- {"address": "*internal"}
- ],
- },
- "cdrstats": {
- "enabled": true,
- },
- "cdre": {
- "*default": {
- "cdr_format": "csv",
- "field_separator": ",",
- "data_usage_multiply_factor": 1,
- "sms_usage_multiply_factor": 1,
- "generic_usage_multiply_factor": 1,
- "cost_multiply_factor": 1,
- "cost_rounding_decimals": -1,
- "cost_shift_digits": 0,
- "mask_destination_id": "MASKED_DESTINATIONS",
- "mask_length": 0,
- "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
- "header_fields": [],
- "content_fields": [
- {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
- {"tag":"RunId", "type": "*composed", "value": "RunID"},
- {"tag":"Tor", "type": "*composed", "value": "ToR"},
- {"tag":"AccId", "type": "*composed", "value": "OriginID"},
- {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
- {"tag":"Direction", "type": "*composed", "value": "Direction"},
- {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
- {"tag":"Category", "type": "*composed", "value": "Category"},
- {"tag":"Account", "type": "*composed", "value": "Account"},
- {"tag":"Subject", "type": "*composed", "value": "Subject"},
- {"tag":"Destination", "type": "*composed", "value": "Destination"},
- {"tag":"SetupTime", "type": "*datetime", "value": "SetupTime", "layout": "2006-01-02T15:04:05Z07:00"},
- {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
- {"tag":"Usage", "type": "*composed", "value": "usage"},
- {"tag":"Cost", "type": "*composed", "value": "cost"},
- ],
- "trailer_fields": [],
- },
- "customer_tpl": {
- "cdr_format": "csv",
- "field_separator": ";",
- "data_usage_multiply_factor": 1,
- "sms_usage_multiply_factor": 1,
- "generic_usage_multiply_factor": 1,
- "cost_multiply_factor": 1,
- "cost_rounding_decimals": -1,
- "cost_shift_digits": 0,
- "mask_destination_id": "MASKED_DESTINATIONS",
- "mask_length": 0,
- "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
- "header_fields": [],
- "content_fields": [
- {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
- {"tag":"AccId", "type": "*composed", "value": "OriginID"},
- {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
- {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
- {"tag":"Category", "type": "*composed", "value": "Category"},
- {"tag":"Subject", "type": "*composed", "value": "Account"},
- {"tag":"Destination", "type": "*composed", "value": "~Destination:s/^1(\\d+)/+$1/:s/^\\+(\\d+)/00$1/"},
- {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
- {"tag":"Usage", "type": "*composed", "value": "Usage"},
- {"tag":"Cost", "type": "*composed", "value": "Cost"},
- ],
- "trailer_fields": [],
- }
- },
- "sm_generic": {
- "enabled": true,
- },
- //"sm_kamailio": {
- // "enabled": true,
- // "create_cdr": true,
- //},
- "historys": {
- "enabled": true,
- "history_dir": "/tmp/cgr_kamevapi/cgrates/history",
- },
- "pubsubs": {
- "enabled": true,
- },
- "aliases": {
- "enabled": true,
- },
- "users": {
- "enabled": true,
- "indexes": ["Uuid"],
- },
- "resources": {
- "enabled": true,
- "store_interval": "1s",
- "thresholds_conns": [
- {"address": "*internal"}
- ],
- },
- "stats": {
- "enabled": true,
- "store_interval": "1s",
- "thresholds_conns": [
- {"address": "*internal"}
- ],
- },
- "thresholds": {
- "enabled": true,
- "store_interval": "1s",
- },
- }
Add Comment
Please, Sign In to add comment