Could you please advise the best way to fetch CDR's from external DB and send to CGRATES for rating purpose.
Summary of our question is
----------------------------------------
1) How CGRates can read CDR's from external(vendor) mysql DB and apply rates and push to our billing engine DB?.
2) What is the best feasible way in CGRates ?.
We are doing a POC to replace our current rating engine with CGRATES.
Thanks And Regards
Rakesh
Rakesh,
If you are looking to just update your CDR, I suggest checking
*http_json_map transport which gives you the opportunity to
customize the exported CDR to you (so you can just add the fields
you are interested about). Should be a bit faster than the
*http_json.
DanB
--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/d7dbe198-d3a3-4bcf-af79-bca1b21c1274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Rakesh,
Answers inline ...
HI Dan,
Please let me know any sample config file you have for reference to export as CSV from CGRATES after inputting ProcessExternalCDR
Below are my questions
1) Could I use "cdrsreplicationmaster.json" by changing the format to CSV format
2) Please let me know the changes required below."cdre": {
"http_localhost": {"export_format": "*http_post","export_path": "http://127.0.0.1:12080/cdr_http","cdr_filter": "RunID(*default);OriginID(httpjsonrpc1)",
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/0b8ef0c5-ad20-494f-85b8-ab9835627885%40googlegroups.com.
Hi Rakesh,
Answers inline ...
HI Dan,
My question is
a) Do CGRates default have a amqp server. ?
. If I am using amqp_json_map, I just need to create a RabbitMQ client and consume online processed CDRs'.
"cdre": {
"amqp_localhost": {"export_format": "*amqp_json_map","export_path": "amqp://guest:guest@localhost:5672/?queue_id=cgrates_cdrs",
RegardsRakesh
On Sunday, March 5, 2017 at 10:23:44 PM UTC+4, DanB wrote:Hi Rakesh,
I would go with online_cdr_exports. The CDR should be sent back to you
and not longer needing to be stored in CGRateS since you run anyway an
external database (you can disable storing if you like here:
https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L146).
All you need to do after is use the online export data to update your
database with cost.
On the other hand I would recommend you to use *http_json_map as
transport for your online cdr exports (or *amqp_json_map if you prefer
to get the exports via RabbitMQ) so you can customize the data exported
(and not to process useless CDR fields if you only need the cost).
DanB
--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/b66cd202-0b42-4ba9-a1f1-fb5a1dbea973%40googlegroups.com.