Commit Graph

1253 Commits

Author SHA1 Message Date
arberkatellari
9a79b092a5 Add exporter id within the *vars in EEs for templates 2024-08-12 18:34:01 +02:00
ionutboangiu
6079fb23bc Update default config sample 2024-08-09 09:24:04 +02:00
arberkatellari
0bab7d5557 Add reader id within the *vars in ERs 2024-08-09 09:14:24 +02:00
gezimblliku
59b61f2354 added janusagent documentation 2024-08-04 21:12:01 +02:00
arberkatellari
5ccb77c5dc Add mongo support for sessions backup 2024-07-22 15:31:02 +02:00
ionutboangiu
36598294a2 Revise Kafka SSL test
- Updated to use the test suite
- Deleted kafka_ssl sample configuration (moved to test file)
- Replaced 'logger' section with 'general' in configuration
- Revised Kafka server SSL setup comment
- Ensured exporters are synchronous to avoid missing errors
- Implemented helper function to create and clean up kafka topics
2024-06-30 16:28:52 +02:00
arberkatellari
f356695f6f Add active sessions backup functionalitiy 2024-06-12 18:21:50 +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
gezimbll
82b0e02788 integration tests for janus agent 2024-04-26 17:02:18 +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
DanB
675d9e25ce Updating Radius CoA integration test to make use of the *alter_sessions action 2024-02-21 20:33:06 +01:00
DanB
ec9b95088f Updating radius_coa integration test to use thresholds for generating SessionSv1.ReAuthorize 2024-02-20 20:40:10 +01:00
DanB
556060817c Dynamic templates for Radius CoA out of APIOpts 2024-02-20 16:21:13 +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
arberkatellari
0cfc4b5658 Continue caching_delay implementation & tests 2024-01-08 11:00:10 -05:00
gezimbll
443cb81828 Updated registrarc config to populate connection id from NodeID 2023-11-30 16:52:43 +01:00
ionutboangiu
0c91933065 Revise ERs event exporting
Add ees_success_ids and ees_failed_ids fields in reader config. The
former will be used to set EeIDs when the event processing returns
no error, while the latter will be used otherwise.

Add config sanity checks for the added options.

Remove Processed opts and everything related to them since they should
not be used anymore.

Fixed test compilation errors caused by the change.
2023-11-29 16:21:51 +01:00
arberkatellari
681cd3c58a Add dryrun for CDRsV2ProcessEvent 2023-11-09 09:37:34 +01:00
arberkatellari
8781b968ac Remove unnecessary LazySanityCheck 2023-11-09 09:37:34 +01:00
Varun Dhand
5e513d130d fix: typo in rjreader.go 2023-11-09 09:37:34 +01:00
ionutboangiu
3e852be287 Update it test to set up environment using setupTest()
This has been done in order to check the newly implemented helpers'
functionality.
2023-11-02 19:38:24 +01:00
ionutboangiu
4ca66ed6c4 Update *ec template values in test ee configuration
*ec.CostDetails.EventCostField -> *ec.EventCostField
2023-10-27 18:51:01 +02:00
arberkatellari
5872b810ec Change default storedb password 2023-10-25 10:16:07 +02:00
arberkatellari
d7aabe20e3 Continue test for rerating through ers 2023-10-16 13:35:30 +03:00
arberkatellari
e3915b2009 Correct test and add test for rerating CDRs using ERs 2023-10-16 13:35:30 +03:00
ionutboangiu
6c41ebe0de Add sanity check to prevent xml reader panic
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).

If the prefix is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. This avoids a nil expr error coming from
the xmlquery library.

Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.

Remove config default value for xml_root_path. The field
will remain commented in config_defaults for reference.

Add tests for HierarchyPath.AsString function.

Add comments for XmlProvider and xml_root_path opt.
2023-10-16 13:18:12 +03:00
arberkatellari
47e75fab13 Update radigo, add multiple folder functionality 2023-10-11 11:18:32 +02:00
arberkatellari
4a812a294b Correct addition of vendor at radReplyAppendAttributes & IT test for it 2023-10-05 17:24:08 +02:00
arberkatellari
66c6668bd2 Add case with error and blocker for radius config 2023-10-04 20:59:11 +02:00
ionutboangiu
bac73aa2c6 Migrate to new jetstream API
Updated ees/ers implementation to use the jetstream package which
separates the jetstream context from Core NATS.

Removed the jsOpts fields from the NatsEE struct. We are now using the
jetStreamMaxWait option directly through a timeout context.

Added streamName option for NATS reader since it is now required to be
specified when creating a consumer (it is not inferred based on subject
anymore).

Updated nats ers integration test.

Removed deprecated birpc unit test.

Updated tests to also use the new jetstream package.

Updated tests to start the nats-server using their official driver
instead of using the std go exec package. time.Sleeps are now not
required anymore to wait for the server.

In test configurations for nats readers, made sure that natsStreamName
option is populated. It is now required for consumers to know where to
subscribe.

Fixed potential panic that happened when jetstreamMaxWait option would
not be set.
2023-09-28 20:48:07 +02:00
Bas Couwenberg
8894cc19ee Fix spelling errors.
* beacause     -> because
 * disconect    -> disconnect
 * quering      -> querying
 * retrived     -> retrieved
 * syncronous   -> synchronous
 * treshold     -> threshold
 * unsuccesfull -> unsuccessful
2023-09-11 12:24:52 +02:00
ionutboangiu
29d030bd69 Update files related to rpm packaging 2023-07-21 09:00:46 +02:00
gezimbll
2e93354ad1 Added new fields in sentrypeerCfg && implemented fallback loop on unauthorized requests 2023-07-14 17:24:03 +02:00
gezimbll
9af02771fd Added sentrypeer credentials in config && cache partition 2023-07-14 17:24:03 +02:00
gezimbll
2c1f5012fc Updated sentrypeer filter value types 2023-07-14 17:24:03 +02:00
gezimbll
8ed7bdd060 Added it test_for sentrypeer filter 2023-07-14 17:24:03 +02:00
arberkatellari
13506235ae Add digit and verbose flags for cgr-tester 2023-07-14 17:09:09 +02:00
arberkatellari
bd68a65705 Add SRV and A record implementation & tests 2023-07-05 08:32:44 +02:00
arberkatellari
620856f731 Add tests for revised dnsagent 2023-06-27 11:06:27 +02:00
arberkatellari
5f04bcfe66 Add locks for dns service and agent 2023-06-27 11:06:27 +02:00
arberkatellari
8c19386d58 Revise dnsagent service and its default port 2023-06-27 11:06:27 +02:00