asterisk2billing.org http://forum.asterisk2billing.org/ 

incorrect rate announced http://forum.asterisk2billing.org/viewtopic.php?f=33&t=9678 
Page 1 of 1 
Author:  amart [ Wed Mar 28, 2012 2:24 am ] 
Post subject:  incorrect rate announced 
Hello, When the inital rate ends in zero (eg. 0.80, 0.70), the system announces (says) the rate as "0 dollars and 8 cents" instead of "0 dollars and 80 cents". It seems the system is truncating the number. I set the system to logging = 4 and looked over the log but don't see any information on say rate. I do see it in the asterisk log where it is playing the files and it is using the eight instead of the eighty. Where should I go from here to troubleshoot this issue? 
Author:  GeekBoy [ Sun Apr 08, 2012 5:36 pm ] 
Post subject:  Re: incorrect rate announced 
Are you sure the rate is listed correctly? 
Author:  amart [ Sun Apr 08, 2012 11:06 pm ] 
Post subject:  Re: incorrect rate announced 
Yes, I have checked the rates. It only happpens with rates ending in a '0' 
Author:  GeekBoy [ Mon Apr 09, 2012 12:16 am ] 
Post subject:  Re: incorrect rate announced 
then turn on "agi set debug on," and turn up logging and verbosity in the AGI conf section both to 4 and let's see the output. 
Author:  GeekBoy [ Wed Apr 11, 2012 10:45 pm ] 
Post subject:  Re: incorrect rate announced 
I am having a similar issue once I have uploaded a rate card. I have a rate of .015 cents, but the system is stating "ZERO DOLLARS ONE CENT" Come on jroper...what is going on with this? 
Author:  jroper [ Thu Apr 12, 2012 7:25 am ] 
Post subject:  Re: incorrect rate announced 
Quote: I have a rate of .015 cents, but the system is stating "ZERO DOLLARS ONE CENT" I would say that this is expected, its only reading out the balance to 2 decimal places. I can't imagine that you would want to play "Zero Dollars and one point five cents" Joe 
Author:  GeekBoy [ Thu Apr 12, 2012 7:57 pm ] 
Post subject:  Re: incorrect rate announced 
So people can hear the correct rate?? Anyway I found where I can fix this: play_rate_cents_if_lower_one Quote: "Play the initial cost even if the cents are less than one. if cost is 0.075, we will play : 7 point 5 cents per minute. (values : yes  no) "

Author:  amart [ Fri May 25, 2012 1:52 am ] 
Post subject:  Re: incorrect rate announced 
Hello, Sorry I have out of pocket and could not respond. The issue that I am experiencing is that rates that end in zero, such as 80 cents, 70 cents, etc are announced by the system as 8 cents and 7 cents. It only happens with rates ending in or rounded to end in 0. I am not talking about the rounding of 0.015 but 0.80 or 0.804 which should be announced as 0.80 or 80 cents but are announced by the system as 0.08 or 8 cents. Thanks in advance for the help! 
Author:  dcitelecom [ Tue Jan 26, 2016 2:04 pm ] 
Post subject:  Re: incorrect rate announced 
If I understand jroper's answer correctly a2b is only reading out the balance to 2 decimal places so $0.015 becomes 0.01 and 0.601 becomes 0.60 but there is a bug here because $0.600 becomes 0.06 
Page 1 of 1  All times are UTC 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ 