mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
Starting adding absolute path to cdre
This commit is contained in:
committed by
Dan Christian Bogos
parent
a2dc836075
commit
ab3fb01e7d
@@ -47,19 +47,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -53,19 +53,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -48,19 +48,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -57,19 +57,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -47,19 +47,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -54,19 +54,19 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"tag":"MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.RequestType", "type": "*composed", "value": "~RequestType"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.AnswerTime", "type": "*composed", "value": "~AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
{"path": "*exp.MatchedDestinationID", "type": "*composed", "value": "~CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -47,18 +47,18 @@
|
||||
"export_path": "/tmp/",
|
||||
"attributes_context":"*cdre",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"Source", "type": "*composed", "value": "~Source"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~Account"},
|
||||
{"tag":"Subject", "type": "*composed", "value": "~Subject"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"path": "*exp.Source", "type": "*composed", "value": "~Source"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~Account"},
|
||||
{"path": "*exp.Subject", "type": "*composed", "value": "~Subject"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~Destination"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -46,17 +46,17 @@
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"tag":"Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -50,17 +50,17 @@
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"tag":"Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -48,17 +48,17 @@
|
||||
"export_format": "*file_csv",
|
||||
"export_path": "/tmp/",
|
||||
"filters" :["*string:~*req.Source:test2"],
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"tag":"Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"tag":"Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"tag":"Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"tag":"Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"tag":"Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"tag":"Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"tag":"Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
"fields": [
|
||||
{"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
|
||||
{"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
|
||||
{"path": "*exp.Source", "type": "*composed", "value": "~*req.Source"},
|
||||
{"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
|
||||
{"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
|
||||
{"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
|
||||
{"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
|
||||
{"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
|
||||
{"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
|
||||
{"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
"export_path": "amqps://guest:guest@localhost:256733/",
|
||||
"attempts": 1, // export attempts
|
||||
"synchronous": true, // block processing until export has a result
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
"export_path": "amqps://guest:guest@localhost:256733/",
|
||||
"attempts": 1, // export attempts
|
||||
"synchronous": true, // block processing until export has a result
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
"export_path": "amqps://guest:guest@localhost:256733/",
|
||||
"attempts": 1, // export attempts
|
||||
"synchronous": true, // block processing until export has a result
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
"export_format": "*s3_json_map",
|
||||
// export_path for s3: "endpoint?aws_region=region&aws_key=IDkey&aws_secret=secret&aws_token=sessionToken&queue_id=cgrates-cdrs"
|
||||
"export_path": "http://s3.us-east-2.amazonaws.com/?aws_region=eu-west-2&aws_key=testkey&aws_secret=testsecret&queue_id=cgrates-cdrs",
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
"export_format": "*s3_json_map",
|
||||
// export_path for s3: "endpoint?aws_region=region&aws_key=IDkey&aws_secret=secret&aws_token=sessionToken&queue_id=cgrates-cdrs"
|
||||
"export_path": "http://s3.us-east-2.amazonaws.com/?aws_region=eu-west-2&aws_key=testkey&aws_secret=testsecret&queue_id=cgrates-cdrs",
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -71,8 +71,8 @@
|
||||
"export_format": "*s3_json_map",
|
||||
// export_path for s3: "endpoint?aws_region=region&aws_key=IDkey&aws_secret=secret&aws_token=sessionToken&queue_id=cgrates-cdrs"
|
||||
"export_path": "http://s3.us-east-2.amazonaws.com/?aws_region=eu-west-2&aws_key=testkey&aws_secret=testsecret&queue_id=cgrates-cdrs",
|
||||
"content_fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "field_id": "CGRID"},
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID", "path": "CGRID"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -15,43 +15,43 @@
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "TOR", "field_id": "ToR",
|
||||
"tag": "TOR", "path": "ToR",
|
||||
"type": "*constant", "value": "*data"
|
||||
},
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "RequestType", "field_id": "RequestType",
|
||||
"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"
|
||||
},
|
||||
{
|
||||
"tag": "Category", "field_id": "Category",
|
||||
"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "data"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"type": "*constant", "value": "data"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "AnswerTime", "field_id": "AnswerTime",
|
||||
"tag": "AnswerTime", "path": "AnswerTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "value": "2048"
|
||||
},
|
||||
],
|
||||
@@ -60,7 +60,7 @@
|
||||
{
|
||||
"tag": "ResultCodeError",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "blocker": true,
|
||||
"path": "Result-Code", "blocker": true,
|
||||
"type": "*constant", "value": "5030"
|
||||
},
|
||||
],
|
||||
@@ -77,30 +77,30 @@
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "TOR", "field_id": "ToR",
|
||||
"tag": "TOR", "path": "ToR",
|
||||
"type": "*constant", "value": "*data"
|
||||
},
|
||||
{
|
||||
"tag": "InitialOriginID", "field_id": "InitialOriginID",
|
||||
"tag": "InitialOriginID", "path": "InitialOriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id;_grp1"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "value": "2048"
|
||||
},
|
||||
{
|
||||
"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"
|
||||
},
|
||||
],
|
||||
@@ -109,7 +109,7 @@
|
||||
{
|
||||
"tag": "ResultCodeError",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "blocker": true,
|
||||
"path": "Result-Code", "blocker": true,
|
||||
"type": "*constant", "value": "5030"
|
||||
},
|
||||
],
|
||||
@@ -126,51 +126,51 @@
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "TOR", "field_id": "ToR",
|
||||
"tag": "TOR", "path": "ToR",
|
||||
"type": "*constant", "value": "*data"
|
||||
},
|
||||
{
|
||||
"tag": "InitialOriginID", "field_id": "InitialOriginID",
|
||||
"tag": "InitialOriginID", "path": "InitialOriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id;_grp2"},
|
||||
{
|
||||
"tag": "RequestType", "field_id": "RequestType",
|
||||
"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"
|
||||
},
|
||||
{
|
||||
"tag": "Category", "field_id": "Category",
|
||||
"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "data"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"type": "*constant", "value": "data"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "AnswerTime", "field_id": "AnswerTime",
|
||||
"tag": "AnswerTime", "path": "AnswerTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "value": "2048"
|
||||
},
|
||||
{
|
||||
"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"
|
||||
},
|
||||
],
|
||||
@@ -179,7 +179,7 @@
|
||||
{
|
||||
"tag": "ResultCodeError",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "blocker": true,
|
||||
"path": "Result-Code", "blocker": true,
|
||||
"type": "*constant", "value": "5030"
|
||||
},
|
||||
],
|
||||
@@ -195,17 +195,17 @@
|
||||
"flags": ["*terminate", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix",
|
||||
"tag": "OriginIDPrefix", "path": "OriginIDPrefix",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "LastUsed", "field_id": "LastUsed",
|
||||
"tag": "LastUsed", "path": "LastUsed",
|
||||
"type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"
|
||||
},
|
||||
|
||||
@@ -13,58 +13,58 @@
|
||||
"flags": ["*event", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "TOR", "field_id": "ToR",
|
||||
"tag": "TOR", "path": "ToR",
|
||||
"type": "*constant", "value": "*sms"
|
||||
},
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Service-Identifier"
|
||||
},
|
||||
{
|
||||
"tag": "OriginHost", "field_id": "OriginHost",
|
||||
"tag": "OriginHost", "path": "OriginHost",
|
||||
"type": "*variable", "value": "~*vars.OriginHost"
|
||||
},
|
||||
{
|
||||
"tag": "Source", "field_id": "Source",
|
||||
"tag": "Source", "path": "Source",
|
||||
"type": "*constant", "mandatory": true,
|
||||
"value": "DiameterAgent"
|
||||
},
|
||||
{
|
||||
"tag": "RequestType", "field_id": "RequestType",
|
||||
"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"
|
||||
},
|
||||
{
|
||||
"tag": "Category", "field_id": "Category",
|
||||
"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "sms"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Info.Recipient-Address.Address-Data:s/^\\+49(\\d+)/int${1}/:s/^0049(\\d+)/int${1}/:s/^49(\\d+)/int${1}/:s/^00(\\d+)/+${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/+49${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "AnswerTime", "field_id": "AnswerTime",
|
||||
"tag": "AnswerTime", "path": "AnswerTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Requested-Service-Unit.CC-Service-Specific-Units"
|
||||
},
|
||||
{
|
||||
"tag": "Originator-SCCP-Address", "field_id": "Originator-SCCP-Address",
|
||||
"tag": "Originator-SCCP-Address", "path": "Originator-SCCP-Address",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Originator-SCCP-Address"
|
||||
},
|
||||
@@ -72,13 +72,13 @@
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{
|
||||
"tag": "ResultCode","field_id": "Result-Code",
|
||||
"tag": "ResultCode","path": "Result-Code",
|
||||
"filters": ["*eq:~*cgrep.MaxUsage:0"],
|
||||
"type": "*constant", "value": "4012",
|
||||
"blocker": true
|
||||
},
|
||||
{
|
||||
"tag": "ResultCode", "field_id": "Result-Code",
|
||||
"tag": "ResultCode", "path": "Result-Code",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"type": "*constant", "value": "5030",
|
||||
"blocker": true
|
||||
|
||||
@@ -11,43 +11,43 @@
|
||||
],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.User-Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginHost", "field_id": "OriginHost",
|
||||
"tag": "OriginHost", "path": "OriginHost",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*vars.OriginHost"
|
||||
},
|
||||
{
|
||||
"tag": "Source", "field_id": "Source",
|
||||
"tag": "Source", "path": "Source",
|
||||
"type": "*constant", "value": "DiameterAgent"
|
||||
},
|
||||
{
|
||||
"tag": "RequestType", "field_id": "RequestType",
|
||||
"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Calling-Party-Address[0]:s/tel:\\+(\\d+)/${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"filters":["*string:~*req.Service-Information.IMS-Information.Role-Of-Node:2"],
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Requested-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/sip:(\\+?\\d+)/${1}/:s/^\\+49(\\d+)/int${1}/:s/^0049(\\d+)/int${1}/:s/^49(\\d+)/int${1}/:s/^00(\\d+)/+${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/49${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Called-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/^\\+49(\\d+)/int${1}/:s/^0049(\\d+)/int${1}/:s/^49(\\d+)/int${1}/:s/^00(\\d+)/+${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/+49${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"filters": [
|
||||
"*prefix:~*req.Service-Information.IMS-Information.Called-Party-Address:tel:+",
|
||||
"*notprefix:~*req.Service-Information.IMS-Information.Called-Party-Address:tel:+49"
|
||||
@@ -56,23 +56,23 @@
|
||||
"value": "~*req.Service-Information.IMS-Information.Called-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/^\\+(\\d+)/int${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/+00${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"filters": ["*exists:~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Request-Timestamp:"],
|
||||
"value": "~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Request-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "mandatory": true,
|
||||
"value": "10s"
|
||||
},
|
||||
{
|
||||
"tag": "IMSI", "field_id": "IMSI",
|
||||
"tag": "IMSI", "path": "IMSI",
|
||||
"type": "*variable", "value": "~*req.User-Name"
|
||||
}
|
||||
],
|
||||
@@ -80,18 +80,18 @@
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{
|
||||
"tag": "GrantedUnitsError",
|
||||
"field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"type": "*constant", "blocker": true,
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"tag": "GrantedUnitsUnlimited",
|
||||
"field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*eq:~*cgrep.MaxUsage:-1"],
|
||||
"blocker": true,
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}"}
|
||||
]
|
||||
@@ -107,39 +107,39 @@
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.User-Session-Id"},
|
||||
{
|
||||
"tag": "OriginHost", "field_id": "OriginHost",
|
||||
"tag": "OriginHost", "path": "OriginHost",
|
||||
"type": "*variable", "value": "~*vars.OriginHost"
|
||||
},
|
||||
{
|
||||
"tag": "Source", "field_id": "Source",
|
||||
"tag": "Source", "path": "Source",
|
||||
"type": "*constant","value": "DiameterAgent"
|
||||
},
|
||||
{
|
||||
"tag": "RequestType", "field_id": "RequestType",
|
||||
"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Calling-Party-Address[0]:s/tel:\\+(\\d+)/${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Account", "field_id": "Account",
|
||||
"tag": "Account", "path": "Account",
|
||||
"filters":["*string:~*req.Service-Information.IMS-Information.Role-Of-Node:2"],
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Requested-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/sip:(\\+?\\d+)/${1}/:s/^\\+49(\\d+)/int${1}/:s/^0049(\\d+)/int${1}/:s/^49(\\d+)/int${1}/:s/^00(\\d+)/+${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/49${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Called-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/^\\+49(\\d+)/int${1}/:s/^0049(\\d+)/int${1}/:s/^49(\\d+)/int${1}/:s/^00(\\d+)/+${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/+49${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "Destination", "field_id": "Destination",
|
||||
"tag": "Destination", "path": "Destination",
|
||||
"filters": [
|
||||
"*prefix:~*req.Service-Information.IMS-Information.Called-Party-Address:tel:+",
|
||||
"*notprefix:~*req.Service-Information.IMS-Information.Called-Party-Address:tel:+49"
|
||||
@@ -148,22 +148,22 @@
|
||||
"value": "~*req.Service-Information.IMS-Information.Called-Party-Address:s/tel:(\\+?\\d+)/${1}/:s/^\\+(\\d+)/int${1}/:s/^[\\+]?(\\d+)/int${1}/:s/int(\\d+)/+00${1}/"
|
||||
},
|
||||
{
|
||||
"tag": "SetupTime", "field_id": "SetupTime",
|
||||
"tag": "SetupTime", "path": "SetupTime",
|
||||
"filters": ["*exists:~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Request-Timestamp:"],
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Request-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "AnswerTime", "field_id": "AnswerTime",
|
||||
"tag": "AnswerTime", "path": "AnswerTime",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "value": "10s"
|
||||
},
|
||||
{
|
||||
"tag": "IMSI", "field_id": "IMSI",
|
||||
"tag": "IMSI", "path": "IMSI",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.User-Name"
|
||||
}
|
||||
@@ -173,17 +173,17 @@
|
||||
{
|
||||
"tag": "GrantedUnitsError",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"path": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"type": "*constant", "value": "0"
|
||||
},
|
||||
{
|
||||
"tag": "GrantedUnitsUnlimited",
|
||||
"filters": ["*eq:~*cgrep.MaxUsage:-1"],
|
||||
"field_id": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"path": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"type": "*constant", "value": "10"
|
||||
},
|
||||
{
|
||||
"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}"
|
||||
}
|
||||
@@ -200,16 +200,16 @@
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.User-Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginHost", "field_id": "OriginHost",
|
||||
"tag": "OriginHost", "path": "OriginHost",
|
||||
"type": "*variable", "value": "~*vars.OriginHost"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"type": "*constant", "value": "10s"
|
||||
},
|
||||
],
|
||||
@@ -218,17 +218,17 @@
|
||||
{
|
||||
"tag": "GrantedUnitsOnError",
|
||||
"filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"path": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"type": "*constant", "value": "0"
|
||||
},
|
||||
{
|
||||
"tag": "GrantedUnitsUnlimited",
|
||||
"filters": ["*eq:~*cgrep.MaxUsage:-1"],
|
||||
"field_id": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"path": "Granted-Service-Unit.CC-Time", "blocker": true,
|
||||
"type": "*constant", "value": "10"
|
||||
},
|
||||
{
|
||||
"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}"
|
||||
}
|
||||
@@ -244,21 +244,21 @@
|
||||
"flags": ["*terminate", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{
|
||||
"tag": "OriginID", "field_id": "OriginID",
|
||||
"tag": "OriginID", "path": "OriginID",
|
||||
"type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.IMS-Information.User-Session-Id"
|
||||
},
|
||||
{
|
||||
"tag": "OriginHost", "field_id": "OriginHost",
|
||||
"tag": "OriginHost", "path": "OriginHost",
|
||||
"type": "*variable", "value": "~*vars.OriginHost"
|
||||
},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"filters": ["*exists:~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Response-Timestamp:"],
|
||||
"type": "*usage_difference", "mandatory": true,
|
||||
"value": "~*req.Event-Timestamp;~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Response-Timestamp"},
|
||||
{
|
||||
"tag": "Usage", "field_id": "Usage",
|
||||
"tag": "Usage", "path": "Usage",
|
||||
"filters": ["*notexists:~*req.Service-Information.IMS-Information.Time-Stamps.SIP-Response-Timestamp:"],
|
||||
"type": "*constant", "value": "0s"
|
||||
},
|
||||
@@ -266,9 +266,9 @@
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "blocker": true,
|
||||
"path": "Result-Code", "blocker": true,
|
||||
"type": "*constant", "value": "5030"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code",
|
||||
{"tag": "ResultCode", "path": "Result-Code",
|
||||
"type": "*constant", "value": "2001"}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts", "*log"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,33 +9,33 @@
|
||||
"*prefix:~*req.Service-Context-Id:testSessionDisconnect"],
|
||||
"flags": ["*initiate", "*accounts","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*variable",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*variable",
|
||||
"value": "~*req.Origin-Host", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category",
|
||||
{"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Calling-Party-Address", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "DebitInterval", "field_id": "CGRDebitInterval",
|
||||
{"tag": "DebitInterval", "path": "CGRDebitInterval",
|
||||
"type": "*constant", "value": "1s"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*gte:~*cgrep.MaxUsage:0s"],
|
||||
"type": "*variable", "value": "~*cgrep.MaxUsage{*duration_seconds&*round:0}", "mandatory": true},
|
||||
],
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts", "*log"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,33 +9,33 @@
|
||||
"*prefix:~*req.Service-Context-Id:testSessionDisconnect"],
|
||||
"flags": ["*initiate", "*accounts","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*variable",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*variable",
|
||||
"value": "~*req.Origin-Host", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category",
|
||||
{"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Calling-Party-Address", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "DebitInterval", "field_id": "CGRDebitInterval",
|
||||
{"tag": "DebitInterval", "path": "CGRDebitInterval",
|
||||
"type": "*constant", "value": "1s"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*gte:~*cgrep.MaxUsage:0s"],
|
||||
"type": "*variable", "value": "~*cgrep.MaxUsage{*duration_seconds&*round:0}", "mandatory": true},
|
||||
],
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts", "*log"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,33 +9,33 @@
|
||||
"*prefix:~*req.Service-Context-Id:testSessionDisconnect"],
|
||||
"flags": ["*initiate", "*accounts","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*variable",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*variable",
|
||||
"value": "~*req.Origin-Host", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category",
|
||||
{"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Calling-Party-Address", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "DebitInterval", "field_id": "CGRDebitInterval",
|
||||
{"tag": "DebitInterval", "path": "CGRDebitInterval",
|
||||
"type": "*constant", "value": "1s"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*gte:~*cgrep.MaxUsage:0s"],
|
||||
"type": "*variable", "value": "~*cgrep.MaxUsage{*duration_seconds&*round:0}", "mandatory": true},
|
||||
],
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -36,29 +36,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -69,29 +69,29 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -101,21 +101,21 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,32 +7,32 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -42,28 +42,28 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,28 +9,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -40,30 +40,30 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -73,28 +73,28 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.CC-Request-Type:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*initiate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(1)]", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -37,30 +37,30 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group:1", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed", "value": "_grp1"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*contant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(1)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(1)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
@@ -71,30 +71,30 @@
|
||||
"*string:~*req.Multiple-Services-Credit-Control.Rating-Group[1]:2", "*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*update", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "InitialOriginID", "field_id": "InitialOriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "InitialOriginID", "path": "InitialOriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*constant", "value": "_grp2"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*sum",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*constant", "value": "2048"},
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets[~Rating-Group(2)];~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets[~Rating-Group(2)]"},
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -104,22 +104,22 @@
|
||||
"*prefix:~*req.Service-Context-Id:gprs"],
|
||||
"flags": ["*terminate", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*data"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginIDPrefix", "field_id": "OriginIDPrefix", "type": "*variable",
|
||||
{"tag": "OriginIDPrefix", "path": "OriginIDPrefix", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*constant", "value": "data"},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*handler", "handler_id": "*sum",
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Input-Octets;~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Output-Octets"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,33 +7,33 @@
|
||||
"filters": ["*string:~*vars.*cmd:CCR", "*string:~*req.Service-Context-Id:TestDiamItDryRun"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2002"},
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "1"},
|
||||
{"tag": "CCTotalOctets1", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets1", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits1"},
|
||||
{"tag": "GrantedUsage", "field_id": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
{"tag": "GrantedUsage", "path": "Granted-Service-Unit.CC-Time", "type": "*sum",
|
||||
"value": "~*cgreq.Val1;~*cgreq.Val2;~*cgreq.Val3"},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -43,29 +43,29 @@
|
||||
"filters": ["*rsr::~*rep.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[0](!^$)"], // make sure the CC-Total-Octets was populated in the previous processor
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "Val1", "field_id": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "field_id": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "field_id": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "field_id":"OptionalField", "type":"*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "Val1", "path": "Val1", "type": "*constant", "value": "1"},
|
||||
{"tag": "Val2", "path": "Val2", "type": "*constant", "value": "2"},
|
||||
{"tag": "Val3", "path": "Val3", "type": "*constant", "value": "3"},
|
||||
{"tag": "OptionalField", "path":"OptionalField", "type":"*variable",
|
||||
"value":"~*req.Inexistent", "mandatory":false},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "UsedUnits1", "field_id": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits1", "path": "UsedUnits1", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(1)]"},
|
||||
{"tag": "UsedUnits2", "field_id": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
{"tag": "UsedUnits2", "path": "UsedUnits2", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets[~Rating-Group(2)]"},
|
||||
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "RatingGroup", "field_id": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
{"tag": "RatingGroup", "path": "Multiple-Services-Credit-Control.Rating-Group",
|
||||
"type": "*constant", "value": "2","new_branch": true},
|
||||
{"tag": "CCTotalOctets2", "field_id": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
{"tag": "CCTotalOctets2", "path": "Multiple-Services-Credit-Control.Used-Service-Unit.CC-Total-Octets",
|
||||
"type": "*variable", "value": "~*cgreq.UsedUnits2"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,26 +9,26 @@
|
||||
"*string:~*req.CC-Request-Type:4"],
|
||||
"flags": ["*message", "*accounts", "*cdrs","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "sms"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "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", "field_id": "Destination", "type": "*variable", "mandatory": true,
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Service-Information.SMS-Information.Recipient-Address.Address-Data"},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -9,17 +9,17 @@
|
||||
"*prefix:~*req.Service-Context-Id:simpa"],
|
||||
"flags": ["*message", "*accounts", "*log"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*generic"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "mandatory": true,
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "generic"},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "mandatory": true,
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data[~Subscription-Id-Type(0)]"},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*value_exponent", "mandatory": true,
|
||||
"value": "~*req.Requested-Service-Unit.CC-Money.Unit-Value.Value-Digits;~*req.Requested-Service-Unit.CC-Money.Unit-Value.Exponent"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,34 +9,34 @@
|
||||
"*prefix:~*req.Service-Context-Id:testSessionDisconnect"],
|
||||
"flags": ["*initiate", "*accounts","*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*variable",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*variable",
|
||||
"value": "~*req.Origin-Host", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType",
|
||||
{"tag": "RequestType", "path": "RequestType",
|
||||
"type": "*constant", "value": "*prepaid"},
|
||||
{"tag": "Category", "field_id": "Category",
|
||||
{"tag": "Category", "path": "Category",
|
||||
"type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Calling-Party-Address", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "DebitInterval", "field_id": "CGRDebitInterval",
|
||||
{"tag": "DebitInterval", "path": "CGRDebitInterval",
|
||||
"type": "*constant", "value": "1s"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CCATemplate", "type": "*template", "value": "*cca"},
|
||||
{"tag": "ResultCode", "filters": ["*notempty:~*cgrep.Error:"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time",
|
||||
"filters": ["*gte:~*cgrep.MaxUsage:0s"],
|
||||
"type": "*variable", "value": "~*cgrep.MaxUsage{*duration_seconds&*round:0}", "mandatory": true},
|
||||
],
|
||||
|
||||
@@ -9,29 +9,29 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*initiate", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -41,31 +41,31 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*update", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.Requested-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "field_id": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
{"tag": "GrantedUnits", "path": "Granted-Service-Unit.CC-Time", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -75,29 +75,29 @@
|
||||
"*prefix:~*req.Service-Context-Id:voice"],
|
||||
"flags": ["*terminate", "*accounts", "*attributes", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice"},
|
||||
{"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.Session-Id", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Account", "path": "Account", "type": "*constant", "value": "*attributes"},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Service-Information.IN-Information.Real-Called-Number", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
{"tag": "Usage", "path": "Usage", "type": "*cc_usage", "mandatory": true,
|
||||
"value": "~*req.CC-Request-Number;~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/;5m"},
|
||||
{"tag": "LastUsed", "field_id": "LastUsed", "type": "*variable",
|
||||
{"tag": "LastUsed", "path": "LastUsed", "type": "*variable",
|
||||
"value": "~*req.Used-Service-Unit.CC-Time:s/(.*)/${1}s/", "mandatory": true},
|
||||
{"tag": "SubscriberID", "field_id": "SubscriberId", "type": "*variable",
|
||||
{"tag": "SubscriberID", "path": "SubscriberId", "type": "*variable",
|
||||
"value": "~*req.Subscription-Id.Subscription-Id-Data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "field_id": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
"path": "Result-Code", "type": "*constant", "value": "5030", "blocker": true},
|
||||
{"tag": "ResultCode", "path": "Result-Code", "type": "*constant", "value": "2001"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -60,25 +60,25 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts","*dispatchers"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -87,25 +87,25 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts","*dispatchers"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -114,27 +114,27 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs","*dispatchers"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "field_id": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
// {"tag": "*api_key", "path": "*api_key", "type": "*constant", "value": "ses12345"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
@@ -7,21 +7,21 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
|
||||
"flags": ["*auth", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "E164Address", "field_id": "E164Address",
|
||||
{"tag": "E164Address", "path": "E164Address",
|
||||
"type": "*constant", "value": "4986517174964"},
|
||||
{"tag": "NAPTRAddress", "field_id": "NAPTRAddress",
|
||||
{"tag": "NAPTRAddress", "path": "NAPTRAddress",
|
||||
"type": "*constant", "value": "*attributes"}
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegex", "field_id": "Regexp",
|
||||
{"tag": "NAPTRRegex", "path": "Regexp",
|
||||
"type": "*variable", "value": "~*cgrep.Attributes.NAPTRAddress"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement", "type": "*constant", "value": "."},
|
||||
{"tag": "NAPTROrder", "path": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "path": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "path": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement", "type": "*constant", "value": "."},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"*string:~*vars.E164Address:4986517174965"],
|
||||
"flags": ["*message", "*suppliers"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
{"tag": "TOR", "path": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "DispatchReply", "type": "*none",
|
||||
@@ -23,17 +23,17 @@
|
||||
"*gte:~*cgrep.Suppliers.Count:1"],
|
||||
"flags": ["*none"], // do not send request to CGRateS
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[0].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -46,16 +46,16 @@
|
||||
"flags": ["*none"],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "type": "*constant", "new_branch": true,
|
||||
"field_id": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
"path": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[1].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
|
||||
@@ -7,21 +7,21 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
|
||||
"flags": ["*auth", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "E164Address", "field_id": "E164Address",
|
||||
{"tag": "E164Address", "path": "E164Address",
|
||||
"type": "*constant", "value": "4986517174964"},
|
||||
{"tag": "NAPTRAddress", "field_id": "NAPTRAddress",
|
||||
{"tag": "NAPTRAddress", "path": "NAPTRAddress",
|
||||
"type": "*constant", "value": "*attributes"}
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegex", "field_id": "Regexp",
|
||||
{"tag": "NAPTRRegex", "path": "Regexp",
|
||||
"type": "*variable", "value": "~*cgrep.Attributes.NAPTRAddress"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement", "type": "*constant", "value": "."},
|
||||
{"tag": "NAPTROrder", "path": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "path": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "path": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement", "type": "*constant", "value": "."},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"*string:~*vars.E164Address:4986517174965"],
|
||||
"flags": ["*message", "*suppliers"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
{"tag": "TOR", "path": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "DispatchReply", "type": "*none",
|
||||
@@ -23,17 +23,17 @@
|
||||
"*gte:~*cgrep.Suppliers.Count:1"],
|
||||
"flags": ["*none"], // do not send request to CGRateS
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[0].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -46,16 +46,16 @@
|
||||
"flags": ["*none"],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "type": "*constant", "new_branch": true,
|
||||
"field_id": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
"path": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[1].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
|
||||
@@ -7,21 +7,21 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
|
||||
"flags": ["*auth", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "E164Address", "field_id": "E164Address",
|
||||
{"tag": "E164Address", "path": "E164Address",
|
||||
"type": "*constant", "value": "4986517174964"},
|
||||
{"tag": "NAPTRAddress", "field_id": "NAPTRAddress",
|
||||
{"tag": "NAPTRAddress", "path": "NAPTRAddress",
|
||||
"type": "*constant", "value": "*attributes"}
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegex", "field_id": "Regexp",
|
||||
{"tag": "NAPTRRegex", "path": "Regexp",
|
||||
"type": "*variable", "value": "~*cgrep.Attributes.NAPTRAddress"},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174963"],
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*sms"},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*sms"},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement", "type": "*constant", "value": "."},
|
||||
{"tag": "NAPTROrder", "path": "Order", "type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference", "type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "path": "Flags", "type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "path": "Service", "type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*constant", "value": "!^(.*)$!sip:\\1@172.16.1.10.!"},
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement", "type": "*constant", "value": "."},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"*string:~*vars.E164Address:4986517174965"],
|
||||
"flags": ["*message", "*suppliers"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
{"tag": "TOR", "path": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "DispatchReply", "type": "*none",
|
||||
@@ -23,17 +23,17 @@
|
||||
"*gte:~*cgrep.Suppliers.Count:1"],
|
||||
"flags": ["*none"], // do not send request to CGRateS
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "field_id": "Order",
|
||||
{"tag": "NAPTROrder", "path": "Order",
|
||||
"type": "*constant", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[0].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -46,16 +46,16 @@
|
||||
"flags": ["*none"],
|
||||
"reply_fields":[
|
||||
{"tag": "NAPTROrder", "type": "*constant", "new_branch": true,
|
||||
"field_id": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "field_id": "Preference",
|
||||
"path": "Order", "value": "100"},
|
||||
{"tag": "NAPTRPreference", "path": "Preference",
|
||||
"type": "*constant", "value": "10"},
|
||||
{"tag": "NAPTRFlags", "field_id": "Flags",
|
||||
{"tag": "NAPTRFlags", "path": "Flags",
|
||||
"type": "*constant", "value": "U"},
|
||||
{"tag": "NAPTRService", "field_id": "Service",
|
||||
{"tag": "NAPTRService", "path": "Service",
|
||||
"type": "*constant", "value": "E2U+SIP"},
|
||||
{"tag": "NAPTRRegexp", "field_id": "Regexp", "type": "*variable",
|
||||
{"tag": "NAPTRRegexp", "path": "Regexp", "type": "*variable",
|
||||
"value": "~*cgrep.Suppliers.SortedSuppliers[1].SupplierParameters"},
|
||||
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
||||
{"tag": "NAPTRReplacement", "path": "Replacement",
|
||||
"type": "*constant", "value": "."},
|
||||
],
|
||||
"continue": true,
|
||||
|
||||
@@ -76,17 +76,17 @@
|
||||
"source_path": "/tmp/ers/in",
|
||||
"processed_path": "/tmp/ers/out",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.10", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.11", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.12", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.13", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.10", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.11", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.12", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.13", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -93,20 +93,20 @@
|
||||
"flags": ["*dryrun"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -117,18 +117,18 @@
|
||||
"source_path": "/tmp/init_session/in",
|
||||
"flags": ["*initiate","*accounts","*resources","*attributes","*log"],
|
||||
"processed_path": "/tmp/init_session/out",
|
||||
"fields":[
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -139,11 +139,11 @@
|
||||
"source_path": "/tmp/terminate_session/in",
|
||||
"flags": ["*terminate","*accounts","*resources","*log"],
|
||||
"processed_path": "/tmp/terminate_session/out",
|
||||
"fields":[
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -154,20 +154,20 @@
|
||||
"source_path": "/tmp/cdrs/in",
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/cdrs/out",
|
||||
"fields":[
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "field_id": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "field_id": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "path": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "path": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -180,21 +180,21 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"filters":["*string:~*req.3:1002"],
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "field_id": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "path": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -206,16 +206,16 @@
|
||||
"processed_path": "/tmp/xmlErs/out",
|
||||
"xml_root_path": "broadWorksCDR.cdrData",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -226,28 +226,28 @@
|
||||
"flags": ["*cdrs"],
|
||||
"processed_path": "/tmp/fwvErs/out",
|
||||
"fields": [
|
||||
{"tag": "FileName", "field_id": "*cgreq.CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "field_id": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "field_id": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "field_id":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "field_id":"TotalDuration", "value": "~*trl.150-162"}
|
||||
{"tag": "FileName", "path": "*cgreq.CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "path": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "path": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "path":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "path":"TotalDuration", "value": "~*trl.150-162"}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -261,23 +261,23 @@
|
||||
"partial_record_cache": "2s",
|
||||
"partial_cache_expiry_action": "*dump_to_file",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
],
|
||||
"cache_dump_fields": [
|
||||
{"tag": "OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -302,23 +302,23 @@
|
||||
"partial_record_cache": "1s",
|
||||
"partial_cache_expiry_action": "*post_cdr",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -333,19 +333,19 @@
|
||||
"flags": ["*cdrs"],
|
||||
"partial_record_cache": "2s",
|
||||
"fields":[
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "field_id": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "path": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
"attributes_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"ers": {
|
||||
"enabled": true,
|
||||
"sessions_conns": ["*internal"],
|
||||
@@ -96,20 +95,20 @@
|
||||
"flags": ["*dryrun"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -121,17 +120,17 @@
|
||||
"flags": ["*initiate","*accounts","*resources","*attributes","*log"],
|
||||
"processed_path": "/tmp/init_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -143,10 +142,10 @@
|
||||
"flags": ["*terminate","*accounts","*resources","*log"],
|
||||
"processed_path": "/tmp/terminate_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -158,19 +157,19 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/cdrs/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "field_id": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "field_id": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "path": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "path": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -183,21 +182,21 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"filters":["*string:~*req.3:1002"],
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "field_id": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "path": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -209,16 +208,16 @@
|
||||
"processed_path": "/tmp/xmlErs/out",
|
||||
"xml_root_path": "broadWorksCDR.cdrData",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -229,28 +228,28 @@
|
||||
"flags": ["*cdrs"],
|
||||
"processed_path": "/tmp/fwvErs/out",
|
||||
"fields": [
|
||||
{"tag": "FileName", "field_id": "CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "field_id": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "field_id": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "field_id":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "field_id":"TotalDuration", "value": "~*trl.150-162"}
|
||||
{"tag": "FileName", "path": "*cgreq.CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "path": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "path": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "path":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "path":"TotalDuration", "value": "~*trl.150-162"}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -264,23 +263,23 @@
|
||||
"partial_record_cache": "2s",
|
||||
"partial_cache_expiry_action": "*dump_to_file",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
],
|
||||
"cache_dump_fields": [
|
||||
{"tag": "OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -305,23 +304,23 @@
|
||||
"partial_record_cache": "1s",
|
||||
"partial_cache_expiry_action": "*post_cdr",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -336,19 +335,19 @@
|
||||
"flags": ["*cdrs"],
|
||||
"partial_record_cache": "2s",
|
||||
"fields":[
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "field_id": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "path": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
"attributes_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"ers": {
|
||||
"enabled": true,
|
||||
"sessions_conns": ["*internal"],
|
||||
@@ -93,20 +92,20 @@
|
||||
"flags": ["*dryrun"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -118,17 +117,17 @@
|
||||
"flags": ["*initiate","*accounts","*resources","*attributes","*log"],
|
||||
"processed_path": "/tmp/init_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -140,10 +139,10 @@
|
||||
"flags": ["*terminate","*accounts","*resources","*log"],
|
||||
"processed_path": "/tmp/terminate_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -155,19 +154,19 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/cdrs/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "field_id": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "field_id": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "path": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "path": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -180,21 +179,21 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"filters":["*string:~*req.3:1002"],
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "field_id": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "path": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -206,16 +205,16 @@
|
||||
"processed_path": "/tmp/xmlErs/out",
|
||||
"xml_root_path": "broadWorksCDR.cdrData",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -226,30 +225,29 @@
|
||||
"flags": ["*cdrs"],
|
||||
"processed_path": "/tmp/fwvErs/out",
|
||||
"fields": [
|
||||
{"tag": "FileName", "field_id": "CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "field_id": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "field_id": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "field_id":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "field_id":"TotalDuration", "value": "~*trl.150-162"}
|
||||
{"tag": "FileName", "path": "*cgreq.CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "path": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "path": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "path":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "path":"TotalDuration", "value": "~*trl.150-162"}
|
||||
],
|
||||
|
||||
},
|
||||
{
|
||||
"id": "PartialCSV1",
|
||||
@@ -262,23 +260,23 @@
|
||||
"partial_record_cache": "2s",
|
||||
"partial_cache_expiry_action": "*dump_to_file",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
],
|
||||
"cache_dump_fields": [
|
||||
{"tag": "OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -303,23 +301,23 @@
|
||||
"partial_record_cache": "1s",
|
||||
"partial_cache_expiry_action": "*post_cdr",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -334,19 +332,19 @@
|
||||
"flags": ["*cdrs"],
|
||||
"partial_record_cache": "2s",
|
||||
"fields":[
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "field_id": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "path": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
"attributes_conns": ["*internal"],
|
||||
},
|
||||
|
||||
|
||||
"ers": {
|
||||
"enabled": true,
|
||||
"sessions_conns": ["*internal"],
|
||||
@@ -90,20 +89,20 @@
|
||||
"flags": ["*dryrun"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -115,17 +114,17 @@
|
||||
"flags": ["*initiate","*accounts","*resources","*attributes","*log"],
|
||||
"processed_path": "/tmp/init_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -137,10 +136,10 @@
|
||||
"flags": ["*terminate","*accounts","*resources","*log"],
|
||||
"processed_path": "/tmp/terminate_session/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -152,19 +151,19 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/cdrs/out",
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "field_id": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "field_id": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "path": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "path": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -177,21 +176,21 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"filters":["*string:~*req.3:1002"],
|
||||
"fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "field_id": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "path": "Source", "type": "*constant", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -203,16 +202,16 @@
|
||||
"processed_path": "/tmp/xmlErs/out",
|
||||
"xml_root_path": "broadWorksCDR.cdrData",
|
||||
"fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.localCallId", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userId:s/.*@(.*)/${1}/", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.userNumber", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.calledNumber", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.startTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference", "value": "~*req.broadWorksCDR.cdrData.basicModule.releaseTime;~*req.broadWorksCDR.cdrData.basicModule.answerTime", "mandatory": true}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -223,28 +222,28 @@
|
||||
"flags": ["*cdrs"],
|
||||
"processed_path": "/tmp/fwvErs/out",
|
||||
"fields": [
|
||||
{"tag": "FileName", "field_id": "CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "field_id": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "field_id": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "field_id": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "field_id": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "field_id":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "field_id":"TotalDuration", "value": "~*trl.150-162"}
|
||||
{"tag": "FileName", "path": "*cgreq.CdrFileName", "type": "*variable", "value": "~*hdr.95-135", "padding":"right"},
|
||||
{"tag": "FileSeqNr", "path": "FileSeqNr", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*hdr.135-141", "padding":"zeroleft"},
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "rated", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0-10", "padding":"right", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "0.0.0.0", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.30-49", "padding":"right", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.52-80", "padding":"right", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.14-30:s/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}-${2}-${3} ${4}:${5}:${6}/", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.127-135:s/(\\d{2})(\\d{2})(\\d{2})(\\d{2})/${1}h${2}m${3}s/", "mandatory": true},
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.138-139", "mandatory": true},
|
||||
{"tag": "RetailAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.103-111", "padding":"zeroleft"},
|
||||
{"tag": "WholesaleAmount", "path": "RetailAmount", "type": "*variable", "value": "~*req.115-123", "padding":"zeroleft"},
|
||||
{"tag": "AccId1", "path": "AccId1", "type": "*variable", "value": "~*req.3-6", "padding":"zeroleft", "mandatory": true},
|
||||
{"tag": "AccId2", "path": "AccId2", "type": "*variable", "value": "~*req.14-30", "padding":"right", "mandatory": true},
|
||||
{"tag": "NrOfCdrs", "type": "*variable", "path":"NrOfCdrs", "value": "~*trl.142-150"},
|
||||
{"tag": "TotalDuration", "type": "*variable", "path":"TotalDuration", "value": "~*trl.150-162"}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -258,23 +257,23 @@
|
||||
"partial_record_cache": "2s",
|
||||
"partial_cache_expiry_action": "*dump_to_file",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]},
|
||||
],
|
||||
"cache_dump_fields": [
|
||||
{"tag": "OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -299,23 +298,23 @@
|
||||
"partial_record_cache": "1s",
|
||||
"partial_cache_expiry_action": "*post_cdr",
|
||||
"fields":[
|
||||
{"tag": "ToR", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "field_id": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "field_id": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "field_id": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "field_id": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "field_id": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "field_id": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
{"tag": "ToR", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "AccId1", "path": "OriginID", "type": "*composed", "value": "~*req.0"},
|
||||
{"tag": "AccId2", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId3", "path": "OriginID", "type": "*composed", "value": "~*req.1"},
|
||||
{"tag": "AccId4", "path": "OriginID", "type": "*composed", "value": "_"},
|
||||
{"tag": "AccId5", "path": "OriginID", "type": "*composed", "value": "~*req.4"},
|
||||
{"tag": "OrderID", "path": "OrderID", "type": "*unix_timestamp", "value": "~*req.3"},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*constant", "value": "127.0.0.1", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant", "value": "*rated", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.0:s/^49([1-9]\\d+)$/0$1/", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.1:s/^00(\\d+)$/+$1/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6:s/^(\\d+)$/${1}s/", "mandatory": true},
|
||||
{"tag": "Partial", "path": "Partial", "type": "*constant", "value": "true", "filters":["*string:~*req.10:partial"]}
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -330,19 +329,19 @@
|
||||
"flags": ["*cdrs"],
|
||||
"partial_record_cache": "2s",
|
||||
"fields":[
|
||||
{"tag": "Tor", "field_id": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "field_id": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "field_id": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
{"tag": "Tor", "path": "ToR", "type": "*constant", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable","value":"~*req.3;~*req.1;~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*constant", "value": "cgrates.org", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "mandatory": true}, // Value for Usage is composed based on record
|
||||
{"tag": "DisconnectCause", "path": "DisconnectCause", "type": "*variable", "value": "~*req.4; ;~*req.5", "mandatory": true},
|
||||
{"tag": "DialogId", "path": "DialogId", "type": "*variable", "value": "~*req.11"}
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
@@ -85,20 +85,20 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -76,17 +76,17 @@
|
||||
"source_path": "/tmp/ers/in",
|
||||
"processed_path": "/tmp/ers/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.10", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.11", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.12", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.13", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.10", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.11", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.12", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.13", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -85,20 +85,20 @@
|
||||
"flags": ["*dryrun"],
|
||||
"processed_path": "/tmp/ers2/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -110,17 +110,17 @@
|
||||
"flags": ["*initiate","*accounts","*resources","*attributes","*log"],
|
||||
"processed_path": "/tmp/init_session/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -132,10 +132,10 @@
|
||||
"flags": ["*terminate","*accounts","*resources","*log"],
|
||||
"processed_path": "/tmp/terminate_session/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -147,19 +147,19 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"processed_path": "/tmp/cdrs/out",
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "field_id": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "field_id": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.4", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.7", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.8", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.9", "mandatory": true},
|
||||
{"tag": "ExtraInfo1", "path": "ExtraInfo1", "type": "*constant", "value": "ExtraInfo1", "mandatory": true},
|
||||
{"tag": "ExtraInfo2", "path": "ExtraInfo2", "type": "*constant", "value": "ExtraInfo2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -173,21 +173,21 @@
|
||||
"flags": ["*cdrs","*log"],
|
||||
"filters":["*string:~*req.3:1002"],
|
||||
"content_fields":[ // import content_fields template, tag will match internally CDR field, in case of .csv value will be represented by index of the field value
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "field_id": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "field_id": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "field_id": "Source", "type": "*variable", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "field_id": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "field_id": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "field_id": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "TOR", "path": "ToR", "type": "*variable", "value": "*voice", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.2", "mandatory": true},
|
||||
{"tag": "Category", "path": "Category", "type": "*variable", "value": "call", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Source", "path": "Source", "type": "*variable", "value": "ers_csv", "mandatory": true},
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable", "value": "~*req.3", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable", "value": "~*req.4:s/0([1-9]\\d+)/+49${1}/", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable", "value": "~*req.5", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra3", "path": "HDRExtra3", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra2", "path": "HDRExtra2", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
{"tag": "HDRExtra1", "path": "HDRExtra1", "type": "*variable", "value": "~*req.6", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
@@ -35,22 +35,22 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -60,29 +60,29 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
@@ -100,21 +100,21 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
@@ -136,15 +136,15 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -156,7 +156,7 @@
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,168 +1,168 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,168 +1,168 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,168 +1,168 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,168 +1,168 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,168 +1,168 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -17,15 +17,15 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
@@ -35,22 +35,22 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -60,29 +60,29 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
@@ -100,21 +100,21 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
@@ -136,15 +136,15 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
@@ -157,7 +157,7 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,169 +1,169 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,169 +1,169 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,169 +1,169 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,169 +1,169 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -1,169 +1,169 @@
|
||||
{
|
||||
|
||||
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "field_id": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "field_id": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "field_id": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"field_id": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "field_id": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["conn1"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "field_id": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "field_id": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "field_id": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
"http_agent": [
|
||||
{
|
||||
"id": "conecto1",
|
||||
"url": "/conecto",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "OutboundAUTHDryRun",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "Concatenated1", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "~*req.MCC;/", "mandatory": true},
|
||||
{"tag": "Concatenated2", "path": "response.Concatenated", "type": "*composed",
|
||||
"value": "Val1"},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*constant",
|
||||
"value": "1200", "blocker": true},
|
||||
{"tag": "Unused", "path": "response.Unused", "type": "*constant",
|
||||
"value": "0"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "OutboundAUTH",
|
||||
"filters": ["*string:~*req.request_type:OutboundAUTH"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": [ "*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CallID", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.Msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*constant",
|
||||
"value": "*now", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
{"tag": "MaxDuration", "path": "response.MaxDuration", "type": "*variable",
|
||||
"value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "mtcall_cdr",
|
||||
"filters": ["*string:~*req.request_type:MTCALL_CDR"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*remote_host",
|
||||
"mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.msisdn", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.timestamp", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.leg_duration;s", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "ResultCode", "filters": ["*rsr::~*cgrep.Error(!^$)"],
|
||||
"path": "CDR_RESPONSE.RESULT_CODE", "type": "*variable", "value": "~*cgrep.Error", "blocker": true},
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*variable",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
{"tag": "CDR_STATUS", "path": "CDR_RESPONSE.CDR_STATUS", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "conecto_xml",
|
||||
"url": "/conecto_xml",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*xml",
|
||||
"reply_payload": "*xml",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "cdr_from_xml",
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.customerid", "mandatory": true},
|
||||
{"tag": "Account", "path": "Account", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.username", "mandatory": true},
|
||||
{"tag": "Destination", "path": "Destination", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.userid", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.createtime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "Usage", "type": "*variable",
|
||||
"value": "~*req.complete-datasession-notification.callleg.bytes", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "textplain",
|
||||
"url": "/textplain",
|
||||
"sessions_conns": ["*localhost"],
|
||||
"request_payload": "*url",
|
||||
"reply_payload": "*text_plain",
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "TextPlainDryRun",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Variable1", "type": "*variable",
|
||||
"value": "Hola1", "mandatory": true},
|
||||
{"tag": "Field2", "path": "Variable2", "type": "*variable",
|
||||
"value": "Hola2", "mandatory": true},
|
||||
{"tag": "Field3", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Test", "mandatory": true},
|
||||
{"tag": "Field4", "path": "ComposedVar", "type": "*composed",
|
||||
"value": "Composed", "mandatory": true},
|
||||
{"tag": "Field5", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val1", "mandatory": true},
|
||||
],
|
||||
"continue": true,
|
||||
},
|
||||
{
|
||||
"id": "TextPlainDryRun2",
|
||||
"filters": ["*string:~*req.request_type:TextPlainDryRun","*string:~*req.Msisdn:497700056231"],
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*dryrun"],
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Field1", "path": "Item1.1", "type": "*variable",
|
||||
"value": "Val2", "mandatory": true},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -120,17 +120,17 @@
|
||||
"type": "*attributes", // data source type
|
||||
"file_name": "Attributes.csv", // file name in the tp_in_dir
|
||||
"fields": [
|
||||
{"tag": "TenantID", "field_id": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
|
||||
{"tag": "ProfileID", "field_id": "ID", "type": "*variable", "value": "~1", "mandatory": true},
|
||||
{"tag": "Contexts", "field_id": "Contexts", "type": "*variable", "value": "~2"},
|
||||
{"tag": "FilterIDs", "field_id": "FilterIDs", "type": "*variable", "value": "~3"},
|
||||
{"tag": "ActivationInterval", "field_id": "ActivationInterval", "type": "*variable", "value": "~4"},
|
||||
{"tag": "AttributeFilterIDs", "field_id": "AttributeFilterIDs", "type": "*variable", "value": "~5"},
|
||||
{"tag": "Path", "field_id": "Path", "type": "*variable", "value": "~6"},
|
||||
{"tag": "Type", "field_id": "Type", "type": "*variable", "value": "~7"},
|
||||
{"tag": "Value", "field_id": "Value", "type": "*variable", "value": "~8"},
|
||||
{"tag": "Blocker", "field_id": "Blocker", "type": "*variable", "value": "~9"},
|
||||
{"tag": "Weight", "field_id": "Weight", "type": "*variable", "value": "~10"},
|
||||
{"tag": "TenantID", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
|
||||
{"tag": "ProfileID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
|
||||
{"tag": "Contexts", "path": "Contexts", "type": "*variable", "value": "~2"},
|
||||
{"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~3"},
|
||||
{"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~4"},
|
||||
{"tag": "AttributeFilterIDs", "path": "AttributeFilterIDs", "type": "*variable", "value": "~5"},
|
||||
{"tag": "Path", "path": "Path", "type": "*variable", "value": "~6"},
|
||||
{"tag": "Type", "path": "Type", "type": "*variable", "value": "~7"},
|
||||
{"tag": "Value", "path": "Value", "type": "*variable", "value": "~8"},
|
||||
{"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~9"},
|
||||
{"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~10"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
@@ -80,17 +80,17 @@
|
||||
"type": "*attributes", // data source type
|
||||
"file_name": "Attributes.csv", // file name in the tp_in_dir
|
||||
"fields": [
|
||||
{"tag": "TenantID", "field_id": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
|
||||
{"tag": "ProfileID", "field_id": "ID", "type": "*variable", "value": "~1", "mandatory": true},
|
||||
{"tag": "Contexts", "field_id": "Contexts", "type": "*variable", "value": "~2"},
|
||||
{"tag": "FilterIDs", "field_id": "FilterIDs", "type": "*variable", "value": "~3"},
|
||||
{"tag": "ActivationInterval", "field_id": "ActivationInterval", "type": "*variable", "value": "~4"},
|
||||
{"tag": "AttributeFilterIDs", "field_id": "AttributeFilterIDs", "type": "*variable", "value": "~5"},
|
||||
{"tag": "Path", "field_id": "Path", "type": "*variable", "value": "~6"},
|
||||
{"tag": "Type", "field_id": "Type", "type": "*variable", "value": "~7"},
|
||||
{"tag": "Value", "field_id": "Value", "type": "*variable", "value": "~8"},
|
||||
{"tag": "Blocker", "field_id": "Blocker", "type": "*variable", "value": "~9"},
|
||||
{"tag": "Weight", "field_id": "Weight", "type": "*variable", "value": "~10"},
|
||||
{"tag": "TenantID", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
|
||||
{"tag": "ProfileID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
|
||||
{"tag": "Contexts", "path": "Contexts", "type": "*variable", "value": "~2"},
|
||||
{"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~3"},
|
||||
{"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~4"},
|
||||
{"tag": "AttributeFilterIDs", "path": "AttributeFilterIDs", "type": "*variable", "value": "~5"},
|
||||
{"tag": "Path", "path": "Path", "type": "*variable", "value": "~6"},
|
||||
{"tag": "Type", "path": "Type", "type": "*variable", "value": "~7"},
|
||||
{"tag": "Value", "path": "Value", "type": "*variable", "value": "~8"},
|
||||
{"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~9"},
|
||||
{"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~10"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
"cdre": {
|
||||
"TestTutITExportCDR": {
|
||||
"content_fields": [
|
||||
"fields": [
|
||||
{"tag": "CGRID", "type": "*composed", "value": "~CGRID"},
|
||||
{"tag": "RunID", "type": "*composed", "value": "~RunID"},
|
||||
{"tag":"OriginID", "type": "*composed", "value": "~OriginID"},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
"cdre": {
|
||||
"*default": {
|
||||
"content_fields": [ // template of the exported content fields
|
||||
"fields": [ // template of the exported content fields
|
||||
{"tag":"AccId", "cdr_field_id": "accid", "type": "cdrfield", "value": "accid"},
|
||||
{"tag":"ReqType", "cdr_field_id": "reqtype", "type": "cdrfield", "value": "reqtype"},
|
||||
{"tag":"Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"},
|
||||
@@ -41,7 +41,7 @@
|
||||
"request_fields":[
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -51,11 +51,11 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*auth", "*accounts", "*attributes"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "Allow", "field_id": "response.Allow", "type": "*constant",
|
||||
{"tag": "Allow", "path": "response.Allow", "type": "*constant",
|
||||
"value": "1", "mandatory": true},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"export_path": "/tmp/cgrates/cdre", // path where the exported CDRs will be placed
|
||||
},
|
||||
"export1": {
|
||||
"header_fields": [
|
||||
"fields": [
|
||||
{"tag": "CgrId", "cdr_field_id": "cgrid", "type": "cdrfield", "value": "cgrid"},
|
||||
{"tag":"RunId", "cdr_field_id": "mediation_runid", "type": "cdrfield", "value": "mediation_runid"},
|
||||
], // template of the exported header fields
|
||||
@@ -33,11 +33,11 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*pseudoprepaid", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "CDR_ID", "field_id": "CDR_RESPONSE.CDR_ID", "type": "*composed",
|
||||
{"tag": "CDR_ID", "path": "CDR_RESPONSE.CDR_ID", "type": "*composed",
|
||||
"value": "~*req.CDR_ID", "mandatory": true},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"cdre": {
|
||||
"export1": {
|
||||
"cost_rounding_decimals": 3, // rounding decimals for Cost values. -1 to disable rounding
|
||||
"content_fields": [ // template of the exported content fields
|
||||
"fields": [ // template of the exported content fields
|
||||
{"tag":"Tenant", "cdr_field_id": "tenant", "type": "cdrfield", "value": "tenant"},
|
||||
{"tag":"Category", "cdr_field_id": "category", "type": "cdrfield", "value": "category"},
|
||||
{"tag":"Account", "cdr_field_id": "account", "type": "cdrfield", "value": "account"},
|
||||
@@ -33,7 +33,7 @@
|
||||
"tenant": "cgrates.org",
|
||||
"flags": ["*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "TOR", "field_id": "ToR", "type": "*constant",
|
||||
{"tag": "TOR", "path": "ToR", "type": "*constant",
|
||||
"value": "*data", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[],
|
||||
|
||||
@@ -72,24 +72,24 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -98,24 +98,24 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -124,26 +124,26 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
@@ -80,24 +80,24 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -106,24 +106,24 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -132,26 +132,26 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
@@ -75,24 +75,24 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -101,24 +101,24 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -127,26 +127,26 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
@@ -83,24 +83,24 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -109,24 +109,24 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -135,26 +135,26 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
@@ -71,24 +71,24 @@
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*auth", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Event-Timestamp", "mandatory": true},
|
||||
],
|
||||
"reply_fields":[
|
||||
{"tag": "MaxUsage", "field_id": "SIP-AVP", "type": "*composed",
|
||||
{"tag": "MaxUsage", "path": "SIP-AVP", "type": "*composed",
|
||||
"value": "session_max_time#;~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true},
|
||||
],
|
||||
},
|
||||
@@ -97,24 +97,24 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Start"],
|
||||
"flags": ["*initiate", "*attributes", "*resources", "*accounts"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
@@ -123,26 +123,26 @@
|
||||
"filters": ["*string:~*req.Acct-Status-Type:Stop"],
|
||||
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"],
|
||||
"request_fields":[
|
||||
{"tag": "Category", "field_id": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "field_id": "RequestType", "type": "*constant",
|
||||
{"tag": "Category", "path": "Category", "type": "*constant", "value": "call"},
|
||||
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
|
||||
"value": "*prepaid", "mandatory": true},
|
||||
{"tag": "OriginID", "field_id": "OriginID", "type": "*composed",
|
||||
{"tag": "OriginID", "path": "OriginID", "type": "*composed",
|
||||
"value": "~*req.Acct-Session-Id;-;~*req.Sip-From-Tag;-;~*req.Sip-To-Tag", "mandatory": true},
|
||||
{"tag": "OriginHost", "field_id": "OriginHost", "type": "*composed",
|
||||
{"tag": "OriginHost", "path": "OriginHost", "type": "*composed",
|
||||
"value": "~*req.NAS-IP-Address", "mandatory": true},
|
||||
{"tag": "Account", "field_id": "Account", "type": "*composed",
|
||||
{"tag": "Account", "path": "Account", "type": "*composed",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Subject", "field_id": "Subject", "type": "*variable",
|
||||
{"tag": "Subject", "path": "Subject", "type": "*variable",
|
||||
"value": "~*req.User-Name", "mandatory": true},
|
||||
{"tag": "Destination", "field_id": "Destination", "type": "*composed",
|
||||
{"tag": "Destination", "path": "Destination", "type": "*composed",
|
||||
"value": "~*req.Called-Station-Id", "mandatory": true},
|
||||
{"tag": "SetupTime", "field_id": "SetupTime", "type": "*composed",
|
||||
{"tag": "SetupTime", "path": "SetupTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "AnswerTime", "field_id": "AnswerTime", "type": "*composed",
|
||||
{"tag": "AnswerTime", "path": "AnswerTime", "type": "*composed",
|
||||
"value": "~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "Usage", "field_id": "Usage", "type": "*usage_difference",
|
||||
{"tag": "Usage", "path": "Usage", "type": "*usage_difference",
|
||||
"value": "~*req.Event-Timestamp;~*req.Ascend-User-Acct-Time", "mandatory": true},
|
||||
{"tag": "RemoteAddr" , "field_id": "RemoteAddr", "type": "*remote_host"},
|
||||
{"tag": "RemoteAddr" , "path": "RemoteAddr", "type": "*remote_host"},
|
||||
],
|
||||
"reply_fields":[],
|
||||
},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user