Commit Graph

47 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
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
TeoV
3a2dbee292 Instead of continue break from for 2020-07-20 12:59:09 +02:00
Trial97
68be0bf887 Added continue in case of nil connection while disconnecting 2020-07-17 17:16:46 +02:00
TeoV
7572e7b11e In case of receiving error when processing request send this to kamailio fixes #1759 2020-01-10 09:53:44 +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
af5cf967b4 Removed log 2019-11-20 14:55:09 +01:00
Trial97
ac6bc8866e Updated KamailioAgent.V1GetActiveSessionIDs. Fixes #1717 2019-11-17 12:20:13 +01: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
TeoV
561175e0b3 Rename SessionSv1.ProcessEvent to SessionSv1.ProcessMessage 2019-07-15 20:57:17 -10:00
Trial97
b4f79616e8 Updated call tests 2019-07-15 03:19:20 -10: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
d9ceea9531 Updated kamailio ReadEvents goroutine.Fixes#1607 2019-07-02 09:56:01 -10:00
TeoV
3fa0293bfa Add CGR_PROCESS_CDR route in KamailioAgent 2019-06-23 13:11:14 +02:00
Tripon Alexandru-Ionut
5af9e7385f Updated IfaceAsString and MapEvent tests 2019-06-21 15:35:01 +02:00
Tripon Alexandru-Ionut
8c8238b444 Updated call tests 2019-06-12 22:11:43 +02:00
Tripon Alexandru-Ionut
e7b9996a00 Updated Kamailio connID to connIdx 2019-06-12 22:11:43 +02:00
Tripon Alexandru-Ionut
9cd269f54c Updated AsteriskConnCfg and KamConnCfg 2019-06-12 22:11:43 +02:00
DanB
6ccc49aa74 KamailioAgent - handle properly the OriginHost option from event 2019-06-06 19:04:22 +02:00
TeoV
f8b0ff7f54 Add ProcessEvent route to kamailio 2019-06-04 14:43:41 +02:00
Tripon Alexandru-Ionut
ee100d423d Updated OriginHost to be used uniform 2019-06-03 10:02:10 +02:00
Tripon Alexandru-Ionut
433be28aff Added CGREvent.ConsumeArguments 2019-05-27 06:52:50 +02:00
Tripon Alexandru-Ionut
024b1f765e Moved regexp.MustCompile outside functions 2019-05-13 12:41:25 +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
0f7088ff3a Updated agents to initialization to accept external session connections 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
TeoV
0dfd635349 Update config for debian stretch interfaces 2018-12-19 13:04:19 +01:00
DanB
8d13b924cd Variable cgr_subsystems within AsteriskAgent 2018-11-08 11:59:15 +01:00
Trial97
1741cca805 Replace CastFieldIfToString with IfaceAsString 2018-10-02 11:35:37 +02:00
DanB
1c6f954ef8 SessionS using *CGREvent instead of CGREvent in ProcessCDR 2018-08-31 16:56:23 +02:00
TeoV
cea2bbc3c3 Add sync session for kamailio 2018-06-21 09:51:47 +02:00
TeoV
f93c0238ac Add sync session for freeswitch 2018-06-19 16:41:22 +02:00
TeoV
66909f9eeb Clean the code 2018-04-24 16:41:24 +02:00
TeoV
e82d9f41f8 Update kamailio config 2018-04-24 16:41:24 +02:00
DanB
e196c5db14 KamailioAgent - don't process events where we cannot generate SessionS arguments 2018-03-06 18:54:25 +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
1ef7f2c3a1 KamailioAgent in beta, kamailio evapi tutorial operational 2018-01-27 13:45:01 +01:00
DanB
05be53bc0a First cut of KamailioAgent 2018-01-27 13:45:01 +01:00