Files
cgrates/data/conf/samples/multifiles/b/b.json
2020-01-30 10:21:48 +01:00

42 lines
1.0 KiB
JSON

{
// CGRateS Configuration file
// Used in multifile configuration tests
// Should be the second file loaded
"general": {
"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": [
{
"id": "conecto1",
"url": "/newConecto",
"sessions_conns": ["*localhost"],
"request_payload": "*url",
"reply_payload": "*xml",
"request_processors": [
{
"id": "mtcall_cdr",
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
"tenant": "cgrates.org",
"flags": ["*cdrs"],
"request_fields":[
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
"value": "*pseudoprepaid", "mandatory": true},
],
"reply_fields":[
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*composed",
"value": "~*req.CDR_ID", "mandatory": true},
],
}
],
},
],
}