Hi all,
I've cleared everything and am testing below using the data at
https://github.com/cgrates/cgrates/tree/master/data/tariffplans/tutorialcgr> maxusage RequestType="*prepaid" Category="call" Tenant="
cgrates.org" Subject="1001" Account="1001" Destination="1002" AnswerTime="2018-03-22T16:23:00Z"
0.0000108
T 2018/03/22 16:33:58.986974
127.0.0.1:42183 ->
127.0.0.1:2012 [AP]
{"method":"ApierV1.GetMaxUsage","params":[{"ToR":"","RequestType":"*prepaid","Tenant":"
cgrates.org","Category":"call","Account":"1001","Subject":"1001","Destination":"1002","SetupTime":"","AnswerTime":"2018-03-22T16:23:00Z","Usage":"","ExtraFields":null}],"id":20}
#
T 2018/03/22 16:33:58.990209
127.0.0.1:2012 ->
127.0.0.1:42183 [AP]
{"id":20,"result":0.0000108,"error":null}
Now I think I should expect a time Duration as a result?
As per
http://cgrates.readthedocs.io/en/latest/tut_cgrates_usage.html it states:
Account 1001 will receive a special deal for 1002 and 1003 destinations during peak times with RT_20CNT, otherwise having default rating.
1001 will receive 5 units of general *monetary, 5 units of shared balance in the shared group “SHARED_A” and 90 seconds of calling destination 1002 with special rates RT_1CNT.
So I'm in the PEAK timing and no actual calls have been rated, so I should have full access to 5 units of money, 5 units of shared and 90s to play with, right?
Can anyone correct me here or explain what I'm doing wrong?
Thanks,
Gavin.