Commit Graph

46 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
22f9ec262e Update most of the libraries 2022-11-09 14:04:58 +01:00
Hristo Trendev
9ccec44b95 Fix panic with configurations with multiple event socket connections 2020-07-12 09:45:02 +02:00
Trial97
ae56de5cf9 Updated tests 2020-01-17 08:28:52 +02:00
Trial97
e5c97a94ab Renamed META_DEFAULT to MetaDefault 2019-12-13 15:04:34 +02:00
TeoV
2ee574002a Add support for BiRPC in 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
c2733c6f2e Renamed ConsumeArgs to ExtractArgs 2019-11-15 15:28:04 +01:00
Trial97
1f106a62ce Added KamailioAgent as service in ServiceManager 2019-10-28 12:17:15 +01:00
Trial97
379f534c69 Added FreeswitchAgent as service in ServiceManager 2019-10-28 12:17:15 +01:00
TeoV
5c14688366 Adding ability to specify ids for subsystems directly from agent flags 2019-07-12 05:14:39 -10:00
Tripon Alexandru-Ionut
5af9e7385f Updated IfaceAsString and MapEvent tests 2019-06-21 15:35:01 +02:00
Tripon Alexandru-Ionut
430010eb68 Updated Freeswitch agent connection indexing 2019-06-12 22:11:43 +02:00
Tripon Alexandru-Ionut
f4e0685659 Updated fsagent OriginHost 2019-05-29 16:27:41 +02:00
Tripon Alexandru-Ionut
433be28aff Added CGREvent.ConsumeArguments 2019-05-27 06:52:50 +02:00
TeoV
c8db8f2798 Add protection in case of disconnect from terminateSession fixes #1531 2019-05-06 12:29:21 +02:00
Tripon Alexandru-Ionut
d93fc46fc2 Added *dispatchers to agents flags/subsystems 2019-04-19 16:42:07 +03: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
TeoV
3e8b80fbd5 Add chargerS in tutorials config 2019-02-15 14:13:59 +01:00
Trial97
7ae0a0601e Added test for FsAgentCfg.loadFromJsonCfg 2018-10-31 11:02:30 +01:00
DanB
8cbd09748b AsteriskAgent populating channel variables for attributes, resources and suppliers 2018-10-17 17:42:00 +02:00
DanB
1c6f954ef8 SessionS using *CGREvent instead of CGREvent in ProcessCDR 2018-08-31 16:56:23 +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
TeoV
474ce8ed0f FS Agent take OriginID from UUID 2018-06-27 19:27:42 +02:00
TeoV
6ee65c92ce Update calls test with sync session 2018-06-19 16:41:22 +02:00
TeoV
f93c0238ac Add sync session for freeswitch 2018-06-19 16:41:22 +02:00
TeoV
65a1ed19bd Update errors for freeswitch 2018-03-16 18:17:20 +01:00
TeoV
6f4a0025dd Update test for go 1.10 and update travis to run on go 1.10 2018-02-19 16:57:25 +01:00
TeoV
296ef1bf97 Avoid panic error for Attributes (Substitute:*none) and update test with new modify 2018-02-15 14:42:54 +01:00
TeoV
823e2147d2 One conversion for FSEv -> CGREvent and KamEv -> CGREvent 2018-02-06 16:09:54 +01:00
DanB
1f7bfa00cc Fix SessionDisconnect call on FreeSWITCH and Kamailio agents, adding CGRReply structure 2018-02-05 10:00:35 +01:00
TeoV
9ed38da866 Fixes #937 2018-02-02 10:03:35 +01:00
TeoV
6aa8ee90f7 Update Kamailio and Freeswitch agent (SessionSv1ProcessCDR need CGREvent as parameter) 2018-02-01 17:10:07 +01:00
DanB
1a85fa64b2 Renaming sessionmanager package into sessions 2018-01-28 12:27:25 +01:00
DanB
05be53bc0a First cut of KamailioAgent 2018-01-27 13:45:01 +01:00
TeoV
b3badde134 Replacing SM-FreeSWITCH with utils.FreeSWITCHAgent 2018-01-25 14:52:24 +01:00
DanB
467d1f1f3c Better AttributeS and SupplierS digests as string 2018-01-22 16:04:21 +01:00
DanB
dd0b436b1e SessionSv1.AuthorizeEvent using SuppliersDigest as suppliers 2018-01-21 18:46:58 +01:00
DanB
63a83e655b FreeSWITCHAgent with operational *prepaid calls, SessionS with support of Sessions with RunID: *none 2018-01-12 19:11:08 +01:00
DanB
9b1280eb74 FsAgent capable of in-call session disconnects 2018-01-12 19:11:08 +01:00
DanB
a76a9f4894 SessionS bidirection rpc methods updated, tutorials/fs_evsock config changes 2018-01-12 19:11:08 +01:00
DanB
a225bd974e SessionSv1.InitiateSession integration tests 2018-01-12 19:11:08 +01:00
DanB
e27b72268f SessionSv1.AuthorizeEvent with integration tests 2018-01-12 19:11:07 +01:00
DanB
3503fba31f Moving SMAsterisk and SMFreeSWITCH to agents package, renaming some errors for FsA disconnecting calls, tests improvements 2018-01-12 19:11:07 +01:00