Commit Graph

400 Commits

Author SHA1 Message Date
ionutboangiu
4c34d321de 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 isAbsolute is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. Alternatively, if isAbsolute is false, it
will just return . to signal that the path currently
being processed is the one required.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 xmlRootPath. The field
will remain commented in config_defaults for reference.

Add tests for HierarchyPath.AsString function.

Add comments for XmlProvider and xmlRootPath opt.

Update XmlProvider String() func based on the comment
which specifies that it should display the already
parsed values out of cache.
2023-10-19 17:19:30 +02:00
adi
66b36ac8fc Updated kamailio doc 2023-01-13 16:27:38 +01:00
adi
2dc6b3454e updated freeswitch doc + revert changes in drv 2023-01-13 16:27:38 +01:00
nickolasdaniel
8ada2445f5 Changed golang version to 1.18 2022-03-18 11:59:39 +01:00
andronache98
cdf721d24b Updated go version for ansible scripts to 1.17.5 2021-12-15 19:58:25 +01:00
andronache
b72c6a57ba Fixed RTD failling 2021-11-02 10:29:22 +02:00
ionutboangiu
141d293217 Make DefaultOpts a struct and move IgnoreErrors, MaxCost and Paginator fields to APIOpts final 2021-09-10 11:25:57 +02:00
Trial97
37e5481307 Renamed ignoreErrors constant 2021-08-31 09:46:44 +03:00
Trial97
56c68177bc Updated version 2021-08-19 17:46:09 +02:00
ionutboangiu
218e8f42ec Fix typo stoped > stopped 2021-07-31 15:32:15 +02:00
Trial97
be84ed5ada Refactored EventRequest 2021-07-06 20:51:32 +02:00
andronache
503d3fe22c Make flags camel case for ers ees and agents 2021-07-03 16:42:50 +02:00
ionutboangiu
82321e5604 Change templates/attributes types format from snake case to camel case 2021-07-01 16:16:49 +02:00
ionutboangiu
fc42259893 Change possible reader/exporter types format from snake case to camel case 2021-07-01 16:16:49 +02:00
Trial97
0682251fff Removed dispatcher subsystems 2021-06-11 13:11:00 +02:00
Trial97
f3639c01f8 Added connection between thresholds and actions 2021-05-26 15:54:36 +02:00
Trial97
214c204bd7 Updated Docs.Fixes #2883 2021-05-19 15:54:14 +02:00
Trial97
d868c0a5f0 Added partial reader 2021-05-19 15:54:14 +02:00
andronache
1cd52b4e81 Finished removing timings 2021-05-18 15:01:27 +02:00
andronache
7671c0cb5e Started removing timing 2021-05-18 15:01:27 +02:00
ionutboangiu
1b28758dfb Remove ActivationInterval and fix tests 2021-05-17 17:54:24 +02:00
andronache
e40ee259c0 Renamed opts for DataDB and StorDB 2021-05-07 10:51:16 +02:00
andronache
75815b3325 Started using camelCase for opts in data_db 2021-05-07 10:51:16 +02:00
Trial97
cfbe6e709d Added AdminSv1 service 2021-04-13 13:35:03 +02:00
Trial97
5353b95e43 Updated go version and replaced ioutil package 2021-03-18 16:46:55 +01:00
Trial97
27cae3856e Replaced max_call_duration config with default_usage for each ToR 2021-02-19 19:15:16 +01:00
Trial97
6d9585b1ff Added integration tests for sessions routes max cost 2021-02-09 15:16:20 +01:00
Trial97
6fd40f7296 Replaced RSRField with RSRParser 2020-11-20 10:36:54 +01:00
DanB
65b03bbdc4 Docs update with InternalArchitecture drawing 2020-11-15 19:22:10 +01:00
TeoV
4cba023934 StatS change metricID format (e.g. *sum#~*req.FieldName ) 2020-09-25 13:04:20 +02:00
TeoV
2682ece350 Update integration test after adding "templates" section in config 2020-08-28 15:45:22 +02:00
TeoV
07e217fbd4 Update install documentation with go version 1.15 2020-08-28 15:45:22 +02:00
Trial97
841264a97a Moved all specific DB options in opts 2020-08-28 14:35:42 +02:00
Trial97
c2d61790b6 Updated documentation 2020-07-30 11:17:57 +02:00
Trial97
192048235b Removed RSRFilters from RSRParsers 2020-07-09 12:17:37 +03:00
Trial97
f53287a28a Updated stats documentation 2020-06-30 15:43:26 +03:00
Trial97
a436718fc8 Updated diameter filter 2020-05-22 17:00:43 +02:00
Trial97
e6834e1b78 Updated call tests 2020-05-22 17:00:43 +02:00
TeoV
9e9dfa8d99 Add documentation for generation RPM package from sources 2020-04-16 16:38:32 +02:00
DanB
1ade35d0d0 [Docs] Removing old indexing and some obsolete documentation 2020-04-10 11:55:38 +02:00
DanB
a1017ca6b6 [Docs] Installation cleanup 2020-04-10 09:59:52 +02:00
DanB
e7cf6b2687 [Docs] RALs doc updates 2020-04-08 20:32:12 +02:00
DanB
5adea0e12d [Docs] RALs documentation 2020-04-08 20:13:12 +02:00
adragusin
6629dc6bee Reverted RoundingDecimals 2020-04-07 09:32:01 +02:00
adragusin
179067de5d updated rounding method and RowLength 2020-04-02 16:54:03 +02:00
adragusin
16d25cc6cb Added a new configuration option in ers, row_length 2020-04-02 16:54:03 +02:00
TeoV
1d9461aca9 Update subflags for *rals from SessionSv1.ProcessEvent 2020-03-26 14:48:31 +01:00
DanB
9b8243f285 Default rating subject for *mms 2020-03-24 19:20:14 +01:00
DanB
a663ad9043 [Docs] Adding SessionS documentation 2020-03-21 15:13:43 +01:00
DanB
563cb5f93b [Docs] Initial CDRe documentation 2020-03-12 10:31:48 +01:00