{ // CGRateS Configuration file // // Used in apier_local_tests // Starts rater, cdrs and mediator connecting over internal channel "general": { "log_level": 7, "poster_attempts": 1, }, "stor_db": { // database used to store offline tariff plans and CDRs "db_password": "CGRateS.org", // password to use when connecting to stordb }, "rals": { "enabled": true, // enable Rater service: }, "cdrs": { "enabled": true, // start the CDR Server service: "store_cdrs": false, // store cdrs in storDb "online_cdr_exports": ["http_localhost", "amqp_localhost", "http_test_file", "amqp_test_file"], }, "cdre": { "http_localhost": { "export_format": "*http_post", "export_path": "http://127.0.0.1:12080/cdr_http", "cdr_filter": "RunID(*default);OriginID(httpjsonrpc1)", "content_fields": [ // template of the exported content fields {"id": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"}, {"id":"RunID", "type": "*composed", "value": "~RunID", "field_id": "RunID"}, {"id":"TOR", "type": "*composed", "value": "~ToR", "field_id": "ToR"}, {"id":"OriginID", "type": "*composed", "value": "~OriginID", "field_id": "OriginID"}, {"id":"OriginHost", "type": "*composed", "value": "~OriginHost", "field_id": "OriginHost"}, {"id":"RequestType", "type": "*composed", "value": "~RequestType", "field_id": "RequestType"}, {"id":"Direction", "type": "*composed", "value": "~Direction", "field_id": "Direction"}, {"id":"Tenant", "type": "*composed", "value": "~Tenant", "field_id": "Tenant"}, {"id":"Category", "type": "*composed", "value": "~Category", "field_id": "Category"}, {"id":"Account", "type": "*composed", "value": "~Account", "field_id": "Account"}, {"id":"Subject", "type": "*composed", "value": "~Subject", "field_id": "Subject"}, {"id":"Destination", "type": "*composed", "value": "~Destination", "field_id": "Destination"}, {"id":"SetupTime", "type": "*composed", "value": "~SetupTime", "layout": "2006-01-02T15:04:05Z07:00", "field_id": "SetupTime"}, {"id":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00", "field_id": "AnswerTime"}, {"id":"Usage", "type": "*composed", "value": "~Usage", "field_id": "Usage"}, {"id":"Cost", "type": "*composed", "value": "~Cost", "field_id": "Cost"}, ], }, "amqp_localhost": { "export_format": "*amqp_json_map", "export_path": "amqp://guest:guest@localhost:5672/?queue_id=cgrates_cdrs", "attempts": 3, "cdr_filter": "RunID(*default)", "content_fields": [ // template of the exported content fields {"id": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"}, {"id":"RunID", "type": "*composed", "value": "~RunID", "field_id": "RunID"}, {"id":"TOR", "type": "*composed", "value": "~ToR", "field_id": "ToR"}, {"id":"OriginID", "type": "*composed", "value": "~OriginID", "field_id": "OriginID"}, {"id":"OriginHost", "type": "*composed", "value": "~OriginHost", "field_id": "OriginHost"}, {"id":"RequestType", "type": "*composed", "value": "~RequestType", "field_id": "RequestType"}, {"id":"Direction", "type": "*composed", "value": "~Direction", "field_id": "Direction"}, {"id":"Tenant", "type": "*composed", "value": "~Tenant", "field_id": "Tenant"}, {"id":"Category", "type": "*composed", "value": "~Category", "field_id": "Category"}, {"id":"Account", "type": "*composed", "value": "~Account", "field_id": "Account"}, {"id":"Subject", "type": "*composed", "value": "~Subject", "field_id": "Subject"}, {"id":"Destination", "type": "*composed", "value": "~Destination", "field_id": "Destination"}, {"id":"SetupTime", "type": "*composed", "value": "~SetupTime", "layout": "2006-01-02T15:04:05Z07:00", "field_id": "SetupTime"}, {"id":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00", "field_id": "AnswerTime"}, {"id":"Usage", "type": "*composed", "value": "~Usage", "field_id": "Usage"}, {"id":"Cost", "type": "*composed", "value": "~Cost", "field_id": "Cost"}, ], }, "http_test_file": { "export_format": "*http_post", "export_path": "http://127.0.0.1:12080/invalid", "cdr_filter": "OriginID(httpjsonrpc1)", "content_fields": [ {"id": "OriginID", "type": "*composed", "value": "~OriginID", "field_id": "OriginID"}, ], }, "amqp_test_file": { "export_format": "*amqp_json_map", "export_path": "amqp://guest:guest@localhost:25672/?queue_id=cgrates_cdrs", "content_fields": [ {"id": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"}, ], }, }, }