Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 11:30 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Can't call out through A2Billing - Not enough credit
PostPosted: Thu May 28, 2009 3:50 am 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
Hi,

Does anyone know the reason why I get the following line in the Asterisk CLI when I try to callout through A2Billing.

Playing 'prepaid-no-enough-credit-stop' (escape_digits=#) (sample_offset 0)

This is preventing the call proceeding out the trunk.

I do not see where I have a problem with available credit for my customer in A2Billing. What are the configurations in A2Billing which would cause this message to be played?

I don't believe that I had this problem previously with earlier versions of A2Billing 1.4 Beta.

The following is output in the Asterisk CLI for lines around the line shown above:

a2billing.php|1: [CREDIT : 17.9895][CREDIT MIN_CREDIT_2CALL : 0] ::> 3
a2billing.php|1: file:a2billing.php - line:201 - uniqueid:1243481061.41 - TARIFF ID -> 1 ::> 3
-- Playing 'prepaid-no-enough-credit-stop' (escape_digits=#) (sample_offset 0)
a2billing.php|1: file:a2billing.php - line:208 - uniqueid:1243481061.41 - [STOP STREAM FILE prepaid-no-enough-credit-stop] ::> 4
a2billing.php|1: file:a2billing.php - line:232 - uniqueid:1243481061.41 - [SET MAIL REMINDER - NOT ENOUGH CREDIT] ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:720 - uniqueid:1243481061.41 - [CARD STATUS UPDATE] ::> 4
-- AGI Script a2billing.php completed, returning 0

Thanks in advance for any help.


Top
 Profile  
 
 Post subject: Re: Can't call out through A2Billing - Not enough credit
PostPosted: Thu May 28, 2009 7:25 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Use the ratecard simulator to check the price of the call - to make sure you have not moved a decimal place.

Check the customer has credit on the account to make the call as above.

Check in the agi-conf that the Minimum Credit to Call is set to something less that the credit available to the customer.

Joe


Top
 Profile  
 
 Post subject: Re: Can't call out through A2Billing - Not enough credit
PostPosted: Thu May 28, 2009 12:33 pm 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
Hi

I upgraded yesterday from an old 1.4 version to the latest and got the same issue...

I originally had copied the common/lib dir into the /var/lib/asterisk/agi-bin directory, and when I upgraded, I hadnt updated this directory...

I solved the issue by upgrading this dir to the latest version,

hope this works for you,

jean


Top
 Profile  
 
 Post subject: Re: Can't call out through A2Billing - Not enough credit
PostPosted: Thu May 28, 2009 2:27 pm 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
First of all, Joe

Thanks for the reminders on checking entries in A2Billing. However, I had already gone through that and could not find anything wrong. Besides, the line in Asterisk CLI which I posted (see below) would seem to tell me that this should not be a problem.

a2billing.php|1: [CREDIT : 17.9895][CREDIT MIN_CREDIT_2CALL : 0] ::> 3

Jean,

I did check the /var/lib/asterisk/agi-bin directory and found that some files had been updated when I checked out the latest build. However, the a2billing.php file was still for the older build.

As I use the procedure in the post for A2Billing 1.4 Beta Install

viewtopic.php?p=21068

which uses sim links to the /var/asterisk/a2billing-install/trunk to update my beta install, it appears that I need to include the copying of the a2billing.php file in /var/a2billing-install/trunk/AGI to /var/lib/asterisk/agi-bin. (or link them)

After copying the new a2billing.php file into /var/lib/asterisk/agi-bin, I no longer have the problem calling out through A2Billing.

Thanks again to Jean and Joe for your help.

Dave


Top
 Profile  
 
 Post subject: Re: Can't call out through A2Billing - Not enough credit
PostPosted: Sun Jul 05, 2009 7:26 am 
Offline

Joined: Wed Jan 30, 2008 6:19 pm
Posts: 4
check the line 763 at class.a2billing.php

if ( (!$test_package || $this->credit < $this->agiconfig['min_credit_2call']) && $A2B -> typepaid==0) return true;

'<' it should be '>' which it means if the credit morethen the min_credit to call the return true.

i hope the developer read my posting and fix this in next release


Top
 Profile  
 
 Post subject: Re: Can't call out through A2Billing - Not enough credit
PostPosted: Tue Jul 07, 2009 7:56 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
afadxb wrote:
i hope the developer read my posting and fix this in next release
Whenever you're sure you've found a bug (rather than being unsure of how to configure things), feel free to open a ticket on our bugtracker. Bug-tickets are a lot harder to forget about than forum posts. ;-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 31 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group