ionutboangiu
6a6fefd0cd
Improve cost formatting and parsing for CDRs
...
The FormatCost function in cdr.go now accepts an additional parameter of type *config.RSRParser. This is
then used to extract the value from its path as opposed to always using the value of the Cost field directly.
Improved the unit test for the FormatCost function. Now it has become a table-driven test and it handles
cases when the cost is retrieved from different fields other than from the CDR.
2023-05-22 07:53:47 +02:00
..
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-04-29 12:24:06 +02:00
2020-04-29 12:24:06 +02:00
2020-04-29 12:24:06 +02:00
2020-04-29 12:24:06 +02:00
2020-04-29 12:24:06 +02:00
2020-04-29 12:24:06 +02:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2023-05-22 07:53:47 +02:00
2020-01-30 17:17:14 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-06-30 11:30:41 +03:00
2020-06-30 11:30:41 +03:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-07-21 14:59:14 +02:00
2020-07-21 14:59:14 +02:00
2020-07-21 14:59:14 +02:00
2020-01-29 18:16:51 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-29 18:16:51 +01:00
2020-07-09 17:27:11 +03:00
2020-07-09 17:27:11 +03:00
2020-01-29 18:16:51 +01:00
2020-02-05 15:57:58 +01:00
2020-12-16 15:31:40 +01:00
2020-12-16 15:31:40 +01:00
2020-12-16 15:31:40 +01:00
2020-01-30 13:00:20 +01:00
2020-01-30 13:00:20 +01:00
2020-01-30 13:00:20 +01:00
2020-12-16 15:31:40 +01:00
2020-12-16 15:31:40 +01:00
2020-12-16 15:31:40 +01:00
2020-12-16 15:31:40 +01:00
2020-05-21 15:24:03 +02:00
2020-05-21 15:24:03 +02:00
2020-05-21 15:24:03 +02:00
2020-01-29 18:16:51 +01:00
2020-03-09 16:51:46 +01:00
2020-03-01 17:24:27 +01:00
2020-03-12 17:23:45 +01:00
2020-03-12 17:23:45 +01:00
2020-03-12 17:23:45 +01:00
2020-03-12 17:23:45 +01:00
2020-02-05 15:57:58 +01:00
2022-11-22 13:59:02 +02:00
2022-11-22 13:59:02 +02:00
2022-11-22 13:59:02 +02:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2019-10-28 12:17:15 +01:00
2020-01-29 18:16:51 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-02-18 13:01:15 +01:00
2020-01-29 18:16:51 +01:00
2021-10-05 21:05:49 +02:00
2020-01-30 10:21:48 +01:00
2018-08-30 16:51:48 +02:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-20 15:43:15 +02:00
2020-01-20 15:43:15 +02:00
2020-01-20 15:43:15 +02:00
2020-01-20 15:43:15 +02:00
2020-01-20 15:43:15 +02:00
2020-01-20 15:43:15 +02:00
2020-01-29 18:16:51 +01:00
2020-02-05 15:57:58 +01:00
2020-02-05 15:57:58 +01:00
2020-02-05 15:57:58 +01:00
2020-02-05 15:57:58 +01:00
2020-02-05 15:57:58 +01:00
2020-02-05 15:57:58 +01:00
2020-01-29 18:16:51 +01:00
2023-04-20 20:05:00 +02:00
2023-04-20 20:05:00 +02:00
2023-04-20 20:05:00 +02:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2023-03-28 17:59:32 +02:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2019-10-04 20:17:40 +02:00
2019-12-12 08:54:42 +02:00
2019-12-12 08:54:42 +02:00
2020-10-20 19:54:47 +02:00
2020-10-20 19:54:47 +02:00
2020-01-30 10:21:48 +01:00
2021-10-04 11:33:05 +02:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-10-20 19:54:47 +02:00
2019-03-15 15:37:55 +01:00
2020-01-30 10:21:48 +01:00
2023-03-08 19:14:24 +01:00
2020-01-29 18:16:51 +01:00
2020-01-29 18:16:51 +01:00
2020-01-30 10:21:48 +01:00
2019-03-15 15:37:55 +01:00
2020-01-29 18:16:51 +01:00
2018-10-05 13:38:29 +02:00
2020-03-01 17:28:31 +01:00