470 Commits

Author SHA1 Message Date
arberkatellari
0da0f69e1c Make Indexes storable in MySQL and Postgres 2025-11-19 15:59:20 +01:00
arberkatellari
7722265e11 Make LoadIDs storable in MySQL and Postgres 2025-11-19 15:59:20 +01:00
arberkatellari
19675d6b20 Make Trends and TrendProfiles storable in MySQL and Postgres 2025-11-17 18:05:57 +01:00
arberkatellari
1d866c4d35 Make Ranking and RankingProfiles storable in MySQL and Postgres 2025-11-16 10:28:24 +01:00
arberkatellari
da41db3f56 Make RateProfiles storable in MySQL and Postgres 2025-11-16 10:28:24 +01:00
arberkatellari
c51d3f27de Make Filters and RouteProfiles storable in MySQL and Postgres 2025-11-12 15:34:59 +01:00
arberkatellari
61e7bacab1 Make Thresholds and ThresholdProfiles storable in MySQL and Postgres 2025-11-12 15:34:59 +01:00
arberkatellari
dcdf55e5d4 Make StatQueues and StatQueueProfiles storable in MySQL and Postgres 2025-11-12 15:34:59 +01:00
arberkatellari
bb5d589dce Make resources storable in MySQL and Postgres 2025-11-12 15:34:59 +01:00
arberkatellari
38a02535f0 Make Attribute Profiles storable in MySQL and Postgres 2025-11-05 17:52:03 +01:00
arberkatellari
eda80242eb Make Charger Profiles storable in MySQL and Postgres 2025-11-05 17:52:03 +01:00
arberkatellari
d78f34bdc5 Make Action Profiles storable in MySQL and Postgres 2025-11-05 17:52:03 +01:00
arberkatellari
40a8e6ae31 Make IPProfiles and IPAllocations storable in MySQL and Postgres 2025-11-05 17:52:03 +01:00
arberkatellari
1657f015fc make accounts storable in mysql 2025-11-05 17:52:03 +01:00
arberkatellari
7273384828 make accounts storable in postgres 2025-10-29 19:45:33 +01:00
arberkatellari
5f2b1f67df Add multiple DB connections functionality 2025-10-19 13:15:57 +02:00
ionutboangiu
e05be683ae change license from GPLv3 to AGPLv3 2025-10-13 09:57:41 +02:00
arberkatellari
5b66678313 Add offline internal DB functionality for dataDB,storDB & configDB 2025-05-13 17:07:17 +02:00
ionutboangiu
3acb9deac5 Simplify GetCDRs implementation
Remove redundant checks and use a single CDR instance for both filtering and
results.
2025-05-09 09:43:04 +02:00
ionutboangiu
2a85e371a2 Fix GORM pagination with zero limit/offset
Previously, q.Limit(0) was always set, causing GORM to
return no records since limit=0 was interpreted as "get 0
records" rather than "no limit". Now we only set limit and
offset when they're > 0, which makes pagination behave
correctly with default values.
2025-05-09 09:43:04 +02:00
ionutboangiu
fee2712a23 chore: replace interface{} with any 2024-09-05 20:46:40 +02:00
ionutboangiu
555a143b79 Take out cdrID from SetCDR parameters 2023-12-12 10:09:18 +01:00
ionutboangiu
d29f84169c Move cdrs to its own package
Moved engine/cdr.go to utils/cdr.go.
Moved engine/cdrs.go and engine/cdrs_test.go to cdrs package.
Moved api functions from cdrs/cdrs.go to cdrs/apis.go. Same for the
tests.
Deleted CDRsV1 type and its methods.
2023-12-12 10:09:18 +01:00
ionutboangiu
1cec3751e4 Update SetCDR signature to include the cdrID
Updated mongo indexing for cdrs to take into consideration only the
opts.*cdrID field.

Fixed cdrs_it_test.go test.

Before storing CDRs in CDR processEvents, we are now temporarily generating
the *cdrID in APIOpts (until we decide where this should happen).
2023-12-12 10:09:18 +01:00
ionutboangiu
2ccd6ca74d Add context.Context in SetCDR func signature 2023-12-12 10:09:18 +01:00
ionutboangiu
f5d69cb41b Implement ProcessStoredEvents API 2023-11-16 15:38:18 +01:00
ionutboangiu
d5039b3ce8 Add CDRs CRUD queries back and remove TP functions 2023-11-09 20:50:36 +01:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
ionutboangiu
df1dc5e838 Add StorDB service
Add StorDB to config and services.

Put back the store_cdrs option under cdrs and update the CDRs
service to depend on StorDB.

Define the StorDB interface and add a constructor for it.

Add a constructor for postgres storage.

Add a config sanity check to validate SSL modes for postgres.

Update cgr-engine to consider StorDB on startup.
2023-05-03 10:05:28 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
andronache98
928dbd9e42 Removing StorDB 2022-03-09 14:14:30 +01:00
andronache98
917e8045a5 Removed set and get for cdrs 2022-01-12 08:44:36 +01:00
nickolasdaniel
11d267b3d5 Fixed DispatcherHost related struct fields, added/fixed some tests and redesigned some functions in model_helpers.go 2021-07-15 18:40:12 +02:00
Trial97
421c193f6a Removed unused RemoveKeysForPrefix 2021-06-08 12:04:47 +02:00
andronache
53474406e3 Started removing timing 2021-05-18 15:01:27 +02:00
andronache
0579fc2b52 Continue removing destinations 2021-05-13 16:12:15 +02:00
andronache
c3e7337cdf Continue removing destination 2021-05-13 16:12:15 +02:00
Trial97
2da495af19 Starting adding back AttributesSv1 APIs 2021-04-13 13:35:03 +02:00
porosnicuadrian
5d8e04821a Removed profile from all accounts in all packages 2021-04-09 14:38:42 +02:00
porosnicuadrian
850a43433b Renamed AccountProfile in Accounts from all packages 2021-04-07 19:25:42 +02:00
Trial97
9324789ac7 updated integration tests 2021-04-05 20:54:48 +02:00
ionutboangiu
a19093e95b Remove unused variables and functions in engine 2021-04-02 14:57:32 +02:00
Trial97
b028a99050 Removed rals config 2021-04-01 16:36:51 +02:00
Trial97
48205d689d Removed until build 2021-03-30 20:49:53 +02:00
Trial97
c0b66f42aa Starting removing RALs 2021-03-30 20:49:53 +02:00
Trial97
c13a5cf790 Finished implementing the DataNode as a replacement 2021-03-26 13:46:25 +01:00
Trial97
5353b95e43 Updated go version and replaced ioutil package 2021-03-18 16:46:55 +01:00
Trial97
f2c9ca3530 Fixed typo in license header 2021-03-10 16:22:37 +01:00
Trial97
ca13e8d364 Updated tariffplans gorm statements 2021-01-12 20:01:16 +01:00