mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Remove CDRE and add in EventExporter support for specific Exporters
This commit is contained in:
committed by
Dan Christian Bogos
parent
2379533337
commit
3faa3a10f4
@@ -263,36 +263,6 @@
|
||||
// },
|
||||
|
||||
|
||||
// "cdre": { // CDRe config
|
||||
// "*default": {
|
||||
// "export_format": "*file_csv", // exported CDRs format <*file_csv|*file_fwv|*http_post|*http_json_cdr|*http_json_map|*amqp_json_cdr|*amqp_json_map|*sqs_json_map>
|
||||
// "export_path": "/var/spool/cgrates/cdre", // path where the exported CDRs will be placed
|
||||
// "filters" :[], // filters for this export
|
||||
// "tenant": "", // tenant used in filterS.Pass
|
||||
// "synchronous": false, // block processing until export has a result
|
||||
// "attempts": 1, // export attempts
|
||||
// "field_separator": ",", // used field separator in some export formats, eg: *file_csv
|
||||
// "attributes_context": "", // attributes context - empty disables attributes processing
|
||||
// "fields": [ // template of the exported content fields
|
||||
// {"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
// {"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
// {"path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
|
||||
// {"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
// {"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
// {"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
// {"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
// {"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
// {"path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
||||
// {"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
// {"path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
// {"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
// {"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
// {"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
// ],
|
||||
// },
|
||||
// },
|
||||
|
||||
|
||||
// "ers": { // EventReaderService
|
||||
// "enabled": false, // starts the EventReader service: <true|false>
|
||||
// "sessions_conns":["*internal"], // RPC Connections IDs
|
||||
|
||||
@@ -45,26 +45,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -51,26 +51,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -46,26 +46,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -55,26 +55,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -45,26 +45,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -52,26 +52,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -79,13 +79,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"*default": {
|
||||
"export_path": "/tmp/cgrates/cdr/cdrexport/csv", // path where the exported CDRs will be placed
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
|
||||
@@ -76,13 +76,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"*default": {
|
||||
"export_path": "/tmp/cgrates/cdr/cdrexport/csv", // path where the exported CDRs will be placed
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
//
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
|
||||
"listen": {
|
||||
"rpc_json": ":2012",
|
||||
"rpc_gob": ":2013",
|
||||
"http": ":2080",
|
||||
},
|
||||
|
||||
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
|
||||
"db_type": "redis", // data_db type: <redis|mongo>
|
||||
"db_port": 6379, // data_db port to reach the database
|
||||
"db_name": "10", // data_db database name to connect to
|
||||
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TemplateWithAttributeS": {
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"attributes_context":"*cdre",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*variable", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"caches_conns":["*internal"],
|
||||
"scheduler_conns": ["*internal"],
|
||||
"attributes_conns": ["*internal"], // connections to AttributeS for CDRExporter
|
||||
},
|
||||
|
||||
}
|
||||
@@ -1,123 +0,0 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
//
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
|
||||
"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"],
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
"rals_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TemplateWithFilter": {
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*variable", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"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,
|
||||
"stats_conns": ["*localhost"],
|
||||
},
|
||||
|
||||
|
||||
"sessions": {
|
||||
"enabled": true,
|
||||
"routes_conns": ["*internal"],
|
||||
"resources_conns": ["*internal"],
|
||||
"attributes_conns": ["*internal"],
|
||||
"rals_conns": ["*internal"],
|
||||
"cdrs_conns": ["*internal"],
|
||||
"chargers_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"migrator":{
|
||||
"out_stordb_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
@@ -1,127 +0,0 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
//
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
|
||||
"listen": {
|
||||
"rpc_json": ":2012",
|
||||
"rpc_gob": ":2013",
|
||||
"http": ":2080",
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
"db_type": "mongo",
|
||||
"db_name": "10",
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
|
||||
"stor_db": {
|
||||
"db_type": "mongo",
|
||||
"db_name": "cgrates",
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
"rals_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TemplateWithFilter": {
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*variable", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
"thresholds_conns": ["*internal"]
|
||||
},
|
||||
|
||||
|
||||
"stats": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
},
|
||||
|
||||
|
||||
"routes": {
|
||||
"enabled": true,
|
||||
"stats_conns": ["*localhost"],
|
||||
},
|
||||
|
||||
|
||||
"sessions": {
|
||||
"enabled": true,
|
||||
"routes_conns": ["*internal"],
|
||||
"resources_conns": ["*internal"],
|
||||
"attributes_conns": ["*internal"],
|
||||
"rals_conns": ["*internal"],
|
||||
"cdrs_conns": ["*internal"],
|
||||
"chargers_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"migrator":{
|
||||
"out_stordb_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
//
|
||||
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
|
||||
"listen": {
|
||||
"rpc_json": ":2012",
|
||||
"rpc_gob": ":2013",
|
||||
"http": ":2080",
|
||||
},
|
||||
|
||||
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
|
||||
"db_type": "redis", // data_db type: <redis|mongo>
|
||||
"db_port": 6379, // data_db port to reach the database
|
||||
"db_name": "10", // data_db database name to connect to
|
||||
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"rals": {
|
||||
"enabled": true,
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"schedulers": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
"rals_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TemplateWithFilter": {
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*variable", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
"thresholds_conns": ["*internal"]
|
||||
},
|
||||
|
||||
|
||||
"stats": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
},
|
||||
|
||||
|
||||
"routes": {
|
||||
"enabled": true,
|
||||
"stats_conns": ["*localhost"],
|
||||
},
|
||||
|
||||
|
||||
"sessions": {
|
||||
"enabled": true,
|
||||
"routes_conns": ["*internal"],
|
||||
"resources_conns": ["*internal"],
|
||||
"attributes_conns": ["*internal"],
|
||||
"rals_conns": ["*internal"],
|
||||
"cdrs_conns": ["*internal"],
|
||||
"chargers_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"migrator":{
|
||||
"out_stordb_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
|
||||
"apiers": {
|
||||
"enabled": true,
|
||||
"scheduler_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
@@ -47,26 +47,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -45,26 +45,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
@@ -46,26 +46,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -44,25 +44,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
"loaders": [
|
||||
{
|
||||
"id": "CustomLoader", // identifier of the Loader
|
||||
|
||||
@@ -81,26 +81,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
|
||||
@@ -51,26 +51,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
|
||||
@@ -7,23 +7,6 @@
|
||||
"default_request_type": "*postpaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
|
||||
},
|
||||
|
||||
"cdre": {
|
||||
"*default": {
|
||||
"fields": [ // template of the exported content fields
|
||||
{"path": "*exp.AccId", "cdr_field_id": "accid", "type": "cdrfield", "value": "accid"},
|
||||
{"path": "*exp.ReqType", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "reqtype"},
|
||||
{"path": "*exp.Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"},
|
||||
{"path": "*exp.Category", "cdr_field_id": "category", "type": "cdrfield", "value": "category"},
|
||||
{"path": "*exp.Account", "cdr_field_id": "account", "type": "cdrfield", "value": "account"},
|
||||
{"path": "*exp.Subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "subject"},
|
||||
{"path": "*exp.Destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "destination"},
|
||||
{"path": "*exp.SetupTime", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "setup_time", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.AnswerTime", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "answer_time", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "cdr_field_id": "usage", "type": "cdrfield", "value": "usage"},
|
||||
{"path": "*exp.Cost", "cdr_field_id": "cost", "type": "cdrfield", "value": "cost"},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
|
||||
@@ -7,11 +7,6 @@
|
||||
"default_request_type": "*pseudoprepaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
|
||||
},
|
||||
|
||||
"cdre": {
|
||||
"*default": {
|
||||
"export_path": "/tmp/cgrates/cdre", // path where the exported CDRs will be placed
|
||||
},
|
||||
},
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
|
||||
@@ -3,23 +3,6 @@
|
||||
// Used in multifile configuration tests
|
||||
// Should be the third file loaded
|
||||
|
||||
"cdre": {
|
||||
"export1": {
|
||||
"cost_rounding_decimals": 3, // rounding decimals for Cost values. -1 to disable rounding
|
||||
"fields": [ // template of the exported content fields
|
||||
{"path": "*exp.Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"},
|
||||
{"path": "*exp.Category", "cdr_field_id": "category", "type": "cdrfield", "value": "category"},
|
||||
{"path": "*exp.Account", "cdr_field_id": "account", "type": "cdrfield", "value": "account"},
|
||||
{"path": "*exp.Subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "subject"},
|
||||
{"path": "*exp.Destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "destination"},
|
||||
{"path": "*exp.SetupTime", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "setup_time", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.AnswerTime", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "answer_time", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "cdr_field_id": "usage", "type": "cdrfield", "value": "usage"},
|
||||
{"path": "*exp.Cost", "cdr_field_id": "cost", "type": "cdrfield", "value": "cost"},
|
||||
], // template of the exported header fields
|
||||
}
|
||||
},
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
|
||||
@@ -39,24 +39,6 @@
|
||||
"cdrs_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
|
||||
@@ -47,26 +47,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -54,26 +54,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -46,26 +46,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
|
||||
@@ -45,26 +45,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
"attributes": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
@@ -43,25 +43,6 @@
|
||||
},
|
||||
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
"loaders": [
|
||||
{
|
||||
"id": "TeoLoader", // identifier of the Loader
|
||||
|
||||
Reference in New Issue
Block a user