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
Trial97
13f2449376
Started updating to new gorm library
2021-01-12 20:01:16 +01:00
andronache
1d0a814e42
Changed consts in utils
2021-01-11 10:57:44 +01:00
andronache
36da1a6309
Consts in utils
2021-01-11 10:57:44 +01:00
andronache
4ff3b9242d
Consts in utils
2021-01-07 18:15:35 +01:00
andronache
dbb9216b6e
Modified consts in utils
2021-01-07 18:15:35 +01:00
TeoV
806d932fe0
Update TPAccountProfile struct
2021-01-06 13:56:03 +01:00
TeoV
41d9599d87
Add infrastructure for Account in StorDB
2020-12-21 17:51:02 +01:00
andronache
86e9e742c8
Finished tests for model helpers
2020-12-09 12:12:22 +01:00
Trial97
e56d86de98
Updated all Destinations caching to datamanager
2020-12-04 18:44:27 +01:00
andronache
3162462d47
Modified models.go structs to be more intuitive
2020-12-03 20:36:52 +01:00
andronache
e3d825c1cc
Renamed in models.go
2020-12-03 20:36:52 +01:00
TeoV
b8f0f894a5
Add infrastructure for ActionProfile for databases
2020-12-03 20:36:21 +01:00
andronache
3665961546
Modified struct names in engines/models.go
2020-12-02 17:12:22 +01:00