Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Sep 18, 2019 1:32 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Negative cost calls break A2B.
PostPosted: Sat Nov 08, 2008 7:04 am 
Offline

Joined: Fri Feb 15, 2008 2:43 pm
Posts: 58
I'm trying to setup a system where we'll compensate users a small per minute fee (i.e. give them credit) for their US toll-free calls. This isn't working so far however.

At first it completely broke. There is a maxtime_tocall_negatif_free_route parameter in a2billing.conf but it is being ignored by the rate_engine_calcultimeout function because of:

$rateinitial = round(abs($this -> ratecard_obj[$K][12]),4);

if ($rateinitial<=0){
$this -> ratecard_obj[$K]['timeout']= $A2B->agiconfig['maxtime_tocall_negatif_free_route'];

The first statement abs's rateinitial so it cannot be negative, so it returns with an insanely high timeout which makes Asterisk break.

After first this problem (removed the abs) calls worked but there's apparently other abs's in the rating engine because calls are rated positive instead of negative.

Here's my question:

What is the purpose of the abs's being there? do they serve an actual real function or can they safely be removed? my guess is they can just be removed but I wonder if they were put in place to fix a known issue - or just nobody thought about negative cost calls? :)

Would love an answer from someone in the know (Areski?).

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group