Commit Graph

80 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
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
a2a340f251 Updated ApierV1.SetRatingProfile and ApierV1.RemoveRatingProfile. Fixes #3186 2021-08-19 17:47:23 +02:00
porosnicuadrian
f4bfde78fa Tested no tenant on event to all sessions apis 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
589ee74560 Added test to updated Usage with LastUsage when Usage field not populate 2021-02-19 19:14:42 +01:00
Trial97
a7accbd6b5 Added *routes_maxcost flag. Fixes #2563 2021-02-09 13:39:18 +01:00
TeoV
e1cf978026 Rename from ResourceMessage to ResourceAllocation 2020-07-10 11:52:01 +03:00
Trial97
2c53180ac8 Fixed agents unit tests 2020-05-07 11:19:03 +02:00
TeoV
3aaf458a2b Add support for *fd flag in agent 2020-04-22 12:38:06 +02:00
Dan Christian Bogos
cc9dab3ae3 Merge pull request #1882 from adragusin/master
Removed directions from templates
2020-01-21 14:25:23 +01:00
adragusin
3a1104ff01 Removed directions from templates 2020-01-21 13:36:07 +02:00
Trial97
999aabdf9f Updated FieldName for attributes 2020-01-20 14:44:36 +02:00
Trial97
ae56de5cf9 Updated tests 2020-01-17 08:28:52 +02:00
DanB
3e632ee1a9 Adding timezone to sessions tests 2020-01-14 15:21:50 +01:00
TeoV
35d19ab4b2 Add TTL option for DataDB/StorDB for type *internal 2020-01-14 08:42:10 -05:00
Trial97
f0f2a2dc28 Updated filterSessions 2020-01-14 15:33:13 +02:00
TeoV
d9359c9e8f Add SessionReplication through conn manager 2020-01-07 08:37:24 -05:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
Trial97
e5c97a94ab Renamed META_DEFAULT to MetaDefault 2019-12-13 15:04:34 +02:00
Trial97
1df6f3be46 Replaced DEFAULT_RUNID with META_DEFAULT 2019-12-13 10:57:40 +02:00
TeoV
95477bcabc Add conncetions from Sessions and CDRs through ConnManager 2019-12-12 08:54:42 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Trial97
1ea62d69cc Updated sessions tests 2019-12-04 16:15:38 +02:00
Trial97
28cc543389 Updated NewInternalDB 2019-12-02 11:07:48 +02:00
DanB
33483edc93 Modified NewInternalDB signature to include encoding, renamed MetaJSONRpc -> MetaJSON 2019-11-29 20:54:32 +01:00
Trial97
4248d588c6 Updated ProcessEvent reply 2019-11-29 15:03:13 +02:00
Trial97
1b85072a3e Updated ProcessMessage reply 2019-11-29 14:39:04 +02:00
Trial97
deaa049a38 Updated Sessions update reply 2019-11-29 12:42:42 +02:00
Trial97
9385166473 Updated Sessions auth and init replies 2019-11-29 12:42:42 +02:00
adragusin
8020fa1614 Replaced MapStorage with InternalDB in unit tests 2019-11-20 11:01:25 +01:00
Trial97
c2733c6f2e Renamed ConsumeArgs to ExtractArgs 2019-11-15 15:28:04 +01:00
adragusin
663cd77f89 Updated tests in sessions 2019-11-14 17:06:25 +01:00
adragusin
6b03b76e6a Updated tests in sessions 2019-11-13 17:01:00 +01:00
adragusin
a2267feba6 Updated test in session 2019-11-13 17:01:00 +01:00
adragusin
ac5c0b0dfc Updated tests in sessions 2019-11-12 16:50:12 +01:00
TeoV
714e37fa63 Populate in data manager rmtDataDbConns and rplDataDBConns 2019-11-03 12:59:10 +01:00
Trial97
61fc8c98a3 Added DataManager as Service 2019-10-28 12:17:15 +01:00
DanB
4030357fe0 SessionS - Simplified TTL handling 2019-10-10 11:02:08 +02:00
TeoV
2184121c02 Update tests for sessions after simplified locking 2019-10-10 11:02:08 +02:00
TeoV
561175e0b3 Rename SessionSv1.ProcessEvent to SessionSv1.ProcessMessage 2019-07-15 20:57:17 -10:00
TeoV
877aa172e7 Group arguments for V1ProcessEvent 2019-07-04 12:23:15 -10:00
TeoV
e6ed8c16b9 Group arguments for V1TerminateSession 2019-07-04 12:23:15 -10:00
TeoV
ca0c7b792b Group arguments for V1InitSession 2019-07-04 12:23:15 -10:00
TeoV
e39f0f635c Rename in utils FlashWithParams and change order for V1AuthorizeArgs 2019-07-04 12:23:15 -10:00
TeoV
1e69216613 Update agents with new type for Flags(MapSubsystemIDs) 2019-07-02 10:05:21 -10:00
Tripon Alexandru-Ionut
93ff0908b9 Updated sessions tests 2019-05-29 16:27:41 +02:00
TeoV
6811d53830 Replacing CGREvent with *CGRevent when inherited for SessionSv1.ProcessEventArgs 2019-05-29 16:08:59 +02:00