Commit Graph

2544 Commits

Author SHA1 Message Date
ionutboangiu
448eea3918 Format some ansible roles 2024-06-06 13:30:14 +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
ionutboangiu
8be19292aa Implement sipp ansible role 2024-05-16 14:46:30 +02:00
ionutboangiu
75694bd75d Bump go version to 1.22.3 2024-05-16 14:46:30 +02:00
ionutboangiu
37b0a154a4 Update opensips tutorial configurations
For both tutorials and tutorial_tests
2024-05-16 10:29:05 +02:00
ionutboangiu
8bf2ae0d38 Implement ansible opensips playbook for call tests 2024-05-16 10:29:05 +02:00
ionutboangiu
f87e52cf63 Update ansible calls playbooks
Fixes issue where cgrates role would attempt to run setup
scripts for postgres, when postgres is not installed.
2024-05-16 10:29:05 +02:00
DanB
bc3b665187 Updating go toolchain to 1.22.3 inside ansible role 2024-05-08 11:32:28 +02:00
DanB
31935cc995 Updating go checksum in ansible script 2024-05-08 11:15:13 +02:00
DanB
3ac3fc98a5 Bumping go version in ansible 2024-05-08 10:59:05 +02:00
gezimbll
8c88f9d961 added integration tests for janus_agent 2024-05-05 14:26:45 +02:00
ionutboangiu
ca0b9870b7 Add playbook for osips+diam setup
- installs go
- sets up cgrates
- installs nightly version of opensips and modules
- uses the prepaid opensips.cfg from tutorials by default
- installs and sets up freediameter
- installs pjsua and helper scripts
2024-05-05 14:25:14 +02:00
ionutboangiu
fc0666d2ac Needed in order to make accounting through opensips possible.
Not the final version. Incomplete list, as I only added a bit
more than the bare minimum. Also should be reviewed regarding
the V,M,P bits.
2024-05-05 14:25:14 +02:00
ionutboangiu
40eaa8739c Add tut entry for opensips+diameter
INCOMPLETE
- shared cgrates configuration for three different scenarios
- every scenario has its own opensips configuration. For more info
check README or read comments inside the configuration
- added script for converting unix time to suitable Event-Timestamp
format
- added a dictionary.opensips entry for making Credit-Control diameter
requests possible
2024-05-05 14:25:14 +02:00
ionutboangiu
9af344aac7 Revise cgrates ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
16c61eeb9d Implement opensips ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
b690f11db7 Implement freediameter ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
fb19544718 Revise pjsua role
- changed default version to 2.14.1
- ensured that tutorial call scrips still use 2.9
- made role idempotent
- added pjsua_helper_scripts default var that if set to true will deploy
two scripts: pjsua_listen and pjsua_call (defaults to false)
- added option to decide whether we delete the pjsua repo post install
- made binary path configurable (will be used for both pjsua as well as
the helper scripts
- use copy instead of command when copying binary to its final path
- import roles directly instead of through tasks where applicable (call
roles)
2024-05-05 14:25:14 +02:00
gezimbll
82b0e02788 integration tests for janus agent 2024-04-26 17:02:18 +02:00
gezimbll
77662e9f88 updated & added postman apis 2024-04-24 17:09:54 +02:00
ionutboangiu
5e0b90ffa7 Revise docker ansible script
- use include/import_tasks instead of the deprecated include.

Used include_tasks for nginx tasks because they might cause problems
due to depending on the nginxConfig variable inside the conditional
statements.
Used import_tasks for docker tasks since they seem like they can be
safely pre-processed.

- remove task installing docker module for python
2024-04-21 17:56:31 +02:00
gezimbll
8b69a2a01e updated postman api collection 2024-04-16 21:10:37 +02:00
ionutboangiu
5391a3f055 Retrieve os distribution from builtin facts in mongo role 2024-04-16 21:10:13 +02:00
gezimbll
883633732b updated postman api collection 2024-04-09 10:28:07 +02:00
ionutboangiu
a5d29d5d7b Stop sending BalanceUpdate events to thresholds/stats 2024-04-08 17:34:13 +02:00
gezimbll
77b58257d3 updated postman api collection 2024-04-08 13:12:54 +02: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
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
arberkatellari
9be32c36da Add CAPs counting to cgr-console status command 2024-03-04 09:50:10 +01:00
ionutboangiu
a9079154da Add possibility to pass conn cfg to actions 2024-02-27 16:28:48 +01:00
ionutboangiu
1f7e0b33a2 Update *alter_sessions action
Will now support two extra parameters: address and codec. For *internal
connections, the birpc.Service object will be retrieved from rpcParamsMap
from utils. Supported codecs: <*gob|*json|*http_jsonrpc> (ingored for
*internal address).

Action does not bother with setting defaults anymore, lets the API
handle them.

Improve action comments.

Add unit tests for the action. UnregisterRpcParams' implementation was
required.

Updated *alter_sessions action tariffplan for radius coa integration test
to include address and codec.

Some birpc clients that are set up in integration tests were still registering
a SessionSv1 object. Updated them to register an AgentV1 object instead.
2024-02-27 16:28:48 +01:00
DanB
675d9e25ce Updating Radius CoA integration test to make use of the *alter_sessions action 2024-02-21 20:33:06 +01:00
ionutboangiu
f9d1c0f0e1 Refactor ReAuthorize to AlterSessions 2024-02-21 18:43:53 +01:00
DanB
ec9b95088f Updating radius_coa integration test to use thresholds for generating SessionSv1.ReAuthorize 2024-02-20 20:40:10 +01:00
Bas Couwenberg
ecdda5d2d2 Update deb_packages playbook to support multiple distributions. 2024-02-20 16:52:59 +01:00
Bas Couwenberg
325b37f54c Fix bash-term-in-posix-shell Lintian issue. 2024-02-20 16:52:59 +01:00
Bas Couwenberg
72e11d9c78 Fix script-not-executable Lintian issue. 2024-02-20 16:52:59 +01:00
Bas Couwenberg
1ccc9f4381 Fix executable-not-elf-or-script Lintian issues. 2024-02-20 16:52:59 +01:00
Bas Couwenberg
0785141218 Pass commit date and hash to -ldflags separately. 2024-02-20 16:52:59 +01:00
DanB
556060817c Dynamic templates for Radius CoA out of APIOpts 2024-02-20 16:21:13 +01:00
arberkatellari
8ab43944a2 Update readthedocs tutorial 2024-02-15 17:02:41 +01:00
arberkatellari
bbaf75c995 Update readthedocs & add console export_cdrs 2024-02-15 17:02:41 +01:00
gezimbll
1ec7cbccf8 updated installation steps for opensips 2024-02-15 16:34:24 +01:00
ionutboangiu
61bcf48678 Bump go version 2024-02-14 10:15:51 +01:00
ionutboangiu
7129d349a1 Merge CoA into ReAuthorize logic
Also updated the integration test.
2024-02-08 13:14:14 +01:00
ionutboangiu
9991b29cae Implement DisconnectSession API for RADIUS Agent
Updated radigo library to latest version.

Updated RadiusAgent to satisfy the birpc client interface.

Added *radDAdiscMsg OrderedNavigableMap type field within AgentRequest.
This one is similar to *diamreq, as it is used for building RADIUS
server-initiated Disconnect Requests.

radReplyAppendAttributes: refactored to reflect that it can now be
used to also append attributes to request packets, not only reply.

Added bidirectional support for session related RadiusAgent methods.

For Dynamic Authorization to be possible, a new field was added within RadiusAgent
that holds dicts and secrets only for the clients that support it. They are used
to create the DA Client sending Disconnect Requests.

Added a new cache partition to store Access-Request packets with the purpose
of using them to build the Disconnect Requests. They are identified by sessionID.
It defaults to the value of 'Acct-Session-id'.

Added a predefined '*dmr' template as well as a 'dmr_template' config option within
the 'radius_agent' config section. This will map to a custom or to the predefined
template and will be used to build the Disconnect Request. By default, it doesn't
point to any template (this also means that the Access-Request packets will not be
cached).

Another option added to 'radius_agent' is 'client_da_addresses', which lists the
RADIUS clients supporting Dynamic Authorization. The key represents the host of
the client, while the value represents the address to which we will send the
Disconnect Request.

Added integration test.
2024-02-07 18:28:17 +01:00
ionutboangiu
36bdc41e97 Add support for kafka ssl encryption
For both poster and reader.
Added integration test.
2024-01-23 14:12:33 +01:00