Files
cgrates/data/conf/samples/multifiles/a.json

67 lines
2.4 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>
},
"cdre": {
"*default": {
"fields": [ // template of the exported content fields
{"path": "*exp.AccId", "cdr_field_id": "accid", "type": "cdrfield", "value": "accid"},
{"path": "*exp.ReqType", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "reqtype"},
{"path": "*exp.Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"},
{"path": "*exp.Category", "cdr_field_id": "category", "type": "cdrfield", "value": "category"},
{"path": "*exp.Account", "cdr_field_id": "account", "type": "cdrfield", "value": "account"},
{"path": "*exp.Subject", "cdr_field_id": "subject", "type": "cdrfield", "value": "subject"},
{"path": "*exp.Destination", "cdr_field_id": "destination", "type": "cdrfield", "value": "destination"},
{"path": "*exp.SetupTime", "cdr_field_id": "setup_time", "type": "cdrfield", "value": "setup_time", "layout": "2006-01-02T15:04:05Z07:00"},
{"path": "*exp.AnswerTime", "cdr_field_id": "answer_time", "type": "cdrfield", "value": "answer_time", "layout": "2006-01-02T15:04:05Z07:00"},
{"path": "*exp.Usage", "cdr_field_id": "usage", "type": "cdrfield", "value": "usage"},
{"path": "*exp.Cost", "cdr_field_id": "cost", "type": "cdrfield", "value": "cost"},
],
}
},
"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},
],
},
],
},
],
}