Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 8:05 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: In Use
PostPosted: Mon Jan 05, 2009 9:25 am 
Offline

Joined: Wed Aug 27, 2008 11:30 am
Posts: 108
Dear All,
I have a huge number of customers that are not be able to make any calls...After checking their accounts through a2billing Interface, I found out that the In use field is set to 1 and the customer was not making any call...So it seems that A2b did not set this value to 0 after the user hang up the call...

Can you please let me know what could be the issue here...Maybe it's a load problem or is there something else?

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2009 11:15 am 
Offline
User avatar

Joined: Wed Aug 20, 2008 9:37 am
Posts: 51
Location: India
"Install PHP-PCNTL - a requirement of A2Billing", as found in the documentation. This might help you.

wget http://dfn.dl.sourceforge.net/sourcefor ... 1.i386.rpm

rpm -iv php-pcntl-4.3.11-2.5.1.i386.rpm

Vino


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 3:38 pm 
Offline

Joined: Wed Aug 27, 2008 11:30 am
Posts: 108
Dear Sir,
It's already installed

[root@localhost ~]# php -m | grep pcntl
pcntl
regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 10:21 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
Well the quick fix is to set them all to zero until you find the root cause. I sometimes get it, but not that often. Only an issue if you have single access set. I even get -1 on occasions.

What version of A2B is installed? If you have huge number of users, do you have enough connections in database config? You might be running out of connections

regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 2:50 pm 
Offline
User avatar

Joined: Wed Aug 20, 2008 9:37 am
Posts: 51
Location: India
Alternatively you can set "Simultaneous Access" to the card in order to prevent it going from "InUse = 0"

Vino


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 3:09 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
vinoddestiny wrote:
Alternatively you can set "Simultaneous Access" to the card in order to prevent it going from "InUse = 0"
That won't prevent or cure the problem, but it will make A2B ignore it. Allowing simultaneous usage on pre-paid cards can lose you money, as the balance can decrease significantly below 0 if there are several active calls.

michofr, are you seeing valid call durations and costs being written to A2B's CDRs?
Possible causes are using AGI() rather than DeadAGI(), and certain versions of Asterisk (v1.2.16 - v1.2.24, and possibly some old v1.4 versions too).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 11:35 pm 
Offline

Joined: Wed Aug 27, 2008 11:30 am
Posts: 108
Dear Sir,

Stavros you are right...I cannot increase the number of simultaneous calls on a single account because I'm running prepaid business and offering promotions...If I'll do that I'll lost money

Regarding the a2b context, I'm using DeadAGI as you can see below:

[a2billing]
exten => _X.,1,DeadAGI,a2billing.php
exten => _X.,n,Wait,10
exten => _X.,n,Hangup

My Asterisk version is "Asterisk 1.4.21.2"...
Regarding the last question, do you ask if I can find calls with wrong durations and Cost?

Finally I have a question about how much concurrent users an A2B system can handle?

Regards

Added after 5 minutes:

I forget the A2B version

Asterisk2Billing - Version 1.3.3 (Doudou08)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2009 1:11 pm 
Offline

Joined: Fri Aug 08, 2008 12:24 pm
Posts: 81
Location: newark, DE
The concurrent users will be based on the Asterisk switch. With the right codec and RAM, you shoulbe be able to do 80 to 240 concurrent calls.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2009 4:49 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Not forgetting to increase the number of MySQL concurrent connections, which I thing is set to 100 by default in MySQL

Each call requires one DB Connection.

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 11:32 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
In most other DB implementations, there is such a thing as a pooled connection, is this not possible with MySQL? or is it a PHP limitation?

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 11:49 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
It's not a native PHP feature, but apparently it is possible.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 5:32 am 
Offline

Joined: Thu Nov 20, 2008 6:02 am
Posts: 68
jmartin wrote:
The concurrent users will be based on the Asterisk switch. With the right codec and RAM, you shoulbe be able to do 80 to 240 concurrent calls.


80 - 240 is a big difference. What is the hardware requirement for 80 and what is hardware requirement for 240?

Thanks

Charlie


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 8:08 am 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
stavros wrote:
It's not a native PHP feature, but apparently it is possible.


IMHO mod_php should already be doing that.

But, the problem is that we are not in apache, but standalone PHP processes. There, pooling cannot work accross them.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 8:10 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You can still use pg_pool or sqlrelay to consolidate multiple sporadic connections into a few permanent connections.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2009 11:02 am 
Offline

Joined: Wed Aug 27, 2008 11:30 am
Posts: 108
Dear Sir,

Is there any limitation on the number of concurrent calls on a2billing other that the RAM and CPU...Which mean can I reach 1000 concurrent calls on a2billing on the same server if i have the right hardware.?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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