Commit Graph

13770 Commits

Author SHA1 Message Date
gezimbll
009895f92a revising integration tests 2024-06-07 17:18:23 +02:00
gezimbll
3ff0e6e5a1 revising integration tests 2024-06-07 17:18:23 +02:00
gezimbll
18fa884ea1 revise integration tests 2024-06-07 17:18:23 +02:00
gezimbll
07ea67e638 update threshold to set snooze time after actions 2024-05-09 12:33:32 +02:00
arberkatellari
bd571376a7 Update kamevapi version 2024-03-08 16:38:50 +01:00
arberkatellari
ca815bb550 Add integration test for caching_delay 2024-03-06 16:16:08 +01:00
arberkatellari
de5db4a938 Add caching_delay to config and loaders 2024-03-06 16:16:08 +01:00
arberkatellari
830c7d4358 Update ansible kafka version to 3.7.0 2024-03-04 19:17:53 +01:00
arberkatellari
727f90fc6b Add CAPs counting to cgr-console status command 2024-03-04 19:17:53 +01:00
Bas Couwenberg
a5352bcc55 Update deb_packages playbook to support multiple distributions. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
f510168246 Fix bash-term-in-posix-shell Lintian issue. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
78d1a52063 Fix script-not-executable Lintian issue. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
60e86f7bd2 Fix executable-not-elf-or-script Lintian issues. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
588e810f2d Fix systemd-service-file-missing-documentation-key Lintian issue. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
7e71fdcb71 Fix maintainer-script-lacks-home-in-adduser Lintian issue. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
38aeac71a7 Modernize Debian packaging. 2024-02-27 16:27:07 +01:00
Bas Couwenberg
915733e04e Pass commit date and hash to -ldflags separately. 2024-02-27 16:27:07 +01:00
gezimbll
368c046805 added *http filter type 2024-02-09 15:59:00 +01:00
gezimbll
5e4b392bd0 New admins package 2024-02-07 18:25:03 +01:00
ionutboangiu
75cf4a75cc Update EC.FieldAsInterface to use Charging for referencing rating/accounting
ChargingID is expected to have either *rating or *accounting prefix.
2024-01-06 17:12:57 +01:00
ionutboangiu
37578d3743 Add FieldAsInterface implementation for EventCharges
and for types within EventCharges that are required for this
functionality.
2024-01-06 17:12:57 +01:00
arberkatellari
d698e8db9d Make DNS TLS error log more suggestive 2024-01-06 17:12:02 +01:00
arberkatellari
2e4d8bdcf4 Remove unnecessary LazySanityCheck 2024-01-06 17:12:02 +01:00
arberkatellari
ca01cbcd6b Replacing old log_level from configs with new logger->level 2024-01-06 17:12:02 +01:00
gezimbll
b3956da736 Added new filter *contains 2023-12-19 16:03:35 +01:00
gezimbll
c51122fd20 Moving apis into each subsystem packages 2023-12-13 20:33:09 +01:00
ionutboangiu
5228a641e3 Add integration test for cdr apis 2023-12-13 12:47:02 +01:00
ionutboangiu
8ee919319b Register the CDRServer from cdrs instead of the one from services
Also renamed services.CDRServer to CDRService to prevent such mistakes from
happening in the future.
2023-12-13 12:47:02 +01:00
ionutboangiu
00a94d092f Use birpc service constructor and ensure error is handled 2023-12-12 10:09:18 +01: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
9e56246ba1 Update storage sql scripts for setting up cdr tables 2023-12-12 10:09:18 +01:00
ionutboangiu
5f4da20881 Add *refund dynamic opt for cdrs section 2023-12-12 10:09:18 +01:00
ionutboangiu
9273761ed2 Use the proper cfg section to set log level 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
ab26ba2d02 Implement RemoveCDRs for MongoStorage (untested and not optimized) 2023-12-12 10:09:18 +01:00
ionutboangiu
fb6b38850c Update mongo SetCDR method to take into account allowUpdate param 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
gezimbll
3fe5f70dc9 Adding OneEvent functionality for stats 2023-12-07 17:44:33 +01:00
ionutboangiu
f0852b645b Rename composeURI func to composeMongoURI
To reflect that it's used exclusively for MongoDB (for now at least).

Also added a descriptive comment to the function.
2023-12-07 16:56:08 +01:00
ionutboangiu
8909786a4b Revise buildURL function
Renamed to composeURI.

Use simple string concatenation to build URI because there is
no need to keep the Parse call as a validation step. Any issue
would be caught when establishing a connection.
2023-12-07 16:56:08 +01:00
gezimbll
cc07c5366a Revise integration tests 2023-11-29 16:25:18 +01:00
gezimbll
ac32b7ce60 Added function to cast custom map types 2023-11-29 16:25:18 +01:00
gezimbll
3403a91a2b Revise integration tests 2023-11-29 16:25:18 +01:00
ionutboangiu
031cf1fe43 Add rpc caching for ProcessStoredEvents API 2023-11-29 16:22:58 +01:00
ionutboangiu
68152ecc62 Consider admins' enabled value for stordb ShouldRun() 2023-11-17 11:22:34 +01:00
ionutboangiu
6826f13cc5 Update CDR processEvent to process multiple CGREvents 2023-11-16 15:38:18 +01:00
ionutboangiu
a817f30c2a Rename PrepareFilters to GetFilters 2023-11-16 15:38:18 +01:00
ionutboangiu
f5d69cb41b Implement ProcessStoredEvents API 2023-11-16 15:38:18 +01:00