Thanks Armir,
That's what I was thinking. But I've tried various methods, I keep getting this authorization, when I make another call:
T 2025/04/28 19:57:31.163042
172.31.38.9:55842 ->
172.31.6.253:2014 [AP] #5
{ "method": "SessionSv1.AuthorizeEventWithDigest", "id": 500807406, "params": [ { "ProcessStatQueues": true, "ProcessThresholds": true, "ReleaseResources": true, "AllocateResources": true, "AuthorizeResources": true, "GetRoutes": false, "GetAttributes": true, "GetMaxUsage": true, "Event": { "Source": "OpenSIPS", "OriginHost": "172.31.38.9", "RequestType": "prepaid", "OriginID": "29a85988-4f01-d773-97c1-e30d31962f93", "Account": "1000000063", "SetupTime": "1745870251", "Destination": "TheNumber" } } ] }
#
T 2025/04/28 19:57:31.169522
172.31.6.253:2014 ->
172.31.38.9:55842 [AP] #6
{"id":500807406,"result":{"AttributesDigest":"","ResourceAllocation":"ResGroup1","MaxUsage":30,"RoutesDigest":null,"Thresholds":"","StatQueues":null},"error":null}
####
T 2025/04/28 19:57:42.638442
172.31.38.9:55842 ->
172.31.6.253:2014 [AP] #10
{ "method": "SessionSv1.AuthorizeEventWithDigest", "id": 500807410, "params": [ { "ProcessStatQueues": true, "ProcessThresholds": true, "ReleaseResources": true, "AllocateResources": true, "AuthorizeResources": true, "GetRoutes": false, "GetAttributes": true, "GetMaxUsage": true, "Event": { "Source": "OpenSIPS", "OriginHost": "172.31.38.9", "RequestType": "prepaid", "OriginID": "ff2acc48-53fb-31c2-b535-1f919063709c", "Account": "1000000063", "SetupTime": "1745870262", "Destination": "TheNumber" } } ] }
#
T 2025/04/28 19:57:42.644840
172.31.6.253:2014 ->
172.31.38.9:55842 [AP] #11
{"id":500807410,"result":{"AttributesDigest":"","ResourceAllocation":"ResGroup1","MaxUsage":30,"RoutesDigest":null,"Thresholds":"","StatQueues":null},"error":null}
The following (and many other variations), I've tried:
ACT_BLOCK_CONCURRENT,deny,Reason:MaxUsage Exceeded,,,,,,,,,,,,,,10
cgrates.org,THD_CONCURRENT_LIMIT,lt:~resource.ResGroup1.Allocated:1,2023-10-01T00:00:00Z,-1,1,1s,false,10,ACT_BLOCK_CONCURRENT,false
cgrates.org,FLTR_RES,string,~req.Account,1000000063,2025-01-01T00:00:00Z
cgrates.org,ResGroup1,FLTR_RES,2023-10-01T00:00:00Z,-1,1,,true,true,10,none
Despite the 30s MaxUsage, calls don't disconnect at 30s.
Any thoughts? Appreciate the help.