Commit Graph

426 Commits

Author SHA1 Message Date
Radu Ioan Fericean
7edcb9fd6e added round to minute util function and reverted to debit only available credit for prepaid 2013-08-29 15:51:03 +03:00
Radu Ioan Fericean
9004ef1075 using new msgpack package 2013-08-28 23:01:59 +03:00
Radu Ioan Fericean
20f1bf27c3 debit minutes even if balance goes negative 2013-08-28 18:02:54 +03:00
Radu Ioan Fericean
47442dda3c small typo 2013-08-27 19:01:30 +03:00
Radu Ioan Fericean
5acbdc6934 cleaned unimplemented methods from db adaptors 2013-08-27 15:07:50 +03:00
Radu Ioan Fericean
411af6ba74 splited storage interface in multiple interfaces 2013-08-27 14:48:01 +03:00
Radu Ioan Fericean
1bfaa3a52f simplified code and corrected rating profile id 2013-08-26 17:06:30 +03:00
Radu Ioan Fericean
9cce7c6449 checking destination ids exist on setting rating profile api call 2013-08-26 14:13:27 +03:00
Radu Ioan Fericean
c651aabb32 killed internal serialization and started using msgpack 2013-08-23 19:54:06 +03:00
Radu Ioan Fericean
c3102e8375 reverted too using time sleep instead of a ticker because of the loop execution order 2013-08-23 15:54:29 +03:00
Radu Ioan Fericean
af64c50fe6 hoping for a minute bucjet fix 2013-08-22 17:08:40 +03:00
Radu Ioan Fericean
2448507578 check the string instead of slice 2013-08-22 16:58:34 +03:00
Radu Ioan Fericean
9409a4b65e more debugging 2013-08-22 16:41:04 +03:00
Radu Ioan Fericean
09bbf2af8f wanted to make sure the log is with the atest version 2013-08-22 16:21:12 +03:00
Radu Ioan Fericean
c2913b6fe9 simplifyed code for minute buckets 2013-08-22 14:36:27 +03:00
Radu Ioan Fericean
99992ab38a small fix for minute buckets serialization 2013-08-22 14:30:26 +03:00
Radu Ioan Fericean
7b559fa68d even better get next date for timed actions 2013-08-22 11:44:03 +03:00
Radu Ioan Fericean
85a7e434b7 fixed the firts of month bug 2013-08-21 19:24:12 +03:00
Radu Ioan Fericean
1c912c8974 fixed typo 2013-08-20 19:57:27 +03:00
Radu Ioan Fericean
c14489222b fix for empty minute buckets 2013-08-20 19:55:21 +03:00
DanB
b3e9a84f6f Fixup ExpiryTime in actions, string now 2013-08-19 18:09:23 +02:00
DanB
86919f831f Bug fixes SQL params 2013-08-18 20:47:19 +02:00
DanB
54704b8cdd Renaming api param RateProfileId into RatingProfileId, bug fixup in sql query related to SetRatingProfile API 2013-08-18 19:55:23 +02:00
DanB
edd2c704de TP APIs are now accepting string as time.Duration values, modified mysql table structures to increase *id fields to 64 2013-08-18 17:06:03 +02:00
DanB
b799dcc8ae BUG Fix SetTPRatingProfile API 2013-08-16 11:40:41 +02:00
Radu Ioan Fericean
e27bcaabf3 fix on extra pointer and added tests for missing fields checker 2013-08-14 17:53:40 +03:00
Radu Ioan Fericean
a9f03893b5 doc updates 2013-08-07 22:26:41 +03:00
Radu Ioan Fericean
48fb53ac08 running load tests 2013-08-07 18:18:44 +03:00
Radu Ioan Fericean
305dca0fc9 some name refactoring 2013-08-07 15:37:17 +03:00
Radu Ioan Fericean
cb20ae167f moved rated units in rate group and transformed it in duration 2013-08-07 15:11:05 +03:00
Radu Ioan Fericean
7a38b39631 more switch relative time fixes 2013-08-07 14:20:14 +03:00
Radu Ioan Fericean
c209dbfb9f using time.Duration for rateincrements and groupinterval 2013-08-07 13:37:25 +03:00
Radu Ioan Fericean
0785874357 call duration fixes and switch relative start/end time 2013-08-07 13:37:25 +03:00
DanB
f07a0cc885 Fixing mediator and related for postpaid rating into storDb 2013-08-07 06:20:56 +02:00
Radu Ioan Fericean
e027a2a6a1 nil user balance fix 2013-08-05 18:06:33 +03:00
DanB
609bbdcb2a Merge branch 'master' of https://github.com/cgrates/cgrates 2013-08-04 23:17:34 +02:00
Radu Ioan Fericean
2d08f0a31e set -1 cost on error 2013-08-04 22:32:11 +03:00
DanB
ff6b55c111 Adding CDRSEnable in config 2013-08-04 21:05:27 +02:00
Radu Ioan Fericean
2156f05131 history flood/loop protection 2013-08-04 20:21:43 +03:00
Radu Ioan Fericean
882a567fe1 added history client for cgr-loader 2013-08-04 18:58:23 +03:00
DanB
58c16a5f47 Errors fixup in sql queries 2013-08-04 16:45:43 +02:00
Radu Ioan Fericean
8b6639f186 better error reporting in the serializer 2013-08-04 15:51:04 +03:00
Radu Ioan Fericean
88db48470d integrated hstory into cgr-engine command 2013-08-04 15:39:53 +03:00
DanB
80e5fa7403 Saving datetime as unixtime in MySQL queries 2013-08-02 22:04:43 +02:00
Radu Ioan Fericean
13e8f53230 no longer expand the dates for *any 2013-08-02 19:33:47 +03:00
Radu Ioan Fericean
8c8f003239 added rating profile history handler 2013-08-02 18:57:54 +03:00
Radu Ioan Fericean
d0e185c47a one history recor per line 2013-08-02 15:17:55 +03:00
Radu Ioan Fericean
1771d9de3a history test passing 2013-08-02 12:54:35 +03:00
Radu Ioan Fericean
b57d321e30 made test pass for the moment 2013-08-01 18:20:41 +03:00
Radu Ioan Fericean
6c5d73d41a more refactoring and added first test 2013-08-01 18:19:18 +03:00