mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
116 lines
4.2 KiB
JSON
116 lines
4.2 KiB
JSON
{
|
|
|
|
"general": {
|
|
"log_level": 7,
|
|
"poster_attempts": 2
|
|
},
|
|
|
|
"data_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
|
|
"stor_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
"ees": {
|
|
"enabled": true,
|
|
"failed_posts": {
|
|
"ttl": "1s"
|
|
},
|
|
"exporters": [
|
|
{
|
|
"id": "sqs_test_file",
|
|
"type": "*sqs_json_map",
|
|
"export_path": "sqs.eu-central-1.amazonaws.com",
|
|
"opts": {
|
|
"awsRegion": "eu-central-1",
|
|
"awsKey": "set-using-flags",
|
|
"awsSecret": "set-using-flags",
|
|
"sqsQueueID": "testQueue"
|
|
},
|
|
"attempts": 1,
|
|
"failed_posts_dir": "/var/spool/cgrates/failed_posts2",
|
|
"synchronous": true,
|
|
"fields":[
|
|
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
|
|
]
|
|
},
|
|
{
|
|
"id": "s3_test_file",
|
|
"type": "*s3_json_map",
|
|
"export_path": "s3.eu-central-1.amazonaws.com",
|
|
"opts": {
|
|
"awsRegion": "eu-central-1",
|
|
"awsKey": "set-using-flags",
|
|
"awsSecret": "set-using-flags",
|
|
"s3BucketID": "cgrates-cdrs"
|
|
},
|
|
"attempts": 1,
|
|
"failed_posts_dir": "/var/spool/cgrates/failed_posts2",
|
|
"synchronous": true,
|
|
"fields":[
|
|
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
|
|
]
|
|
},
|
|
{
|
|
"id": "s3_nuantix_test_file",
|
|
"type": "*s3_json_map",
|
|
"export_path": "s3.eu-central-1.amazonaws.com",
|
|
"opts": {
|
|
"awsRegion": "eu-central-1",
|
|
"awsKey": "set-using-flags",
|
|
"awsSecret": "set-using-flags",
|
|
"s3BucketID": "cgrates-cdrs",
|
|
"s3ForcePathStyle": true,
|
|
"s3SkipTlsVerify": true
|
|
},
|
|
"attempts": 1,
|
|
"failed_posts_dir": "/var/spool/cgrates/failed_posts2",
|
|
"synchronous": true,
|
|
"fields":[
|
|
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
|
|
]
|
|
},
|
|
{
|
|
"id": "amqpv1_test_file",
|
|
"type": "*amqpv1_json_map",
|
|
// connection string from Azure Portal can be found here: Home > [Service Bus namespace] >
|
|
// > Shared access policies > RootManageSharedAccessKey > Primary Connection String where
|
|
// access-key-name is RootManageSharedAccessKey and access-key is the primary connection string
|
|
"export_path": "amqps://name-space.servicebus.windows.net",
|
|
"opts": {
|
|
"amqpQueueID": "cgrates_cdrs",
|
|
"amqpUsername": "access-key-name",
|
|
"amqpPassword": "access-key"
|
|
},
|
|
"attempts": 1,
|
|
"failed_posts_dir": "/var/spool/cgrates/failed_posts2",
|
|
"synchronous": true,
|
|
"fields":[
|
|
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
"templates": {
|
|
"requiredFields": [
|
|
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
|
{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
|
{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
|
|
{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
|
{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
|
{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
|
|
{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
|
{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
|
{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
|
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
|
{"tag": "OrderID", "path": "*exp.OrderID", "type": "*variable", "value": "~*req.OrderID","filter":"*string:~*opts.AddOrderID:true"}
|
|
]
|
|
}
|
|
|
|
}
|