Commit Graph

1775 Commits

Author SHA1 Message Date
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
c83d097e9e Remove duplicate implementation 2023-05-25 08:58:05 +02:00
ionutboangiu
5f890881f0 Implement generic OrderedMap to keep track of csv/fwv record order 2023-05-25 08:52:32 +02:00
ionutboangiu
c7914f3bb3 Implement generic OrderedMap to keep track of csv/fwv record order 2023-05-25 08:41:26 +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
gezimbll
7dcbd09a1f replacing non-meta constants for storage types 2023-03-08 19:14:24 +01: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
a748ab629e Apply gofmt simplify code 2022-12-02 14:24:18 +02:00
ionutboangiu
82468c580d Replace deprecated ioutil library, remove redundant statements + small optimizations 2022-12-02 14:24:18 +02:00
adi
98a044b3fe Started to add reverse filter indexes 2022-11-30 15:08:57 +02:00
adi
1fe0dcbe9a Changed FileName variable for ers 2022-11-20 18:46:36 +01:00
ionutboangiu
758a94280a Apply project wide fmt 2022-11-16 10:13:44 +01:00
adi
a6445f641e Displays messages for agents when connect + fixes on call tests 2022-11-11 17:04:59 +01:00
ionutboangiu
22f9ec262e Update most of the libraries 2022-11-09 14:04:58 +01:00
andronache
428cd37b8e Replaced header in multiple places 2021-11-01 13:50:23 +02:00
Trial97
a2a340f251 Updated ApierV1.SetRatingProfile and ApierV1.RemoveRatingProfile. Fixes #3186 2021-08-19 17:47:23 +02:00
porosnicuadrian
4aae1cdcb1 Fixed indetation 2021-08-18 14:40:06 +02:00
porosnicuadrian
710dafad8e Added index health apis consts 2021-08-18 14:40:06 +02:00
porosnicuadrian
d54f73cd90 FIxed MIssingStructFields test 2021-08-03 14:59:53 +03:00
porosnicuadrian
858878cc12 Fixed MIssingStructField panic 2021-08-03 14:59:53 +03:00
andronache
03fce91219 Finished replacing replication in v0.10 2021-07-13 19:14:30 +02:00
andronache
07111d1e4d Replacing replicate in datamanager 2021-07-13 19:14:30 +02:00
Trial97
cd7119c1ef Added *sipcid field type 2021-07-01 16:18:49 +02:00
ionutboangiu
2a00b1cd5e Fix typo (parralel->parallel) v0.10 2021-06-30 20:26:02 +02:00
Trial97
fd5b8774ab Added all Responder Methods to DispatacherS.Fixes #2954 2021-05-19 19:30:18 +02:00
porosnicuadrian
fe506d48d4 Fixed panic for ping methods in dispatchers 2021-04-01 16:38:21 +02:00
Trial97
bc08d94fae Updated EventCost FieldAsInterface function. Fixes #2743 2021-03-19 18:48:54 +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
cb014c39a4 Optimized the automated index fields matching 2021-02-03 19:12:00 +01:00
Trial97
102bdeb94a SupplierS Require connections to RALs for calculating the cost 2020-10-20 19:54:47 +02:00
porosnicuadrian
51f950ac85 Changed the variable name from version to expVers 2020-10-09 15:25:20 +02:00
porosnicuadrian
80f30b56a5 Incremented version 2020-10-08 20:44:12 +02:00
DanB
ca3555cf03 Changing the version to v0.10.2 2020-10-08 13:28:01 +02:00
Trial97
b1b9a81fc1 Added RoundIncrement to EventCost 2020-10-08 11:16:01 +02:00
Trial97
231adb1284 Updated RPCParams map locking 2020-09-29 15:47:21 +02:00
TeoV
4cd252f027 Update unit test to pass with go 1.15 2020-08-21 12:04:01 +02:00
Trial97
d85bb3633a Updated GetCDRs filtering for internalDB 2020-08-14 12:11:07 +02:00
Trial97
0b67310a95 Added protection on refundIncrements for BalanceInfo nil. Fixes #2123 2020-07-21 09:21:49 +02:00
Trial97
1582620ccd Added new dataconverter *string2hex 2020-07-20 16:49:49 +02:00
TeoV
e1cf978026 Rename from ResourceMessage to ResourceAllocation 2020-07-10 11:52:01 +03:00
TeoV
28af81a818 Remove print from code 2020-07-09 17:27:11 +03:00
TeoV
40987e13fd Import in v0.10 Concurrent mechanism 2020-07-09 17:27:11 +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
Trial97
cfc88400a7 Added *mo time support 2020-06-17 10:09:37 +02:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
33ce18585c Updated server error message 2020-05-29 12:19:59 +02:00
TeoV
a9d7b0698c Connect to dispatcher only when the call is made 2020-05-28 15:34:53 +02:00