tomchadwin

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

Discussion created by tomchadwin on Jul 7, 2006
Latest reply on Jul 7, 2006 by tomchadwin

Hello all

 

I have Asterisk, Wildfire, ans Asterisk-IM just installed on Debian. Asterisk and Wildfire are working. After filling in the details on the asterisk-im tab in Wildfire, I get the message:

 

Unable to establish a connection to the telephony server, please see error log

 

On the Asterisk console, I see:

 

NOTICE[30459]: manager.c:529 authenticate: 127.0.0.1 failed to pass IP ACL as ''asteriskim''

Connect attempt from ''127.0.0.1'' unable to authenticate

 

My manager.conf file is:

 

enabled=yes

port = 5038

bindaddr = 127.0.0.1 ; I''ve also tried 0.0.0.0 and the machine''s IP address

 

secret=im

deny=0.0.0.0/0.0.0.0

allow=127.0.0.1/255.0.0.0 ;I''ve also tried other masks, though this is what ifconfig says my loopback is

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

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

 

The settings in the Widlfire asterisk-im tab are:

 

Enabled: Yes

Server: 127.0.0.1

Port: 5038

Username: asteriskim

Password: im

 

Error log:

 

2006.07.07 16:41:50 org.jivesoftware.phone.asterisk.AsteriskPlugin.initPhoneManager(AsteriskPlugin.j ava:84)

net.sf.asterisk.manager.AuthenticationFailedException: Authentication failed

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

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

at net.sf.asterisk.manager.DefaultAsteriskManager.initialize(DefaultAsteriskManage r.java:153)

at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.init(AsteriskPhoneManager. java:91)

at org.jivesoftware.phone.asterisk.AsteriskPlugin.initPhoneManager(AsteriskPlugin. java:81)

at org.jivesoftware.phone.PhonePlugin.init(PhonePlugin.java:71)

at org.jivesoftware.phone.PhonePlugin.restart(PhonePlugin.java:167)

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

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

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

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

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

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

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

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

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

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

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

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

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:821)

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

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

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

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

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

Info log:

 

2006.07.07 16:41:47 unloading asterisk-im plugin resources

2006.07.07 16:41:47 Unregistering phone plugin as a component

2006.07.07 16:41:48 Initializing phone plugin

2006.07.07 16:41:48 Initializing Asterisk Manager connection

2006.07.07 16:41:48 Connecting to 127.0.0.1 port 5038

2006.07.07 16:41:48 Connected via Asterisk Call Manager/1.0

2006.07.07 16:41:50 Closing socket.

2006.07.07 16:41:50 Registering phone plugin as a component

2006.07.07 16:41:50 IOException while reading from asterisk server, terminating reader thread: Socket closed

 

Could this be to do with my Debian set-up? I know little of Linux, and this could be a network set-up issue, perhaps?

 

Thanks

 

Tom

Outcomes