Hi Teov,
Thank you for your patience. Please see the missing information below and the complete configuration file in attachment.
===================================== Opensips to cgrates ==============================
{ "method": "SessionSv1.AuthorizeEventWithDigest", "id": 1106719771, "params": [ { "Category": "call", "Tenant": "sinatzt", "ProcessStatQueues": true, "ProcessThresholds": true, "ReleaseResources": false
, "AllocateResources": false, "AuthorizeResources": false, "GetMaxUsage": true, "Event": { "Source": "edge-proxy-1", "OriginHost": "10.20.100.2", "RequestType": "*prepaid", "OriginID": "ea0a2144-b534-123
9-29ad-42010a146403", "Account": "370df420-4e7d-4559-a390-b31ef26f4e10", "SetupTime": "1607568461", "Destination": "55xxxxxxxxxx" } } ] }
{"id":1106719771,"result":{"AttributesDigest":null,"ResourceAllocation":null,"MaxUsage":0,"SuppliersDigest":null,"Thresholds":"","StatQueues":null},"error":null}.
============ localhost capture ==================
{"method":"Responder.GetMaxSessionTime","params":[{"Category":"call","Tenant":"sinatzt","Subject":"370df420-4e7d-4559-a390-b31ef26f4e10","Account":"370df420-4e7d-4559-a390-b31ef26f4e10","Destination":"55xxxxxxxxxxxxxxxx","TimeStart":"2020-12-10T02:47:41Z","TimeEnd":"2020-12-10T05:47:41Z","LoopIndex":0,"DurationIndex":0,"FallbackSubject":"","RatingInfos":null,"Increments":null,"ToR":"","ExtraFields":{},"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0,"CgrID":"c520d9985f0c77092d818034f2466418a762d8cd","RunID":"*default","ForceDuration":false,"PerformRounding":false,"DryRun":false,"DenyNegativeAccount":false}],"id" :8}.
{"id":8,"result":0,"error":null}.
================================= Cgr-console ==========================================
{"method":"APIerSv1.GetCost","params":[{"Tenant":"sinatzt","Category":"call","Subject":"370df420-4e7d-4559-a390-b31ef26f4e10","AnswerTime":"2020-12-10T04:03:43","Destination":"55xxxxxxxxxxx","Usage":"5m",
"APIKey":null,"RouteID":null}],"id":10}.
{"id":10,"result":{"CGRID":"","RunID":"","StartTime":"2020-12-10T04:03:43Z","Usage":300000000000,"Cost":19.149,"Charges":[{"RatingID":"48700db","Increments":[{"Usage":0,"Cost":3,"AccountingID":"","Compre
ssFactor":1},{"Usage":1000000000,"Cost":0.05383,"AccountingID":"","CompressFactor":300}],"CompressFactor":1}],"AccountSummary":null,"Rating":{"48700db":{"ConnectFee":3,"RoundingMethod":"*up","RoundingDec
imals":4,"MaxCost":0,"MaxCostStrategy":"","TimingID":"35b7669","RatesID":"130243f","RatingFiltersID":"ed8b2c5"}},"Accounting":{},"RatingFilters":{"ed8b2c5":{"DestinationID":"BR_55112","DestinationPrefix"
:"55112","RatingPlanID":"RP_SINAT_FLEX_TNYX","Subject":"*out:sinatzt:call:370df420-4e7d-4559-a390-b31ef26f4e10"}},"Rates":{"130243f":[{"GroupIntervalStart":0,"Value":3.23,"RateIncrement":1000000000,"Rate
Unit":60000000000}]},"Timings":{"35b7669":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00"}}},"error":null}.
=====================================================================================
Please note that this account has a *voice balance that should be used for this destination (see balance map below). If I add some *monetary
balance to this account, the call will be successfully authorized.
[
{
"ActionTriggers": null,
"AllowNegative": false,
"BalanceMap": {
"*voice": [
{
"Blocker": false,
"Categories": {
"call": true
},
"DestinationIDs": {
"DR_BR": true
},
"Disabled": false,
"ExpirationDate": "2021-01-10T02:43:11Z",
"Factor": null,
"ID": "PKG-RP_SINATOUT_3000_bo1qv07budgt6chb900g",
"RatingSubject": "370df420-4e7d-4559-a390-b31ef26f4e10",
"SharedGroups": {},
"TimingIDs": {
"*asap": true
},
"Timings": null,
"Uuid": "6e6d7b4b-c2ed-47d2-bb3e-97e37b10fc6b",
"Value": 3000,
"Weight": 0
}
]
},
"Disabled": false,
"ID": "sinatzt:370df420-4e7d-4559-a390-b31ef26f4e10",
"UnitCounters": null,
"UpdateTime": "2020-12-10T02:43:11.133827902Z"
}
]
===========================================================================
Cost simulation from cgr-console returns below information
{
"AccountSummary": null,
"Accounting": {},
"CGRID": "",
"Charges": [
{
"CompressFactor": 1,
"Increments": [
{
"AccountingID": "",
"CompressFactor": 1,
"Cost": 3,
"Usage": "0s"
},
{
"AccountingID": "",
"CompressFactor": 300,
"Cost": 0.05383,
"Usage": "1s"
}
],
"RatingID": "cce8482"
}
],
"Cost": 19.149,
"Rates": {
"86e223d": [
{
"GroupIntervalStart": "0s",
"RateIncrement": "1s",
"RateUnit": "1m0s",
"Value": 3.23
}
]
},
"Rating": {
"cce8482": {
"ConnectFee": 3,
"MaxCost": 0,
"MaxCostStrategy": "",
"RatesID": "86e223d",
"RatingFiltersID": "7917131",
"RoundingDecimals": 4,
"RoundingMethod": "*up",
"TimingID": "f4ba593"
}
},
"RatingFilters": {
"7917131": {
"DestinationID": "BR_55112",
"DestinationPrefix": "55112",
"RatingPlanID": "RP_SINAT_FLEX_TNYX",
"Subject": "*out:sinatzt:call:370df420-4e7d-4559-a390-b31ef26f4e10"
}
},
"RunID": "",
"StartTime": "2020-12-10T04:03:43Z",
"Timings": {
"f4ba593": {
"MonthDays": [],
"Months": [],
"StartTime": "00:00:00",
"WeekDays": [],
"Years": []
}
},
"Usage": "5m0s"
}