Commit Graph

995 Commits

Author SHA1 Message Date
armirveliaj
e7a2107fa0 Add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
c3a2a12089 Add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
2fccb98f03 Add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
6df400cc7e Revise and add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
37161e8ea4 Add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
d02df49f53 Add new unit tests on agents 2024-06-30 17:51:59 +02:00
armirveliaj
2d6912657d Add and revise new unit tests on agents 2024-06-18 21:10:00 +02:00
armirveliaj
d4abea91a5 Formatting fsevent_test.go 2024-06-14 18:20:05 +02:00
armirveliaj
00efea25b5 Fixing merge issues 2024-06-14 18:20:05 +02:00
armirveliaj
0688659c54 Add new unit tests on agents 2024-06-14 18:20:05 +02:00
armirveliaj
5dfb49db71 Revise and add new unit tests on agents 2024-06-14 12:16:05 +02:00
armirveliaj
1fd77cafa5 Add new unit tests on agents 2024-06-13 10:45:14 +02:00
arberkatellari
f46b37bdf8 Make minor improvements to sessions backup 2024-06-12 18:21:50 +02:00
arberkatellari
b061770e68 Add asterisk and FS agents session restoration support 2024-06-12 18:21:50 +02:00
gezimbll
7e3b1b7052 increased time.sleep for cache to remove on ttl 2024-06-12 14:53:30 +02:00
armirveliaj
e20200c30a Revise and Add new unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
eba876eec8 Add new unit test on agents 2024-06-06 13:17:59 +02:00
armirveliaj
ae7c27da0a Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
23d6820253 Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
0a5645bd28 Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
cc98314426 Add unit tests for Dispatcher,Engine,Agents 2024-06-06 13:17:59 +02:00
gezimbll
c41bbcf119 revised janusagent and thresholds it test 2024-05-23 00:15:50 +02:00
gezimbll
64692891bb added V1GetActiveSessionIDs method for JanusAgent && revised tests 2024-05-16 16:24:50 +02:00
gezimbll
8c88f9d961 added integration tests for janus_agent 2024-05-05 14:26:45 +02:00
DanB
6d9e151933 Updating janusgo, AAA basic implementation for janus_agent 2024-04-30 11:26:58 +02:00
DanB
bde44ccfd6 Refactoring JanusAgent to work with echotest plugin 2024-04-28 19:33:03 +02:00
gezimbll
82b0e02788 integration tests for janus agent 2024-04-26 17:02:18 +02:00
DanB
d8059908eb JanusAgent with janusgo dependency and start/shutdown methods 2024-04-20 21:12:51 +02:00
ionutboangiu
546ef39d54 Revise agents *uch unit test
- increase margin of error by 1ms
- in case of failure, retrieve the expiry time and log it along the
current time. Makes troubleshooting easier in the future.
2024-04-20 12:21:57 +02:00
ionutboangiu
04bff19ced Optimize AgentRequest test (2s->0.03s)
Lowering the cfg cache TTL to 5ms instead of 1s was enough to get
consistent results.
2024-04-11 18:23:57 +02:00
DanB
bddeaff5dd Implementation of janusHTTPjsonDP 2024-04-09 20:33:56 +02:00
DanB
8db91ca479 Basic service infrastructure for JanusAgent 2024-04-08 20:09:06 +02:00
ionutboangiu
3062113a61 Make go vet pass
The rpcclient constructor could not see the centralized
Encoding flag because it didn't have the necessary build
constraints. Added the constraints in lib_test.go files
where it wasn't alone. In all the other cases, it was
moved to the first file where it was needed.
2024-04-08 13:14:02 +02:00
ionutboangiu
16eb745f00 Centralize test flags in utils for shared use across tests 2024-04-08 13:14:02 +02:00
DanB
37388c70f3 Initial JanusAgent struct 2024-04-04 16:00:05 +02:00
ionutboangiu
5116a23f5b Set ChargerProfile through TPs instead of API in tests
Only for agents/ers tests. Done to prevent cyclic imports when
adding ers APIs to apier package.

In case of v2.AttrSetAccount, use a literal struct instead.
2024-04-04 12:31:18 +03:00
ionutboangiu
ca66480c52 Add reply_timeout field for FS event socket conns 2024-03-22 15:12:04 +01:00
ionutboangiu
e987139e9c Revert to supporting *asm for ThresholdS acc publish 2024-03-22 15:12:04 +01:00
DanB
a7653d942a Updating FSock module to improve thread safety 2024-03-17 14:30:13 +01:00
ionutboangiu
bf939a47ac Rename chan_delimiter cfg field to active_session_delimiter 2024-03-11 16:59:31 +01:00
arberkatellari
7c04cf8c61 Add coverage tests for radius agent 2024-03-11 16:41:46 +01:00
ionutboangiu
51a3c933d7 Add chan_delimiter option within freeswitch_agent section
Used for 'show_channels' requests and responses.
2024-03-11 16:39:45 +01:00
arberkatellari
f7cbec3b41 Update kamevapi to new version 2024-03-08 16:39:44 +01:00
ionutboangiu
28e53cecc9 Add requests_cache_key field to radagent cfg 2024-03-07 17:20:23 +01:00
ionutboangiu
03eff44767 Cache RADIUS packets during accounting instead of auth 2024-03-07 17:20:23 +01:00
ionutboangiu
c9b6c1fbb7 Add support for sending *dmr template via APIOpts 2024-03-07 17:20:23 +01:00
ionutboangiu
ee98dbe0ca Update AgentV1DisconnectSession api signature
Will accept utils.CGREvent instead of utils.AttrDisconnectSession as a
parameter.

SessionSv1.ForceDisconnect will take utils.SessionFilterWithEvent as a
parameter instead of *utils.SessionFilter.

Added possibility to pass DisconnectCause as an Event parameter.

The forceSTerminate that's called when the session timer expires will
have DisconnectCause 'SESSION_TIMEOUT' instead of 'FORCED_DISCONNECT'.

Added Dispatcher methods for AlterSessions.

Event will be merged with EventStart of the session before being sent to
AgentV1DisconnectSession.
2024-03-07 17:20:23 +01:00
ionutboangiu
98265a122a Refactor function names and error msgs related to AlterSessions 2024-03-06 16:15:36 +01:00
ionutboangiu
ca6a9440f7 Update client_da_addresses structure
Supports configuring transport (tcp/udp), host, port and
flags (only *log for now).
2024-03-06 16:15:36 +01:00
ionutboangiu
b580e09a00 Add sanity checks for radius templates 2024-03-04 19:17:31 +01:00