67 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
arberkatellari
a168f262e2 Add dump and restore functionality for internal DBs 2025-04-06 12:08:40 +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
c2dacc42c1 Removed warnings from go staticcheck 2023-11-08 17:10:13 +01:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
ionutboangiu
7771de5e07 Apply go fmt project wide 2022-11-11 13:43:51 +01:00
Trial97
df5adc6c96 Updated account interface 2021-11-28 10:25:32 +01:00
Trial97
61b823443d Finished adding all fieldAsInterface methods 2021-11-28 10:25:32 +01:00
Trial97
c13a5cf790 Finished implementing the DataNode as a replacement 2021-03-26 13:46:25 +01:00
Trial97
9047fab68c Updated EventCost FieldAsInterface function. Fixes #2743 2021-03-19 18:30:48 +01:00
Trial97
f2c9ca3530 Fixed typo in license header 2021-03-10 16:22:37 +01:00
andronache
4ff3b9242d Consts in utils 2021-01-07 18:15:35 +01:00
andronache
1470267727 Modified consts in utils 2021-01-07 18:15:35 +01:00
TeoV
510e9bc8ab Update *montly_estimated timing ( added unit tests ) exit in case of error at preload 2020-07-22 13:34:15 +02:00
TeoV
58817d6a41 Add support for *monthly_estimated in Timing 2020-07-17 17:17:15 +02:00
TeoV
c6c1569554 Add *month_end timingID in both TPReader and ApierSv1.SetActionPlan fixes #2255 2020-07-13 15:52:12 +02:00
TeoV
9c9e35857f Rename from Rate to RGRate 2020-06-11 16:49:21 +02:00
Trial97
ff5f5f2d21 Added FieldAsInterface for EventCost 2020-02-05 16:00:32 +01:00
adragusin
519f4800b3 Updated tests in engine 2019-12-03 04:45:06 -05:00
adragusin
a2ca74249e Updated Clone function in action plan 2019-11-29 07:55:45 -05:00
DanB
9e2dc1b934 RateInterval.Equals for multiple Rates, fixes eventCost compressing 2019-03-01 19:32:53 +01:00
DanB
d081229d0d Build test fixes 2017-11-17 14:26:18 +01:00
DanB
0cb9dca9a2 Redesigned core to support nanoseconds/data units, cgr-engine memory profiling in commandline options, tests updates 2017-11-09 18:27:09 +01:00
edwardro22
b651b06826 Removed copyright from go doc 2017-09-10 15:02:46 +00:00
DanB
7d33386913 utils.MINUTE -> utils.MetaEveryMinute, utils.HOUR -> utils.MetaHourly 2017-06-03 11:17:39 +02:00
DanB
2341ea95aa EventCost Clone and initial Trim methods 2017-05-23 19:08:54 +02:00
DanB
738dc6001c NewEventCostFromCallCost for EventCost 2017-05-16 18:47:29 +02:00
DanB
401625861d Updated project README, COPYRIGHT information 2016-09-02 13:04:34 +02:00
Radu Ioan Fericean
182da50555 destination rate selection fixes 2016-05-16 21:20:56 +03:00
Radu Ioan Fericean
c9c49015b9 better check of 0h 2016-04-13 09:39:03 +03:00
Radu Ioan Fericean
6cf36e5be0 better rate intervals sorting according to weight
should solve the issue #424
2016-04-12 23:17:21 +03:00
Radu Ioan Fericean
43bc4c3f30 fix timespan compression crash 2016-03-01 16:15:33 +02:00
Radu Ioan Fericean
fd65c92000 more tests
fixes #325, fixes #314
2016-01-09 18:35:14 +02:00
Radu Ioan Fericean
dc5da8663c extended timespan compression 2016-01-09 18:07:36 +02:00
Radu Ioan Fericean
79dc7d5400 rate interval selection improvements
fixes #338
2016-01-06 18:45:33 +02:00
Radu Ioan Fericean
6b2e32944c flood protection for scheduler 2015-12-09 15:36:31 +02:00
Radu Ioan Fericean
73685bb336 better rounding in callcost 2015-11-08 15:12:36 +02:00
Radu Ioan Fericean
f8d72138f3 improvement on timing contains date method 2015-08-03 20:57:26 +03:00
Radu Ioan Fericean
5e20dadfba make sure account is not cached 2015-08-03 13:23:05 +03:00
Radu Ioan Fericean
39a51dc826 better rateinterval sorting 2015-08-03 11:50:56 +03:00
Radu Ioan Fericean
5adc94a45f added cdrstats_queue and cdrstats_queue_triggers
console commands fixes #107
2015-07-03 17:26:25 +03:00
Radu Ioan Fericean
dd80669439 compare Timing with time in UTC 2015-07-02 18:40:07 +03:00
Radu Ioan Fericean
2de5b4811c better validation and names fixes 2015-06-08 11:06:14 +03:00
Radu Ioan Fericean
d46ade3403 started rating profiles data validation on load 2015-05-21 10:19:51 +03:00
Radu Ioan Fericean
554d84266f higher weights are better 2015-05-20 14:12:21 +03:00
Radu Ioan Fericean
da7e2580b7 added holiday rating plan test 2015-05-20 14:12:21 +03:00
Radu Ioan Fericean
643636872e moved max cost and strategy at destination rate level 2015-03-23 14:41:25 +02:00
Radu Ioan Fericean
581648a04f max cost and strategy at rate level 2015-03-23 11:39:49 +02:00
Radu Ioan Fericean
bf0ac94a8d updated copyright info 2015-03-11 19:49:52 +02:00
Radu Ioan Fericean
0bb8691101 balance activation times 2014-12-22 23:02:14 +02:00