Queue agents to Invalid when Asterisk restarts outside of FreePBX

Hi,

Running FreePBX 2.5.2.2 with Asterisk 1.6.1.8 on CentOS 5.4 (32bit).

We have several call queues setup. Most are Dynamic users and several are Static users. What is happening is that if Astersk is restarted (core dump :(, service asterisk restart or amportal restart) then all users that are logged into the queue change to state Invalid.

rasterisk -x ‘queue show ###’

has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime), W:0, C:0, A:0, SL:0.0% within 0s

Members:
Local/[email protected]/n (Invalid) has taken no calls yet
Local/[email protected]/n (Invalid) has taken no calls yet
No Callers

If the user is a dynamic user, they can log out/log in and take calls again.

To get everyone online again quickly (or for the static agents) I need to make FreePBX think a change is made and then have it reload its configuration and all works again. Alternatively I can issue a “module reload app_queue.so” from the Asterisk CLI and then things are fixed.

Is anyone else having the same problem? What may be causing this and anyone have a fix?

Thanks

Thanks for that.

I was very close already. I had those modules listed for load and not preload.

The above fixed the problem.

Add these two lines in your modules.conf:
preload => pbx_config.so
preload => chan_local.so

Add them right after autoload=yes

See ticket http://www.freepbx.org/trac/ticket/3963 for more info

2 mickecarlsson
Thank you for help! I waste a few days to fix this issue. Now its working great!