ionutboangiu
d2fbb0f3d4
Add separate build tag for sessions benchmark
2023-07-18 16:37:06 +02:00
ionutboangiu
b7d172f78a
Fix misspellings
2023-06-21 11:02:39 +02:00
ionutboangiu
62619ba3a5
Replace interface{} with any
2023-06-05 10:55:32 +02:00
ionutboangiu
259fb83c47
Add the implementation for Sleep api in sessions/sessions.go
...
Before the implementation was done directly in the SessionSv1 method. The argument definition
was also moved from apier/v1 to utils.
2023-05-03 10:02:15 +02:00
ionutboangiu
cb7ea790de
Update rpcclient library to latest version
...
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.
Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.
Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.
Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).
Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.
Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).
Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
ionutboangiu
15b404e8cf
Revise randomly failing tests
2023-03-28 17:59:32 +02:00
adi
c9a9857152
Added relevant paratheses
2022-12-02 18:39:29 +02:00
ionutboangiu
1436bac61c
Remove unnecessary paranthesis
2022-12-02 14:24:18 +02:00
ionutboangiu
758a94280a
Apply project wide fmt
2022-11-16 10:13:44 +01:00
Trial97
2548b2abad
Updated filter sessions
2021-12-23 10:08:54 +01:00
Trial97
a5b70850b5
Small tweaks
2021-12-23 10:08:54 +01:00
andronache
771f739931
Test for syncSessions, if aSessions length 0
2021-10-27 19:47:55 +03:00
Trial97
3db1a7f1cf
Updated sessions message handling
2021-09-29 19:18:13 +02:00
Trial97
f33d0b3975
Added protection for missing Event in Sessions
2021-09-29 19:18:13 +02:00
Trial97
0dd7a37f9b
Updated EventCost Rounding. Fixes #3018
2021-09-23 11:49:17 +02:00
Trial97
a417982f41
Updated AccountSummary in EventCost
2021-09-01 17:29:41 +03:00
Trial97
1f0931f8f3
Revert "Updated EventCost rounding increment handling.Fixes #3018 "
...
This reverts commit 6fdc2e56bd .
2021-08-30 17:55:51 +03:00
Trial97
db3bf9f40d
Updated build tags
2021-08-30 17:55:51 +03:00
Trial97
d67b529b14
Updated EventCost rounding increment handling.Fixes #3018
2021-08-30 17:55:51 +03:00
Trial97
5ab7893129
Updated syncSessions
2021-08-30 17:55:51 +03:00
Trial97
a2a340f251
Updated ApierV1.SetRatingProfile and ApierV1.RemoveRatingProfile. Fixes #3186
2021-08-19 17:47:23 +02:00
andronache
21a8de97c7
Finished integration test in general tests for changing tenant
2021-07-19 16:18:09 +02:00
porosnicuadrian
f4bfde78fa
Tested no tenant on event to all sessions apis
2021-07-13 19:14:59 +02:00
porosnicuadrian
d4af3bc9bc
Added default tenant on sessions apis where it needs
2021-07-13 19:14:59 +02:00
porosnicuadrian
5c564c471d
Started adding defautl tenant on session apis + tests
2021-07-13 13:46:13 +02:00
Trial97
a4eb383938
Updated ansible for integration tests
2021-05-21 10:24:24 +02:00
Trial97
589ee74560
Added test to updated Usage with LastUsage when Usage field not populate
2021-02-19 19:14:42 +01:00
Trial97
07ef7f2609
Replaced max_call_duration config with default_usage for each ToR
2021-02-19 14:22:48 +01:00
Trial97
a7accbd6b5
Added *routes_maxcost flag. Fixes #2563
2021-02-09 13:39:18 +01:00
Trial97
4c8f5a2205
Added extra condition to determine if the increment is considered the roundIncrement
2021-01-13 15:51:12 +01:00
porosnicuadrian
129b3905fd
Removed all unecessary if from all AsNavigableMap methods
2021-01-11 12:44:54 +01:00
porosnicuadrian
d0a314743c
Removed unecessary if from AsNavigableMap method
2021-01-11 12:44:54 +01:00
DanB
e721eb31c0
Adding debug information for session refund
2020-12-23 18:17:07 +01:00
TeoV
249fd7eec3
[SessionS] Compile the SRun.EventCost before store it and send it further
2020-12-14 18:11:47 +01:00
Trial97
19f30a418d
SessionS - properly charge terminate without initiate event
2020-12-08 12:35:03 +01:00
TeoV
1f9f052226
Correctly use RALs conns in case of SessionS refund
2020-10-20 13:46:12 +02:00
Trial97
b1b9a81fc1
Added RoundIncrement to EventCost
2020-10-08 11:16:01 +02:00
Trial97
668d9b7874
Added Lock sessions to initialize it before end session
2020-10-04 11:17:25 +02:00
Trial97
51f27b0396
Updated setSTerminator channel handling
2020-09-29 15:47:21 +02:00
Trial97
e1086b099a
Added runtime.Gosched for context switching
2020-09-29 15:47:21 +02:00
Trial97
8e3ca35a77
Better locking of session debitLoop chan
2020-09-29 15:47:21 +02:00
Trial97
5363a6d7b9
Clone session EventStart to avoid concurrency with debit, ttl and logging
2020-09-28 11:18:14 +02:00
Trial97
2af67288f4
Updated sessions locks
2020-09-28 11:18:14 +02:00
TeoV
3289a59a41
Exit automatic debit loops if debitStop channel was nil-led
2020-08-31 11:19:28 +03:00
Trial97
0b67310a95
Added protection on refundIncrements for BalanceInfo nil. Fixes #2123
2020-07-21 09:21:49 +02:00
TeoV
e1cf978026
Rename from ResourceMessage to ResourceAllocation
2020-07-10 11:52:01 +03:00
TeoV
c824fc7eec
Add test for SessionSv1.ProcessEvent with *cdrs flag
2020-07-03 11:04:19 +03:00
TeoV
b7c20689e4
Add support for *cdrs in SessionSv1.ProcessEvent
2020-07-02 17:26:54 +03:00
TeoV
7b01fb3918
Add SessionTLLLastUsage as option for an extra debit in case of ttl mechanism
2020-06-22 09:37:12 +02:00
TeoV
cd86b8c3ca
Use correctly SessionTTLUsage when calculate end usage in case of terminate session from ttl mechanism
2020-06-17 10:31:19 +02:00