diff --git a/data/conf/cgrates/cgrates.json b/data/conf/cgrates/cgrates.json index 7f4f55585..090bc1e1e 100644 --- a/data/conf/cgrates/cgrates.json +++ b/data/conf/cgrates/cgrates.json @@ -6,6 +6,7 @@ // This file contains the default configuration hardcoded into CGRateS. // This is what you get when you load CGRateS with an empty configuration file. + //"general": { // "http_skip_tls_veify": false, // if enabled Http Client will accept any TLS certificate // "rounding_decimals": 10, // system level precision for floats @@ -111,14 +112,16 @@ // "mediation_run_ids": [], // filter on CDR MediationRunId fields // "rated_accounts": [], // filter on CDR RatedAccount fields // "rated_subjects": [], // filter on CDR RatedSubject fields -// "cost_intervals": [], // filter on CDR Cost +// "cost_interval": [], // filter on CDR Cost //}, //"cdre": { -// "CDRE-FW1": { +// "*default": { // "cdr_format": "csv", // exported CDRs format -// "data_usage_multiply_factor": 1.0, // multiply data usage before export (eg: convert from KBytes to Bytes) +// "field_separator": ",", +// "data_usage_multiply_factor": 1, // multiply data usage before export (eg: convert from KBytes to Bytes) +// "sms_usage_multiply_factor": 1, // multiply data usage before export (eg: convert from SMS unit to call duration in some billing systems) // "cost_multiply_factor": 1, // multiply cost before export, eg: add VAT // "cost_rounding_decimals": -1, // rounding decimals for Cost values. -1 to disable rounding // "cost_shift_digits": 0, // shift digits in the cost on export (eg: convert from EUR to cents) @@ -127,21 +130,21 @@ // "export_dir": "/var/log/cgrates/cdre", // path where the exported CDRs will be placed // "header_fields": [], // template of the exported header fields // "content_fields": [ // template of the exported content fields -// {"tag": "CgrId", "type": "cdrfield", "value": "cgrid", "width": "40", "mandatory": "true"}, -// {"tag":"RunId", "type": "cdrfield", "value": "mediation_runid", "width": 20}, -// {"tag":"Tor", "type": "cdrfield", "value": "tor", "width": 6}, -// {"tag":"AccId", "type": "cdrfield", "value": "accid", "width": 36}, -// {"tag":"ReqType", "type": "cdrfield", "value": "reqtype", "width": 13}, -// {"tag":"Direction", "type": "cdrfield", "value": "direction", "width": 4}, -// {"tag":"Tenant", "type": "cdrfield", "value": "tenant", "width": 24}, -// {"tag":"Category", "type": "cdrfield", "value": "category", "width": 10}, -// {"tag":"Account", "type": "cdrfield", "value": "account", "width": 24}, -// {"tag":"Subject", "type": "cdrfield", "value": "subject", "width": 24}, -// {"tag":"Destination", "type": "cdrfield", "value": "destination", "width": 24}, -// {"tag":"SetupTime", "type": "cdrfield", "value": "setup_time", "layout": "2006-01-02T15:04:05Z07:00", "width": 30}, -// {"tag":"AnswerTime", "type": "cdrfield", "value": "answer_time", "layout": "2006-01-02T15:04:05Z07:00", "width": 30}, -// {"tag":"Usage", "type": "cdrfield", "value": "usage", "width": 30}, -// {"tag":"Cost", "type": "cdrfield", "value": "cost", "width": 24}, +// {"tag": "CgrId", "cdr_field_id": "cgrid", "type": "cdrfield", "value": "cgrid"}, +// {"tag":"RunId", "cdr_field_id": "mediation_runid", "type": "cdrfield", "value": "mediation_runid"}, +// {"tag":"Tor", "cdr_field_id": "tor", "type": "cdrfield", "value": "tor"}, +// {"tag":"AccId", "cdr_field_id": "accid", "type": "cdrfield", "value": "accid"}, +// {"tag":"ReqType", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "reqtype"}, +// {"tag":"Direction", "cdr_field_id": "direction", "type": "cdrfield", "value": "direction"}, +// {"tag":"Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"}, +// {"tag":"Category", "cdr_field_id": "category", "type": "cdrfield", "value": "category"}, +// {"tag":"Account", "cdr_field_id": "account", "type": "cdrfield", "value": "account"}, +// {"tag":"Subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "subject"}, +// {"tag":"Destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "destination"}, +// {"tag":"SetupTime", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "setup_time", "layout": "2006-01-02T15:04:05Z07:00"}, +// {"tag":"AnswerTime", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "answer_time", "layout": "2006-01-02T15:04:05Z07:00"}, +// {"tag":"Usage", "cdr_field_id": "usage", "type": "cdrfield", "value": "usage"}, +// {"tag":"Cost", "cdr_field_id": "cost", "type": "cdrfield", "value": "cost"}, // ], // "trailer_fields": [], // template of the exported trailer fields // } @@ -149,7 +152,7 @@ //"cdrc": { -// "instance1": { +// "*default": { // "enabled": false, // enable CDR client functionality // "cdrs_address": "internal", // address where to reach CDR server. // "cdr_format": "csv", // CDR file format @@ -159,60 +162,68 @@ // "cdr_in_dir": "/var/log/cgrates/cdrc/in", // absolute path towards the directory where the CDRs are stored // "cdr_out_dir": "/var/log/cgrates/cdrc/out", // absolute path towards the directory where processed CDRs will be moved // "cdr_source_id": "freeswitch_csv", // free form field, tag identifying the source of the CDRs within CDRS database +// "cdr_filter": "", // Filter CDR records to import // "cdr_fields":[ // import template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value -// {"tag": "accid", "value": "0;13"}, -// {"tag": "reqtype", "value": "1"}, -// {"tag": "direction", "value": "2"}, -// {"tag": "tenant", "value": "3"}, -// {"tag": "category", "value": "4"}, -// {"tag": "account", "value": "5"}, -// {"tag": "subject", "value": "6"}, -// {"tag": "destination", "value": "7"}, -// {"tag": "setup_time", "value": "8"}, -// {"tag": "answer_time", "value": "9"}, -// {"tag": "usage", "value": "10"}, -// {"tag": "extr1", "value": "11"}, -// {"tag": "extr2", "value": "12"}, +// {"tag": "tor", "cdr_field_id": "tor", "type": "cdrfield", "value": "2", "mandatory": true}, +// {"tag": "accid", "cdr_field_id": "accid", "type": "cdrfield", "value": "3", "mandatory": true}, +// {"tag": "reqtype", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "4", "mandatory": true}, +// {"tag": "direction", "cdr_field_id": "direction", "type": "cdrfield", "value": "5", "mandatory": true}, +// {"tag": "tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "6", "mandatory": true}, +// {"tag": "category", "cdr_field_id": "category", "type": "cdrfield", "value": "7", "mandatory": true}, +// {"tag": "account", "cdr_field_id": "account", "type": "cdrfield", "value": "8", "mandatory": true}, +// {"tag": "subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "9", "mandatory": true}, +// {"tag": "destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "10", "mandatory": true}, +// {"tag": "setup_time", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "11", "mandatory": true}, +// {"tag": "answer_time", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "12", "mandatory": true}, +// {"tag": "usage", "cdr_field_id": "usage", "type": "cdrfield", "value": "13", "mandatory": true}, // ], // } //}, -//"session_manager": { +//"sm_freeswitch": { // "enabled": false, // starts SessionManager service: -// "switch_type": "freeswitch", // defines the type of switch behind: // "rater": "internal", // address where to reach the Rater <""|internal|127.0.0.1:2013> // "cdrs": "", // address where to reach CDR Server, empty to disable CDR capturing <""|internal|x.y.z.y:1234> -// "reconnects": 3, // number of reconnects to rater/cdrs before giving up. -// "debit_interval": 10, // interval to perform debits on. -// "min_call_duration": "0s", // only authorize calls with allowed duration bigger than this +// "cdr_extra_fields": [], // extra fields to store in CDRs in case of processing them +// "debit_interval": "10s", // interval to perform debits on. +// "min_call_duration": "0s", // only authorize calls with allowed duration higher than this // "max_call_duration": "3h", // maximum call duration a prepaid call can last -//}, - - -//"freeswitch": { -// "server": "127.0.0.1:8021", // adress where to connect to FreeSWITCH socket. -// "password": "ClueCon", // freeSWITCH socket password. -// "reconnects": 5, // number of attempts on connect failure. // "min_dur_low_balance": "5s", // threshold which will trigger low balance warnings for prepaid calls (needs to be lower than debit_interval) // "low_balance_ann_file": "", // file to be played when low balance is reached for prepaid calls -// "empty_balance_context": "", // if defined, prepaid calls will be transfered to this context on empty balance +// "empty_balance_context": "", // if defined, prepaid calls will be transfered to this context on empty balance // "empty_balance_ann_file": "", // file to be played before disconnecting prepaid calls on empty balance (applies only if no context defined) -// "cdr_extra_fields": [], // extra fields to store in CDRs in case of processing them +// "connections":[ // instantiate connections to multiple FreeSWITCH servers +// {"server": "127.0.0.1:8021", "password": "ClueCon", "reconnects": -1} // reconnects -1 to indefinitely connect +// ], //}, -//"kamailio": { -// "evapi_addr": "127.0.0.1:8448", // address of the kamailio evapi server -// "reconnects": 3, // number of attempts on connect failure +//"sm_kamailio": { +// "enabled": false, // starts SessionManager service: +// "rater": "internal", // address where to reach the Rater <""|internal|127.0.0.1:2013> +// "cdrs": "", // address where to reach CDR Server, empty to disable CDR capturing <""|internal|x.y.z.y:1234> +// "debit_interval": "10s", // interval to perform debits on. +// "min_call_duration": "0s", // only authorize calls with allowed duration higher than this +// "max_call_duration": "3h", // maximum call duration a prepaid call can last +// "connections":[ // Instantiate connections to multiple Kamailio servers +// {"evapi_addr": "127.0.0.1:8448", "reconnects": -1} // reconnects -1 to indefinitely connect +// ], //}, -//"opensips": { +//"sm_opensips": { +// "enabled": false, // starts SessionManager service: // "listen_udp": "127.0.0.1:2020", // address where to listen for datagram events coming from OpenSIPS -// "mi_addr": "127.0.0.1:8020", // adress where to reach OpenSIPS mi_datagram module +// "rater": "internal", // address where to reach the Rater <""|internal|127.0.0.1:2013> +// "cdrs": "", // address where to reach CDR Server, empty to disable CDR capturing <""|internal|x.y.z.y:1234> +// "debit_interval": "10s", // interval to perform debits on. +// "min_call_duration": "0s", // only authorize calls with allowed duration higher than this +// "max_call_duration": "3h", // maximum call duration a prepaid call can last // "events_subscribe_interval": "60s", // automatic events subscription to OpenSIPS, 0 to disable it -// "reconnects": 3, // number of attempts on connect failure +// "connections":[ // instantiate connections to multiple FreeSWITCH servers +// {"mi_addr": "127.0.0.1:8020", "reconnects": -1} // reconnects -1 to indefinitely connect +// ], //}, @@ -236,4 +247,4 @@ // "from_address": "cgr-mailer@localhost.localdomain" // from address used when sending emails out //}, -} \ No newline at end of file +//} \ No newline at end of file