Template field with blocker option, test HTTPAgent OutboundAuth with dryRun option

This commit is contained in:
DanB
2018-07-06 18:20:55 +02:00
parent c5f61e8727
commit 4c768e95f9
5 changed files with 35 additions and 9 deletions

View File

@@ -13,6 +13,22 @@
"request_payload": "*url",
"reply_payload": "*xml",
"request_processors": [
{
"id": "OutboundAUTHDryRun",
"filters": ["*string:*request.request_type:OutboundAUTH","*string:*request.Msisdn:497700056231"],
"flags": ["*dryrun"],
"continue_on_success": false,
"request_fields":[
],
"reply_fields":[
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
"value": "1", "mandatory": true},
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
"value": "1200", "blocker": true},
{"tag": "NotUsed", "field_id": "response.NotUnused", "type": "*constant",
"value": "0"},
],
},
{
"id": "OutboundAUTH",
"filters": ["*string:*request.request_type:OutboundAUTH"],
@@ -33,10 +49,8 @@
"reply_fields":[
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
"value": "1", "mandatory": true},
//{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*composed",
// "value": "*cgrReply.MaxUsage{*duration_seconds}", "mandatory": true},
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
"value": "1200", "mandatory": true},
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*composed",
"value": "*cgrReply.MaxUsage{*duration_seconds}", "mandatory": true},
],
},
{