mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Updated MapEvent.AsCDR to initialize the CostDetails. Fixes #2247
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
"store_cdrs": false, // store cdrs in storDb
|
||||
"chargers_conns":["*internal"],
|
||||
"rals_conns": ["*internal"],
|
||||
"online_cdr_exports": ["http_localhost", "amqp_localhost", "http_test_file", "amqp_test_file","aws_test_file","sqs_test_file","kafka_localhost","s3_test_file"],
|
||||
"online_cdr_exports": ["http_localhost", "amqp_localhost", "http_test_file", "amqp_test_file","aws_test_file","sqs_test_file","kafka_localhost","s3_test_file", "eventcost_filter"],
|
||||
},
|
||||
|
||||
"chargers": {
|
||||
@@ -128,6 +128,14 @@
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
],
|
||||
},
|
||||
"eventcost_filter": {
|
||||
"export_format": "*amqp_json_map",
|
||||
"export_path": "amqp://guest:guest@wrongurl:25672/?queue_id=cgrates_cdrs",
|
||||
"filters":["*string:~*ec.Cost:100"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"store_cdrs": false, // store cdrs in storDb
|
||||
"chargers_conns":["*internal"],
|
||||
"rals_conns": ["*internal"],
|
||||
"online_cdr_exports": ["http_localhost", "amqp_localhost", "http_test_file", "amqp_test_file","aws_test_file","sqs_test_file","kafka_localhost","s3_test_file"],
|
||||
"online_cdr_exports": ["http_localhost", "amqp_localhost", "http_test_file", "amqp_test_file","aws_test_file","sqs_test_file","kafka_localhost","s3_test_file", "eventcost_filter"],
|
||||
},
|
||||
|
||||
"chargers": {
|
||||
@@ -126,6 +126,14 @@
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
],
|
||||
},
|
||||
"eventcost_filter": {
|
||||
"export_format": "*amqp_json_map",
|
||||
"export_path": "amqp://guest:guest@wrongurl:25672/?queue_id=cgrates_cdrs",
|
||||
"filters":["*string:~*ec.Cost:100"],
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user