Files

50 lines
1.2 KiB
JSON

{
// CGRateS Configuration file
// Used in multifile configuration tests
// Should be the first file loaded
"general": {
"default_request_type": "*postpaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
},
"http_agent": [
{
"id": "conecto1",
"url": "/conecto",
"sessions_conns": ["*localhost"],
"request_payload": "*url",
"reply_payload": "*xml",
"request_processors": [
{
"id": "OutboundAUTHDryRun",
"filters": [],
"tenant": "cgrates.org",
"flags": ["*dryrun"],
"request_fields":[
],
"reply_fields":[
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
"value": "1", "mandatory": true},
],
},
{
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": ["*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
"value": "*pseudoprepaid", "mandatory": true},
],
"reply_fields":[
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
"value": "1", "mandatory": true},
],
},
],
},
],
}