538 Commits

Author SHA1 Message Date
ionutboangiu
eb372148d1 revise IPService implementation 2025-12-05 13:15:52 +01:00
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
ionutboangiu
c9115da4b7 use remoteAddr as peer key, remove duplicate status 2025-10-24 20:23:52 +02:00
ionutboangiu
43cdd396ba add implementation for new ips module 2025-05-29 15:40:20 +02:00
arberkatellari
33a47f663c Add action type *dynamic_action_plan 2025-05-27 17:27:46 +02:00
gezimbll
ccdf3ef1f1 added passing events from thresholds to ees 2025-05-26 14:43:43 +02:00
arberkatellari
0e5c5a9e60 Slight improvements to some Clone functions 2025-04-11 13:09:50 +02:00
arberkatellari
a168f262e2 Add dump and restore functionality for internal DBs 2025-04-06 12:08:40 +02:00
arberkatellari
7664ffccb4 Improve TPTiming time format error handling 2025-01-14 17:04:18 +01:00
gezimbll
b8616282ee added integration tests for ranking scheduling 2024-10-30 22:14:03 +01:00
gezimbll
1765be1247 modified ranking csv and model 2024-10-17 12:17:21 +02:00
DanB
4d7cb6c88a Basic RankingS implementation 2024-10-16 18:44:57 +02:00
gezimbll
e518e7b913 Integration test for scheduleAutomaticQueries && api for scheduled trends 2024-10-08 20:49:13 +02:00
DanB
86ed9e932b Alpha code for TrendS 2024-10-05 20:30:22 +02:00
gezimbll
b134df83b7 added it tests and new APIs for TrendS 2024-10-01 20:05:29 +02:00
DanB
68a5a76b93 Adding TrendS.V1ScheduleTrendQueries API 2024-09-24 20:17:11 +02:00
gezimblliku
bfba6c6f74 updated trendprofile model structure 2024-09-23 11:51:18 +02:00
gezimblliku
187ac2e0c9 updated profile and model fields for trends 2024-09-17 18:17:28 +02:00
arberkatellari
bcb089822f Add APIerSV1TimingIsActiveAt 2024-09-17 18:13:41 +02:00
ionutboangiu
8fec8dbca1 fix: maintain fallback subj keys configured order 2024-08-30 13:01:01 +02:00
gezimblliku
58e419b002 updated trend structure && model 2024-08-16 12:32:21 +02:00
gezimblliku
5b75bacff7 added trend with get,set and remove methods in datamanager 2024-08-14 14:03:21 +02:00
gezimbll
85bd7a50e7 updated sags service name to ranking 2024-07-14 13:39:20 +02:00
gezimbll
4d4392d196 revised comments && renamed sars to trends 2024-07-14 13:39:20 +02:00
gezimbll
6c2fbbec28 added sars model,tp,api 2024-07-14 13:39:20 +02:00
gezimbll
777d4f0a28 added caching for sagprofile 2024-06-30 17:45:06 +02:00
gezimbll
0012477d52 added stat aggregator profile,models,tps and apis 2024-06-30 17:45:06 +02:00
ionutboangiu
49f6c5982e Add reference value functionality to *transfer_balance action
The *transfer_balance action can now use a reference value to ensure
the destination balance reaches a specified amount. If the destination
balance exceeds the reference value, the excess is transferred back
to the source balance. If the destination balance is below the
reference value, the required amount is transferred from the source
balance to the destination balance to reach the specified reference
value. An error is returned if the transfer cannot achieve the
specified reference value.

Used by specifying DestinationReferenceValue inside ExtraParameters.

Other *transfer_balance changes:
- used json tags when unmarshaling ExtraParameters in order to be
able to shorten the names of the fields
- lock the destination account only if it's different from the
source account. It is still passed to the Guard function but
without a lock key and with 0 timeout.
- if the transfer happens within the same account, update the
account and execute its ActionTriggers only once.
- moved transfer units validation after retrieving/creating the
destination balance

*cdrlog action has been updated to create cdrs for reference
*transfer_balance actions, although improvements are needed and
the functionality is not completely tested.

