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

Slow performance
http://forum.asterisk2billing.org/viewtopic.php?f=18&t=10778
Page 1 of 1

Author:  dcitelecom [ Wed Apr 09, 2014 4:14 pm ]
Post subject:  Slow performance

I have a2billing (2.06) configured to play the balance after the user enters the destination number and I noticed that it takes a long time before the voice prompt starts playing "the balance on your account is...."

I tested from a callerID verified account and entered the destination number followed by the # key. I took SIX seconds before a2billing started playing the prompt and I don't understand why it's taking this long. After pressing the # (end) key it should take a fraction of a second to query the database and play the balance. Our legacy system also has a huge rate table and it takes a split second for the same operation. Any suggestions on how to speed this up? Thanks.

Author:  bucasia [ Thu Apr 10, 2014 7:26 am ]
Post subject:  Re: Slow performance

Don't suppose you have a2billing debugging level in the AGI-CONF turned up (to 4)? That can slow things down like that.

Author:  dcitelecom [ Wed Apr 16, 2014 1:47 pm ]
Post subject:  Re: Slow performance

Thanks for the reply.
Verbosity level = 1
Logging_level = 1

The problem is not performance as such. The delay is only after the user enters the destination number. We play "the balance on your account is $$$ and the cost of the call is $$$

I guess during the 6 seconds delay a2b does the rate lookup and calculates time allowed for the call but 6 seconds is a lot for this type of lookup in an SQL table.

Author:  jroper [ Wed Apr 16, 2014 3:34 pm ]
Post subject:  Re: Slow performance

Hi

Set the verbosity to 0, and then test again.

It's not just SQL lookups, it's writing to disk several times as well, e.g. the AGI log is writing to file, as is the Asterisk system writing to its log file(s) as well as rendering to the console.

Are you pressing # at the end of dialling the telephone number?

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/