734 Commits

Author SHA1 Message Date
armirveliaj
2fe3fd6690 add tests for SessionSv1.ProcessEvent && resources 2026-01-27 20:29:18 +01:00
armirveliaj
f28c62f7ad revise & test SessionSv1.ProcessEvent for ResourceS Authorization 2026-01-27 20:29:18 +01:00
DanB
a7d6e73182 SessionSv1.ProcessEvent with *resourceAuthorize support 2026-01-16 13:59:39 +01:00
armirveliaj
a79bd15eab revise & test SessionSv1.ProcessEvent for IPAuthorization 2026-01-15 17:01:35 +01:00
DanB
d9c2bd5045 SessionSv1.ProcessEvent with *accountsAuthorize functionality 2026-01-15 14:07:59 +01:00
ionutboangiu
2d831f50bc fix compliation errors after constant variable rename 2026-01-14 10:31:50 +01:00
DanB
ec41867448 Initial SessionSv1.ProcessEvent 2026-01-13 19:50:19 +01:00
arberkatellari
9783cdbf3e Make CDRs storable in Redis DB 2025-12-21 18:33:36 +01:00
arberkatellari
0a67068163 Adjust tests to new tutorial samples 2025-11-19 15:59:20 +01:00
DanB
a559563810 Disabling db tests for sessions processEvent APIs 2025-11-16 10:09:10 +01:00
DanB
fd0ef907c8 Start SessionSv1.ProcessEvent API 2025-11-13 20:19:36 +01:00
gezimbll
917ecb62ab disabling offline internal in integration tests 2025-11-12 12:54:46 +01:00
arberkatellari
89653a9c80 Add *redis DBType case to it_tests 2025-11-05 17:52:03 +01:00
arberkatellari
a3f25d1ec5 Adjust tests and sample json files 2025-10-19 13:15:57 +02:00
ionutboangiu
e05be683ae change license from GPLv3 to AGPLv3 2025-10-13 09:57:41 +02:00
armirveliaj
0aae6f5d26 Add coverage tests on sessions && ips 2025-09-03 12:30:50 +02:00
ionutboangiu
3ee6355cd2 sessions: remove UpdateSRuns and lock manually in terminate 2025-09-02 07:47:03 +02:00
ionutboangiu
e81cb4fa9b sessions: ensure event is passed when updating session 2025-09-02 07:47:03 +02:00
ionutboangiu
788279596e sessions: fix deadlock using updateSRuns in updateSession 2025-09-02 07:47:03 +02:00
ionutboangiu
37acdd1723 sessions: port session APIs and flag handling 2025-08-30 14:02:48 +02:00
ionutboangiu
c4389a9ab6 sessions: rename IPAllocation reply field to AllocatedIP 2025-07-10 16:56:08 +02:00
ionutboangiu
4a1f3144ba sessions: partially reimplement TerminateSession
to be able to release IP allocs
2025-07-10 16:56:08 +02:00
ionutboangiu
063fcbc138 sessions: return AllocatedIP instead of just message 2025-07-10 16:56:08 +02:00
ionutboangiu
97969bb707 sessions: get originID from APIOpts instead of event 2025-07-10 16:56:08 +02:00
ionutboangiu
785236592b Port RADIUS DMR/CoA functionality
This commit ports the following changes from v0.11:

- 9991b29 - Implement DisconnectSession API for RADIUS Agent
- 02c8ed1 - Implement support for RADIUS CoA
- 7129d34 - Merge CoA into ReAuthorize logic
- d8ad760 - Update both ReAuthorize API signatures
- 5560608 - Dynamic templates for Radius CoA out of APIOpts
- f9d1c0f - Refactor ReAuthorize to AlterSessions
- 8388832 - Rename agents API object: SessionSv1 to AgentV1
- b580e09 - Add sanity checks for radius templates
- ca6a944 - Update client_da_addresses structure
- 98265a1 - Refactor function names and error msgs related to AlterSessions
- ee98dbe - Update AgentV1DisconnectSession api signature
- c9b6c1f - Add support for sending *dmr template via APIOpts
- 03eff44 - Cache RADIUS packets during accounting instead of auth
- 28e53ce - Add requests_cache_key field to radagent cfg
2025-07-08 08:18:30 +02:00
arberkatellari
09624ff660 Revise mongo decoding for decimals in interfaces 2025-07-06 19:46:53 +02:00
arberkatellari
1d8e84892a Revise postgres tp tables creation & fix tests 2025-07-02 21:45:29 +02:00
arberkatellari
7872d2f33b Improve valueQry function and filters validation 2025-07-02 21:45:29 +02:00
ionutboangiu
17b70d907b ips: integrate allocation logic and refactor structure 2025-06-27 20:42:41 +02:00
ionutboangiu
725c56592c fix compilation errors related to ip opts changes 2025-06-11 10:59:22 +02:00
ionutboangiu
d22727782e change IP API methods from plural to singular 2025-06-03 16:07:28 +02:00
ionutboangiu
805ae5d916 integrate ips with sessions (incomplete) 2025-06-01 14:04:28 +02:00
ionutboangiu
6557c13b61 remove unused chargers conn in test
to prevent errors due to chargers not being enabled
2025-05-26 08:22:23 +02:00
ionutboangiu
8d8af20ee1 ensure MaxAbstracts reply is the right type
to prevent panic while using *internal conn
2025-05-26 08:22:23 +02:00
arberkatellari
5847ceab00 Add and revise tests for offline internal DB 2025-05-13 17:07:17 +02:00
ionutboangiu
ac0b43a218 update session basics test 2025-05-12 17:31:19 +02:00
ionutboangiu
bd8c9d3b5e migrate guardian package to external dep 2025-04-22 19:35:11 +02:00
ionutboangiu
16d131b058 move attributes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618 move routes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
0b26559d1f move chargers to dedicated package 2025-03-16 16:28:30 +01:00
gezimbll
2f808badb7 added cache parameter in Get*Opts methods 2025-03-12 15:24:18 +01:00
ionutboangiu
24d886c8e0 Pass CGRConfig to DataManager
instead of just CacheCfg. Prevents the need of global config var in
engine/datamanager.go
2025-03-10 13:49:34 +01:00
armirveliaj
d2c175141f Add coverage tests on SessionS 2025-02-13 19:17:20 +01:00
armirveliaj
ae8564ad50 Add coverage tests on sessionS 2025-02-07 13:26:56 +01:00
armirveliaj
6928674716 Add coverage tests on SessionS 2025-02-07 13:26:56 +01:00
gezimbll
df3dcfb840 replaced CGREvent parameter to DataProvider for GetOpts functions 2025-02-07 13:18:43 +01:00
gezimbll
c602dbc2a5 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
2025-01-22 17:36:26 +01:00
armirveliaj
aea5fb0f18 Fix compilation errors 2025-01-13 13:39:50 +01:00
ionutboangiu
17405af987 Revise service manager logs
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
DanB
4025e5a34b Sessions struct changes 2025-01-10 20:14:45 +01:00