Commit Graph

19 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
ionutboangiu
82468c580d Replace deprecated ioutil library, remove redundant statements + small optimizations 2022-12-02 14:24:18 +02: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
f46ba34a26 AsteriskAgent - using directly ms duration instead of seconds with multiply 2021-06-29 10:12:07 +02:00
Trial97
ae56de5cf9 Updated tests 2020-01-17 08:28:52 +02:00
TeoV
ce01ee2f32 Update version format to match go module version 2020-01-10 12:29:53 +02:00
Trial97
e5c97a94ab Renamed META_DEFAULT to MetaDefault 2019-12-13 15:04:34 +02:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Trial97
9385166473 Updated Sessions auth and init replies 2019-11-29 12:42:42 +02:00
Trial97
411579d1fc Added AsteriskAgent as service in ServiceManager 2019-10-28 12:17:15 +01:00
TeoV
6530676a66 Remove unused constants 2019-10-28 12:12:39 +01:00
Tripon Alexandru-Ionut
9cd269f54c Updated AsteriskConnCfg and KamConnCfg 2019-06-12 22:11:43 +02:00
TeoV
e6e6065817 Replacing CGREvent with *CGRevent when inherited for SessionSv1.AuthorizeArgs 2019-05-29 16:08:59 +02:00
Tripon Alexandru-Ionut
531537e3d4 Updated AsteriskAgent 2019-04-17 18:57:09 +02:00
Tripon Alexandru-Ionut
3a3996b896 Added ArgDispatcher to all Calls to SessionS 2019-04-17 18:57:09 +02:00
TeoV
9e11a67d31 Agents send right struct to SessionSv1ProcessCDR 2019-04-11 20:23:45 +02:00
DanB
56008b7b09 Adding sessions.SessionSClient interface, tests for AsteriskAgent, FreeSWITCHAgent and KamailioAgents for interface implementation 2018-12-11 19:11:39 +01:00