mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 10:36:24 +05:00
67 lines
3.5 KiB
JSON
67 lines
3.5 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.
|
|
|
|
|
|
"rals": {
|
|
"enabled": true, // enable Rater service: <true|false>
|
|
},
|
|
|
|
"stor_db": { // database used to store offline tariff plans and CDRs
|
|
"db_password": "CGRateS.org", // password to use when connecting to stordb
|
|
},
|
|
|
|
|
|
"scheduler": {
|
|
"enabled": true, // start Scheduler service: <true|false>
|
|
},
|
|
|
|
|
|
"cdrs": {
|
|
"enabled": true, // start the CDR Server service: <true|false>
|
|
},
|
|
|
|
|
|
"cdrc": [
|
|
{
|
|
"id": "FLATSTORE",
|
|
"enabled": true, // enable CDR client functionality
|
|
"cdrs_conns": [
|
|
{"address": "*internal"} // address where to reach CDR server. <*internal|x.y.z.y:1234>
|
|
],
|
|
"cdr_format": "opensips_flatstore", // CDR file format <csv|freeswitch_csv|fwv|opensips_flatstore>
|
|
"field_separator": "|", // separator used in case of csv files
|
|
"run_delay": 0, // sleep interval in seconds between consecutive runs, 0 to use automation via inotify
|
|
"max_open_files": 1024, // maximum simultaneous files to process
|
|
"data_usage_multiply_factor": 1024, // conversion factor for data usage
|
|
"cdr_in_dir": "/tmp/cgr_flatstore/cdrc/in", // absolute path towards the directory where the CDRs are stored
|
|
"cdr_out_dir": "/tmp/cgr_flatstore/cdrc/out", // absolute path towards the directory where processed CDRs will be moved
|
|
"failed_calls_prefix": "missed_calls", // used in case of flatstore CDRs to avoid searching for BYE records
|
|
"cdr_source_id": "flatstore", // free form field, tag identifying the source of the CDRs within CDRS database
|
|
"cdr_filter": "", // filter CDR records to import
|
|
"partial_record_cache": "1s", // duration to cache partial records when not pairing
|
|
"content_fields":[ // import template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
|
{"tag": "Tor", "cdr_field_id": "tor", "type": "cdrfield", "value": "^*voice", "mandatory": true},
|
|
{"tag": "AccId", "cdr_field_id": "accid", "type": "cdrfield", "mandatory": true},
|
|
{"tag": "ReqType", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "7", "mandatory": true},
|
|
{"tag": "Direction", "cdr_field_id": "direction", "type": "cdrfield", "value": "^out", "mandatory": true},
|
|
{"tag": "Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "^cgrates.org", "mandatory": true},
|
|
{"tag": "Category", "cdr_field_id": "category", "type": "cdrfield", "value": "^call", "mandatory": true},
|
|
{"tag": "Account", "cdr_field_id": "account", "type": "cdrfield", "value": "8", "mandatory": true},
|
|
{"tag": "Subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "8", "mandatory": true},
|
|
{"tag": "Destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "9", "mandatory": true},
|
|
{"tag": "SetupTime", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "6", "mandatory": true},
|
|
{"tag": "AnswerTime", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "6", "mandatory": true},
|
|
{"tag": "Usage", "cdr_field_id": "usage", "type": "cdrfield", "mandatory": true},
|
|
{"tag": "DisconnectCause", "cdr_field_id": "disconnect_cause", "type": "cdrfield", "value": "4;^ ;5", "mandatory": true},
|
|
{"tag": "DialogId", "cdr_field_id": "DialogId", "type": "cdrfield", "value": "11"},
|
|
],
|
|
},
|
|
],
|
|
|
|
}
|