mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
added rsparser field in dynamicOpts
changed Value field to unexported and created a Value() method on each dynOpts type that contains logic to create a rsparser in case the value field a configuration starts with prefix "~" otherwise it will return the specified value
This commit is contained in:
committed by
Dan Christian Bogos
parent
de87ab04ad
commit
c602dbc2a5
@@ -29,24 +29,24 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": [],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*routes": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1002"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1003"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -36,24 +36,24 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": [],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*routes": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1002"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1003"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -27,24 +27,24 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": [],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*routes": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1002"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1003"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"*processRuns": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": 2,
|
||||
"Value": "2",
|
||||
},
|
||||
], //
|
||||
},
|
||||
@@ -48,32 +48,32 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*rates": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*opts.*runID:customers"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*accounts": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
"*ees": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -103,7 +103,7 @@
|
||||
"*profileIgnoreFilters": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -141,7 +141,7 @@
|
||||
"*ignoreErrors": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true,
|
||||
"Value": "true",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"*processRuns": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": 2
|
||||
"Value": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -50,32 +50,32 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*rates": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*opts.*runID:customers"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*accounts": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*ees": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -105,7 +105,7 @@
|
||||
"*profileIgnoreFilters": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"*processRuns": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": 2
|
||||
"Value": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -47,32 +47,32 @@
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*rates": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
},
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*opts.*runID:customers"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*accounts": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
],
|
||||
"*ees": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -102,7 +102,7 @@
|
||||
"*profileIgnoreFilters": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -140,7 +140,7 @@
|
||||
"*ignoreErrors": [
|
||||
{
|
||||
"Tenant": "*any",
|
||||
"Value": true
|
||||
"Value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user