Commit Graph

15 Commits

Author SHA1 Message Date
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
Trial97
d8333b5b68 Started adding FieldAsInterface for EventCost 2020-02-05 16:00:32 +01:00
Trial97
8b815a2444 Updated sessions 2020-01-20 08:18:41 +02:00
Trial97
49a88987f4 Updated engine integration tests for gob RPC 2019-11-29 17:06:27 +02:00
Trial97
2febcc14e9 Updated sessions comments 2019-11-29 17:06:27 +02:00
adragusin
ac5c0b0dfc Updated tests in sessions 2019-11-12 16:50:12 +01:00
TeoV
2184121c02 Update tests for sessions after simplified locking 2019-10-10 11:02:08 +02:00
DanB
5dbaee2d33 Simplified locking for SessionS in order to prevent deadlock bugs 2019-10-10 11:02:08 +02:00
DanB
4a1ceb0a3d Transport the CostDetails over string so we can properly unmarshall them in CDRs 2019-03-24 14:26:23 +01:00
DanB
94db8add70 SessionS ProcessCDR with cached closed session 2019-03-21 20:28:35 +01:00
DanB
56008b7b09 Adding sessions.SessionSClient interface, tests for AsteriskAgent, FreeSWITCHAgent and KamailioAgents for interface implementation 2018-12-11 19:11:39 +01:00
DanB
bd39ac940e SessionS with forced init inside update in case of session was not previously initiated, fixes #1320 2018-12-10 17:11:00 +01:00
DanB
9f0dd9842c Exporting MapEvent out of SafEvent so we can pass SafEvent around through RPC 2018-08-20 14:22:20 +02:00
DanB
4e3254ba53 Using ErrNotFound in SessionS instead of ErrNotFoundNoCaps 2018-08-20 14:22:20 +02:00
DanB
db954c8406 Replacing sessions.SEvent with engine.SafEvent to secure the event over multiple goroutines 2018-08-20 14:22:20 +02:00