powered by Jive Software

Unable to establish a connection to the manager server, please see error

Hi Everyone

I have AAH 2.5 and installed Wildfire, and the Asterisk-IM plugin, all on the same server. In Asterisk’'s manager_custom.conf I have the following:

secret = im

deny=0.0.0.0/0.0.0.0

permit=127.0.0.1/255.255.255.0

read = system,call,log,verbose,command,agent,user

write = system,call,log,verbose,command,agent,user

(I think the permissions are correct) but for some reason I cannot log in - as the message in the subject line indicates.

On my XP machine, I have spark installed - which is working. Do I have to add anything more to the client to work later?

Thanks

Jean

Can you connect to your manager server via telnet?

telnet {asterisk server} 5038

type in the following:

action: Login

username: {manager user}

secret: {manager password

(2 carriage returns)

It should say:

Response: Success

Message: Authentication accepted

If this succeeds disconnect by doing the following:

action: Logoff

Hi

I got the solution - had to change the IP address to the real IP of the server, not 127.0.0.1

Thanks

I have been troubleshooting this for a while and don’'t know where to proceed from here. Following are my notes.

manager.conf

;

; Asterisk Call Management support

;

enabled = yes

portno = 5038

bindaddr = 0.0.0.0

displayconnects = yes

secret =*****

deny=0.0.0.0/0.0.0.0

permit=127.0.0.1/255.255.255.0

permit=192.168.0.1/255.255.255.0

read = system,call,log,verbose,command,agent,user

write = system,call,log,verbose,command,agent,user

######################

  • PROBLEM: ERROR FROM /plugins/asterisk-im/phone-settings.jsp SHOWING NOT LOGGED IN

  • I AM ABLE TO LOGIN TO ASTERISK MONITOR FROM MACHINE HOSTING WILDFIRE “telnet 127.0.0.1 5038”

  • WILDFIRE AND ASTERISK ARE ON THE SAME MACHINE.

  • Current entry in /plugins/asterisk-im/phone-settings.jsp

Username = secret

  • Re-set above settings.

  • “asterisk -r” shows == Manager ‘‘secret’’ logged on from 127.0.0.1

  • /plugins/asterisk-im/phone-settings.jsp displays “Unable to establish a connection to the manager server, please see error log”

  • Log shows

at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:366)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

2006.02.20 17:38:52 org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp.jspService(phone 002dsettings_jsp.java:187) unable to get a manager connection : net.sf.asterisk.manager.TimeoutException: Timeout waiting for response to Command

org.jivesoftware.phone.asterisk.ManagerException: net.sf.asterisk.manager.TimeoutException: Timeout waiting for response to Command

at org.jivesoftware.phone.asterisk.DefaultManagerConnectionPool.getConnection(Defa ultManagerConnectionPool.java:83)

at org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp._jspService(phone _002dsettings_jsp.java:182)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:822)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:494)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:569)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:624)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1434)

at org.mortbay.http.HttpServer.service(HttpServer.java:896)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:366)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Caused by: net.sf.asterisk.manager.TimeoutException: Timeout waiting for response to Command

at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:632)

at net.sf.asterisk.manager.DefaultManagerConnection.sendAction(DefaultManagerConne ction.java:598)

at net.sf.asterisk.manager.DefaultManagerConnection.determineVersion(DefaultManage rConnection.java:492)

at net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConnection .java:482)

at net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConnection .java:377)

at org.jivesoftware.phone.asterisk.DefaultManagerConnectionPool$ManagerObjectPoolF actory.makeObject(DefaultManagerConnectionPool.java:44)

at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.j ava:771)

at org.jivesoftware.phone.asterisk.DefaultManagerConnectionPool.getConnection(Defa ultManagerConnectionPool.java:78)

… 31 more

Hello everyone! I’‘m configuring Asterisk Server to connect with WildFire Server 2.5.1 but the connection and configuration to Asterisk-IM failed. I Try configurate the file manager.conf in my Asterisk (following the steps write in other thread) but not works… i try read the log file but i’'m not identificate the problem.

Any Help?

Tks.

Message was edited by: mcarmello

Hello mcarmello,

For me an Asterisk-IM plugin reload fixed the connection problem.