{
"diameter_agent":
{
"request_processors":
[
{
"id": "data_init_noservice",
"dry_run": true,
"flags": ["*initiate", "*accounts","*continue","*log"],
"request_filter": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:(1*|2)", "*prefix:~*
req.Service-Context-Id:6.3...@3gpp.org","*string:~req.Multiple-Services-Credit-Control.Rating-Group(^$)"],
"continue_on_success": false,
"request_fields":[
{"tag": "TOR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable", "value": "~*req.Session-Id", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Direction", "path": "*cgreq.Direction", "type": "*constant", "value": "*out"},
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "
cgrates.org"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "data"},
{"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "data"},
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*variable", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*constant"}
],
"reply_fields": [
{"tag": "ResultCode", "path": "*rep.Result-Code", "type": "*constant", "value": "2001"},
]
},
{
"id": "data_init_internet",
"dry_run": false,
"request_filter": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:(1)","*prefix:~*
req.Service-Context-Id:6.3...@3gpp.org","*string:~req.Multiple-Services-Credit-Control.Rating-Group(1)"],
"flags": ["*initiate", "*accounts","*continue","*log"],
"continue_on_success": true,
"append_cca": true,
"request_fields":[
{"tag": "TOR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed", "value": "~*req.Session-Id;^#1", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Direction", "path": "*cgreq.Direction", "type": "*constant", "value": "*out"},
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "
cgrates.org"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "internet"},
{"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "data"},
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*constant", "value": "10240"}
],
"reply_fields": [
{"tag": "ResultCodeError", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant","value": "4012"},
{"tag": "GrantedUnits", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*constant", "value": "0", "append": true},
{"tag": "GrantedUnits", "field_filter": "CGRError(^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*composed", "value": "10240", "append": true},
{"tag": "*rep.RatingGroup", "path": "*rep.Multiple-Services-Credit-Control.Rating-Group",
"type": "*constant", "value": "1"},
{"tag": "*rep.ValidityTime", "path": "*rep.Multiple-Services-Credit-Control.Validity-Time",
"type": "*constant", "value": "3300"},
{"tag": "*rep.ResultCode", "path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant", "value": "2001"},
{"tag": "*rep.QuotaHoldingTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Holding-Time",
"type": "*constant", "value": "1880"},
{"tag": "*rep.QuotaConsumptionTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Consumption-Time",
"type": "*constant", "value": "0"},
{"tag": "*rep.VolumeQuotaThreshold", "path": "*rep.Multiple-Services-Credit-Control.Volume-Quota-Threshold",
"type": "*constant", "value": "200000"},
]
},
{
"id": "data_init_facebook",
"dry_run": false,
"request_filter": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:(1)","*prefix:~*
req.Service-Context-Id:6.3...@3gpp.org","*string:~req.Multiple-Services-Credit-Control.Rating-Group(2)"],
"flags": ["*initiate", "*accounts","*continue","*log"],
"continue_on_success": true,
"append_cca": true,
"request_fields":[
{"tag": "TOR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed", "value": "~*req.Session-Id;^#2", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Direction", "path": "*cgreq.Direction", "type": "*constant", "value": "*out"},
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "
cgrates.org"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "internet"},
{"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "data"},
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*constant", "value": "10240"}
],
"reply_fields": [
{"tag": "ResultCodeError", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant","value": "4012"},
{"tag": "GrantedUnits", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*constant", "value": "0", "append": true},
{"tag": "GrantedUnits", "field_filter": "CGRError(^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*composed", "value": "10240", "append": true},
{"tag": "*rep.RatingGroup", "path": "*rep.Multiple-Services-Credit-Control.Rating-Group",
"type": "*constant", "value": "2"},
{"tag": "*rep.ValidityTime", "path": "*rep.Multiple-Services-Credit-Control.Validity-Time",
"type": "*constant", "value": "3300"},
{"tag": "*rep.ResultCode", "path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant", "value": "2001"},
{"tag": "*rep.QuotaHoldingTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Holding-Time",
"type": "*constant", "value": "1880"},
{"tag": "*rep.QuotaConsumptionTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Consumption-Time",
"type": "*constant", "value": "0"},
{"tag": "*rep.VolumeQuotaThreshold", "path": "*rep.Multiple-Services-Credit-Control.Volume-Quota-Threshold",
"type": "*constant", "value": "200000"},
]
},
{
"id": "data_init_mobileapp",
"dry_run": false,
"request_filter": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:(1)","*prefix:~*
req.Service-Context-Id:6.3...@3gpp.org","*string:~req.Multiple-Services-Credit-Control.Rating-Group(4)"],
"flags": ["*initiate", "*accounts","*continue","*log"],
"continue_on_success": true,
"append_cca": true,
"request_fields":[
{"tag": "TOR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed", "value": "~*req.Session-Id;^#4", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Direction", "path": "*cgreq.Direction", "type": "*constant", "value": "*out"},
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "
cgrates.org"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "internet"},
{"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "data"},
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*constant", "value": "10240"}
],
"reply_fields": [
{"tag": "ResultCodeError", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant","value": "4012"},
{"tag": "GrantedUnits", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*constant", "value": "0", "append": true},
{"tag": "GrantedUnits", "field_filter": "CGRError(^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*composed", "value": "10240", "append": true},
{"tag": "*rep.RatingGroup", "path": "*rep.Multiple-Services-Credit-Control.Rating-Group",
"type": "*constant", "value": "4"},
{"tag": "*rep.ValidityTime", "path": "*rep.Multiple-Services-Credit-Control.Validity-Time",
"type": "*constant", "value": "3300"},
{"tag": "*rep.ResultCode", "path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant", "value": "2001"},
{"tag": "*rep.QuotaHoldingTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Holding-Time",
"type": "*constant", "value": "1880"},
{"tag": "*rep.QuotaConsumptionTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Consumption-Time",
"type": "*constant", "value": "0"},
{"tag": "*rep.VolumeQuotaThreshold", "path": "*rep.Multiple-Services-Credit-Control.Volume-Quota-Threshold",
"type": "*constant", "value": "200000"},
]
},
{
"id": "data_init_wttxportal",
"dry_run": false,
"request_filter": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:(1)","*prefix:~*
req.Service-Context-Id:6.3...@3gpp.org","*string:~req.Multiple-Services-Credit-Control.Rating-Group(5)"],
"flags": ["*initiate", "*accounts","*continue","*log"],
"continue_on_success": true,
"append_cca": true,
"request_fields":[
{"tag": "TOR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed", "value": "~*req.Session-Id;^#5", "mandatory": true},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid"},
{"tag": "Direction", "path": "*cgreq.Direction", "type": "*constant", "value": "*out"},
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "
cgrates.org"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "internet"},
{"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "data"},
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed", "value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*constant", "value": "10240"}
],
"reply_fields": [
{"tag": "ResultCodeError", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant","value": "4012"},
{"tag": "GrantedUnits", "field_filter": "CGRError(!^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*constant", "value": "0", "append": true},
{"tag": "GrantedUnits", "field_filter": "CGRError(^$)",
"path": "*rep.Multiple-Services-Credit-Control.Granted-Service-Unit.CC-Total-Octets",
"type": "*composed", "value": "10240", "append": true},
{"tag": "*rep.RatingGroup", "path": "*rep.Multiple-Services-Credit-Control.Rating-Group",
"type": "*constant", "value": "5"},
{"tag": "*rep.ValidityTime", "path": "*rep.Multiple-Services-Credit-Control.Validity-Time",
"type": "*constant", "value": "3300"},
{"tag": "*rep.ResultCode", "path": "*rep.Multiple-Services-Credit-Control.Result-Code",
"type": "*constant", "value": "2001"},
{"tag": "*rep.QuotaHoldingTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Holding-Time",
"type": "*constant", "value": "1880"},
{"tag": "*rep.QuotaConsumptionTime", "path": "*rep.Multiple-Services-Credit-Control.Quota-Consumption-Time",
"type": "*constant", "value": "0"},
{"tag": "*rep.VolumeQuotaThreshold", "path": "*rep.Multiple-Services-Credit-Control.Volume-Quota-Threshold",
"type": "*constant", "value": "200000"},
]
},
]
}
}
Thanks,