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

37 lines
1.6 KiB
JSON

{
"diameter_agent": {
"request_processors": [
{
"id": "message",
"filters": ["*string:~*vars.*cmd:CCR", "*prefix:~*req.Service-Context-Id:message",
"*string:~*req.CC-Request-Type:4"],
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
"request_fields":[
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*sms"},
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
"value": "~*req.Session-Id", "mandatory": true},
{"tag": "Category", "path": "Category", "type": "*constant", "value": "sms"},
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
"value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
"value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "Usage", "type": "*variable",
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
],
"reply_fields":[
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
],
},
],
},
}