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
arberkatellari
5847ceab00
Add and revise tests for offline internal DB
2025-05-13 17:07:17 +02:00
ionutboangiu
07da68b0bb
prevent redundant cost calculations in V1CostForEvent
...
Previously the function continued looping through all verbosity
iterations (default 1000) even after finding a valid cost,
causing unnecessary processing.
2025-05-12 17:29:41 +02:00
armirveliaj
4507d55b0b
add coverage tests in RateS
2025-04-22 19:22:59 +02:00
ionutboangiu
70b6cca25b
refactor rating profile matching by weight
2025-03-25 14:25:00 +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
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
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
gezimbll
2b04066504
added parsing the event for *usage opts in accounts
2025-01-10 12:31:44 +01:00
armirveliaj
8921bf8b99
Revise && add new unit tests
2024-12-20 18:01:15 +01:00
DanB
3c57a8ddca
Properly name Values instead of Value within DynamicStringSliceOpt
2024-12-19 16:01:31 +01:00
DanB
6a087122de
<RateS> RatingProfile fallback functionality
2024-12-17 20:45:45 +01:00
ionutboangiu
db301f7901
Remove StorDB service param from service constructors
...
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
2f387b5a0e
chore: remove unnecessary parentheses
...
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
gezimblliku
04f2c69b05
updated dependencies with the latest versions
2024-08-22 20:39:59 +02:00
gezimbll
c51122fd20
Moving apis into each subsystem packages
2023-12-13 20:33:09 +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
560f42bf8d
Add store block back inside *CDRServer.processEvents
...
Added *store and *rerate dynamic opts for cdrs.
2023-12-12 10:09:18 +01:00
ionutboangiu
e5ab21def5
Implement AdminSv1 Get/RemoveCDRs APIs for CDRs
...
Addition of storDB to AdminSv1 was required.
2023-11-09 20:50:36 +01:00
gezimbll
c6571492fc
Make go vet pass
2023-10-26 15:59:34 +02:00
ionutboangiu
113e2a2bdf
Replace interface{} with any
2023-05-31 10:22:28 +02:00
ionutboangiu
5227b4d447
Solve compilation errors in tests after CDRs service update
2023-05-03 10:05:28 +02:00
adi
734776b113
Unified consts of opts
2022-10-03 18:29:24 +03:00
adi
67163a1ff5
Merge fixes
2022-09-22 20:22:34 +02:00
ionutboangiu
0653e9b5d7
Apply go fmt
2022-08-24 09:32:23 +03:00
porosnicuadrian
5662444a10
Blockers + tests
2022-04-20 20:29:01 +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
9a4da75210
Resolved unit tests
2022-03-09 14:14:30 +01:00
porosnicuadrian
104a06d24b
Added support at mongo dirver for count/list rates
2022-02-17 21:11:55 +02:00
porosnicuadrian
0d1da8e628
Added CGREventWithRateProfile + finished api tests
2022-02-17 21:11:55 +02:00
andronache98
c79d0cb4bd
Moving *rateSCost and *accountSCost in APIOpts
2022-02-14 18:06:53 +02:00
porosnicuadrian
dcdd696932
Added ratePRofileRatesFOrEvent apis + tests
2022-02-14 17:23:35 +02:00
porosnicuadrian
f5f6dd746a
Added gerRateProfilesForEvents API + tests
2022-02-14 17:23:35 +02:00
porosnicuadrian
01cc2407db
Removed setRateProfileRates api + tests
2022-02-14 17:23:35 +02:00
porosnicuadrian
a7d4348b43
Added exists/notExists indexed on necessary subsystems
2022-01-20 21:03:47 +01:00
Trial97
46f0ddb860
Added decimal context config
2021-12-15 19:57:25 +01:00
ionutboangiu
034adf8a52
Make field names for CGRConfig and FilterS values consistent across all Service structs
2021-11-11 12:23:21 +02:00
andronache
7ab4167613
Corrected header in multiple files
2021-11-01 13:50:00 +02:00
Trial97
cb809f976e
Updated internal datadb
2021-10-28 18:03:43 +03:00
andronache
1b7108eb7a
Finished tests for ProfileIgnoreFilters option
2021-10-22 12:04:12 +03:00
ionutboangiu
09cf26e7b9
Fix tests
2021-10-18 18:09:44 +03:00
ionutboangiu
003a4e667d
Change some opts field names to reduce redundancy
2021-10-18 18:09:44 +03:00
ionutboangiu
ad6ee01bd3
Fix unit tests after changing opts structure
2021-10-13 20:32:43 +03:00
ionutboangiu
77e805bee9
Fix tests after changing opts structure (incomplete)
2021-10-13 20:32:43 +03:00
ionutboangiu
5490cf66bf
Fix all the compilation errors in non-test files
2021-10-13 20:32:43 +03:00