mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
55 lines
2.7 KiB
JSON
55 lines
2.7 KiB
JSON
{
|
|
|
|
// 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": {
|
|
"default_reqtype": "*pseudoprepaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
|
|
},
|
|
|
|
"mediator": {
|
|
"enabled": true, // starts Mediator service: <true|false>.
|
|
"reconnects": 5, // number of reconnects to rater/cdrs before giving up.
|
|
"rater": "internal", // address where to reach the Rater: <internal|x.y.z.y:1234>
|
|
"cdrstats": "", // address where to reach the cdrstats service. Empty to disable stats gathering out of mediated CDRs <""|internal|x.y.z.y:1234>
|
|
"store_disable": false, // when true, CDRs will not longer be saved in stordb, useful for cdrstats only scenario
|
|
"cdr_replication":[ // replicate the rated CDR to a number of servers
|
|
{"transport": "*http_post", "server": "1.2.3.4:2080/cdr_post"},
|
|
{"transport": "*http_jsonrpc", "server": "2.3.4.5:2080/jsonrpc", "synchronous": true, "cdr_filter": "~account:s/(.+)/1001/"},
|
|
],
|
|
},
|
|
|
|
"cdrc": {
|
|
"CDRC-CSV1": {
|
|
"enabled": true, // enable CDR client functionality
|
|
"cdr_in_dir": "/tmp/cgrates/cdrc1/in", // absolute path towards the directory where the CDRs are stored
|
|
"cdr_out_dir": "/tmp/cgrates/cdrc1/out", // absolute path towards the directory where processed CDRs will be moved
|
|
"cdr_source_id": "csv1", // free form field, tag identifying the source of the CDRs within CDRS database
|
|
},
|
|
"CDRC-CSV2": {
|
|
"enabled": true, // enable CDR client functionality
|
|
"cdr_in_dir": "/tmp/cgrates/cdrc2/in", // absolute path towards the directory where the CDRs are stored
|
|
"cdr_out_dir": "/tmp/cgrates/cdrc2/out", // absolute path towards the directory where processed CDRs will be moved
|
|
"data_usage_multiply_factor": 0.000976563,
|
|
"run_delay": 1,
|
|
"cdr_source_id": "csv2", // free form field, tag identifying the source of the CDRs within CDRS database
|
|
"cdr_fields":[ // import template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
|
{"cdr_field_id": "tor", "value": "~7:s/^(voice|data|sms)$/*$1/"},
|
|
{"cdr_field_id": "answer_time", "value": "1"},
|
|
{"cdr_field_id": "usage", "value": "~9:s/^(\\d+)$/${1}s/"},
|
|
],
|
|
},
|
|
},
|
|
|
|
"sm_freeswitch": {
|
|
"enabled": true, // starts SessionManager service: <true|false>
|
|
"connections":[ // instantiate connections to multiple FreeSWITCH servers
|
|
{"server": "1.2.3.4:8021", "password": "ClueCon", "reconnects": 5},
|
|
{"server": "2.3.4.5:8021", "password": "ClueCon", "reconnects": 5},
|
|
],
|
|
},
|
|
|
|
} |