Sometimes a phone i a queue does not ring


I’ve been experiencing this problem for a while and even though . I have a FreePBX (no v 2.9) running in a Asterisk (now 1.4.42). From now an then one of the phones in a queue does not ring.
I’ve been able to see that when this happens I get a manager unable to connect message, something like that:

VERBOSE[15276] logger.c: == Connect attempt from ‘’ unable to authenticate

and of course the macro-dial returns:
VERBOSE[15239] logger.c: – Executing [s@macro-dial:4] NoOp(“Local/108@from-queue-ffec,2”, "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack

So, from what I understand: the queue tries to ring that extension. However, since the dialstatus can’t determine the state of the extension, there is not DIAL to that extension.

The funny thing is that this does not happen all the time, is kind of randomly.
To me, it looks like this started when I upraded from freepbx 2.5 to 2.5 (not sure though). After that, I’ve tried different asterisk versions and I’ve upgraded to version 2.9

I’ve checked the other related posts, however I think my issue is not a manager authentication problem with the dialparties since it does not happen all the time.

The permissions for /var/lib/asterisk/agi-bin are:

-rwxrwxrwx 1 asterisk asterisk 1742 Jul 21 15:48 agi-test.agi
-rwxr-xr-- 1 asterisk asterisk 1872 Aug 2 15:32 checksound.agi
-rwxr-xr-- 1 asterisk asterisk 32609 Aug 2 15:32 dialparties.agi
-rwxr-xr-- 1 asterisk asterisk 13303 Aug 2 15:32 directory
-rwxrwxrwx 1 asterisk asterisk 4435 Mar 28 05:31 directory.agi
-rwxrwxr-x 1 asterisk asterisk 12903 Mar 28 05:31 directory.lib.php
-rwxrwxr-x 1 asterisk asterisk 83423 Jul 21 15:48 eagi-sphinx-test
-rwxrwxr-x 1 asterisk asterisk 115451 Jul 21 15:48 eagi-test
-rwxr-xr-- 1 asterisk asterisk 5683 Aug 2 15:32 enumlookup.agi
-rwxr-xr-- 1 asterisk asterisk 1613 Aug 2 15:32 fixlocalprefix
-rwxrwxrwx 1 asterisk asterisk 14530 Jul 21 15:48 jukebox.agi
-rwxr-xr-- 1 asterisk asterisk 2003 Aug 2 15:32 list-item-remove.php
-rwxr-xr-- 1 asterisk asterisk 10262 Aug 2 15:32 pbdirectory
-rwxrwxr-x 1 asterisk asterisk 31772 Aug 2 15:29 phpagi-asmanager.php
-rwxrwxr-x 1 asterisk asterisk 65908 Aug 2 15:29 phpagi.php
-rwxr-xr-- 1 asterisk asterisk 3657 Aug 2 15:32 queue_devstate.agi
-rwxrwxr-- 1 asterisk asterisk 4001 Apr 3 08:15 recordingcheck
-rwxr-xr-- 1 asterisk asterisk 21211 Aug 2 15:32 sql.php
-rwxr-xr-- 1 asterisk asterisk 18634 Aug 2 15:32 user_login_out.agi


What other pieces of software connect to the asterisk manager. I have seen this when to many pieces of software are trying to connect or send alot of information to the AMI. Mainly things like Aastra XML, Click to Dial software, FOP, iSYmphony.

Hi Tony,

Nothing, not even FOP which I disabled to reduce load on the system since we don’t use it. Nothing is trying to connect to the manager except FreePBX.

I’ve done more than 100 Asterisk+FreePBX boxes and I’ve never had this issue (or I haven’t noticed that). I am using CentOS 5.5 64bit and this is a plain FreePBX+Asterisk installation. It is true that I have a Clustered system (2 servers running heartbeat, pacemaker and DRBD. However, that is working fine and it is not the first time I do that.

Could this problem be originated due to excessive load ? The only thing I don’t like is that system uses a lot of Blacklist number to block telemarketers and it has like 20000+ DID, XD.

What would be the cause why DIALPARTIES can’t gather the extension state ?? maybe the manager is overloaded ? and there is any timeout that prevents the socket to be established ?

This is a SUPERMICRO server with 2 8core AMD 64 bit processors and 8Gb RAM.

Thanks Tony!