Connecting to asterisk server using asterisk-im with openfire mysql database

In our /etc/asterisk/manager.conf we have

[USERNAME]
secret = PASSWORD
ermit=127.0.0.1/255.255.255.255
read = system,call

restarted asterisk

In openfire admin cp, under asterisk-im when we type in correct server info and restart openfire through ssh, it takes forever to load asterisk-im page. If we type in wrong server info and restart openfire, the pages look correctly.

Both asterisk and openfire are on the same server and we are using mysql databases.

It is as soon we do the correct server connect and restart openfire we have problems. The reason why we restart openfire, when we put in the correct server info, only the grey icon will show. no green icon.

we are using

asterisk 1.4.22

openfire 3.6.1

asterisk-im 1.4.0

mysql 5.0.45

use

read=all

write=all

in your manager.conf

it worked. thank you.