Commit Graph

13182 Commits

Author SHA1 Message Date
gezimbll
c41bbcf119 revised janusagent and thresholds it test 2024-05-23 00:15:50 +02:00
armirveliaj
db0e663560 Coverage test for config 2024-05-23 00:13:59 +02:00
gezimbll
01e0b50d3a revise tests for disabling rals on cdrs.processevent 2024-05-18 16:57:45 +02:00
armirveliaj
f2cb8bc07c Add coverage unit test for config pkg 2024-05-18 16:56:47 +02:00
gezimbll
a8b8c84dda updated check on cost details
changed the check of cdr usage to  be less or equal with usage in event cost
2024-05-16 17:40:10 +02:00
armirveliaj
1ef9ea768e Add unit test for orderedmap 2024-05-16 16:28:21 +02:00
armirveliaj
8e23794576 Revise unit tests
prevent panic for xmldp unit test
sort slice before comparing in radiuscfg unit test
2024-05-16 16:28:21 +02:00
armirveliaj
0e4ab4f322 Added Unit Tests in config 2024-05-16 16:28:21 +02:00
gezimbll
64692891bb added V1GetActiveSessionIDs method for JanusAgent && revised tests 2024-05-16 16:24:50 +02:00
ionutboangiu
af3c2b88c7 Remove top-level changelog symlink for now 2024-05-16 14:46:30 +02:00
ionutboangiu
c4f498d41b Revert "Restore changelog and update symlink to it"
This reverts commit 158dce7323.
2024-05-16 14:46:30 +02:00
ionutboangiu
89670cb586 Increase margin of error for loader unit test 2024-05-16 14:46:30 +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
ionutboangiu
c91fbafe36 Restore compatibility with OpenSIPS
For OpenSIPS 3.x, set "client_protocol" to 1.0 in the json configuration
under the "sessions" section. The current default protocol version is 2.0.

Addresses #4339
2024-05-16 10:29:05 +02:00
Dan Christian Bogos
b11d16a2b3 Update README.md
Remove references towards IRC since outdated.
2024-05-13 13:14:37 +02:00
armirveliaj
ff0bca41f3 Add coverage test 2024-05-12 13:11:02 +02:00
gezimbll
624aa2b3f2 update threshold to set snooze time after actions 2024-05-09 12:34:42 +02:00
armirveliaj
d2b4a9ba81 Adding Contributor 2024-05-09 12:07:53 +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
ionutboangiu
6a8bf17917 Run go mod tidy 2024-05-05 14:25:14 +02:00
DanB
5cf5032fe0 CDRs rals_conns will rate by default 2024-05-03 18:14:58 +02:00
DanB
b9f527b599 Updating JanusGo library 2024-05-03 17:27:24 +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
gezimbll
6ef3dc8599 increase margin for guardian unit test 2024-04-24 17:09:54 +02:00
gezimbll
77662e9f88 updated & added postman apis 2024-04-24 17:09:54 +02:00
gezimbll
5f941b1f9d changed conReqs to not populate buffer at start 2024-04-24 17:09:54 +02:00
ionutboangiu
afed0dd805 Run go mod tidy
To make build workflow action pass. Seems to just move the package
from the group of indirect dependencies to direct ones.
2024-04-24 16:18:14 +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
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
4aff83b5b4 Wait for TPs to be loaded in rpsubj_set_it_test.go 2024-04-20 12:21:57 +02:00
ionutboangiu
5c1e65256c Don't trim single digit values when parsing cron
Fixes an issue where 0 values would become empty inside the cron
expressions.

Added unit tests for the edge cases and grouped them together with
the previous ones under the same table test.

When creating the StartTime field, assign time.Now() to a centralised
variable and reuse it instead of calling time.Now() repeatedly.
2024-04-20 12:21:57 +02:00
gezimbll
8b69a2a01e updated postman api collection 2024-04-16 21:10:37 +02:00
ionutboangiu
4964a462cf Add flaky constraint to random routes unit tests
Also increase margin of error for guardian tests 5ms->10ms.
2024-04-16 21:10:13 +02:00