APIerSv1.TransferBalance has been updated to take into account the
ReferenceValue parameter.

Added new *transfer_balance action unit tests to account for the
new changes.

Added integration tests (incomplete for now, but functionality
has been tested manually).
2024-06-13 13:56:40 +02:00
ionutboangiu
ee98dbe0ca Update AgentV1DisconnectSession api signature
Will accept utils.CGREvent instead of utils.AttrDisconnectSession as a
parameter.

SessionSv1.ForceDisconnect will take utils.SessionFilterWithEvent as a
parameter instead of *utils.SessionFilter.

Added possibility to pass DisconnectCause as an Event parameter.

The forceSTerminate that's called when the session timer expires will
have DisconnectCause 'SESSION_TIMEOUT' instead of 'FORCED_DISCONNECT'.

Added Dispatcher methods for AlterSessions.

Event will be merged with EventStart of the session before being sent to
AgentV1DisconnectSession.
2024-03-07 17:20:23 +01:00
ionutboangiu
e50d71808a Optimize TransferBalanceAPI and test *cdrlog functionality 2024-02-20 11:11:39 +01:00
ionutboangiu
87da08f7fd Revise *transfer_balance action and its API
Ensure parameter fields are not abbreviated.

The action will not depend on balance type anymore. It will go through all
balances.

*default balance from source balance can go negative during transfer.
2024-02-19 11:28:52 +01:00
ionutboangiu
0c32f1761c Implement APIerSv1.TransferBalance API 2024-02-19 11:28:52 +01:00
ionutboangiu
d8ad760dbb Update both ReAuthorize API signatures
The one from sessions takes an additional event alongside the
SessionFilter, while the one from agents will accept a CGREvent
instead of a simple originID string

The additional event sent to SessionSv1ReAuthorize will be merged
with the EventStart event from the matched session and can be used
when building server initiated requests from the *req map. The
initial packet which was initially inside *req, will be moved to
the *oreq ExtraDP (stands for original request).
2024-02-14 10:15:51 +01:00
gezimbll
5a85c119c8 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package equivalent functions 2023-11-01 21:52:50 +01:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
adi
9c3da4aa21 Integrated CallCache opts for dispatcher 2022-10-10 18:22:03 +02:00
ionutboangiu
895c140209 Port dispatcher changes from 1.0 to v0.11 2022-09-25 12:17:37 +02:00
ionutboangiu
77430ee80a Add maxReconnectInterval for DispatcherHost csv models 2022-05-28 09:50:01 +02:00
ionutboangiu
007cc0e7c8 Replace ArgRSv1ResourceUsage struct with CGREvent and fix tests 2021-11-11 12:22:41 +02:00
Trial97
880dd7f1b1 Updated Action Filters field 2021-10-12 16:49:01 +03:00
Trial97
fb0389abbb Updated ApierV1.SetRatingProfile and ApierV1.RemoveRatingProfile. Fixes #3186 2021-08-20 11:53:43 +02:00
Trial97
c385224171 Updated Cache Reload API 2021-07-29 08:43:49 +02:00
nickolasdaniel
a150a38481 Removed synchronous field from DispatcherHost and RemoteHost 2021-07-25 12:08:40 +02:00
nickolasdaniel
016e913190 Added extra configurable fields for DispatcherHost related structs, corresponding tests and redesigned methods where needed 2021-07-15 18:39:39 +02:00
Trial97
b35f6c3485 Added all Responder Methods to DispatacherS.Fixes #2954 2021-05-19 19:30:51 +02:00
porosnicuadrian
91eda67c4a Updated indexes apis in favor of cache 2021-05-11 20:57:11 +02:00
Trial97
915ede86c9 Updated cache reload 2021-05-07 20:02:17 +02:00
ionutboangiu
05a088fcf0 Implement timings on master 2021-04-29 12:12:51 +02:00
Trial97
3f4e7afba1 Updated configs 2021-04-01 16:33:37 +02:00
Trial97
21d4dd16fa Removed more actions 2021-04-01 16:33:37 +02:00