Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 11:56 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: incorrect rate announced
PostPosted: Wed Mar 28, 2012 2:24 am 
Offline

Joined: Thu Feb 02, 2012 1:48 pm
Posts: 9
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?


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Sun Apr 08, 2012 5:36 pm 
Offline

Joined: Sat Oct 13, 2007 4:07 am
Posts: 189
Are you sure the rate is listed correctly?


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Sun Apr 08, 2012 11:06 pm 
Offline

Joined: Thu Feb 02, 2012 1:48 pm
Posts: 9
Yes, I have checked the rates. It only happpens with rates ending in a '0'


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Mon Apr 09, 2012 12:16 am 
Offline

Joined: Sat Oct 13, 2007 4:07 am
Posts: 189
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.


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Wed Apr 11, 2012 10:45 pm 
Offline

Joined: Sat Oct 13, 2007 4:07 am
Posts: 189
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?


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Thu Apr 12, 2012 7:25 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
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


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Thu Apr 12, 2012 7:57 pm 
Offline

Joined: Sat Oct 13, 2007 4:07 am
Posts: 189
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) "


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Fri May 25, 2012 1:52 am 
Offline

Joined: Thu Feb 02, 2012 1:48 pm
Posts: 9
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!


Top
 Profile  
 
 Post subject: Re: incorrect rate announced
PostPosted: Tue Jan 26, 2016 2:04 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 4:05 am
Posts: 95
Location: Canada
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group