fbunjaku

Problems with Asterisk-IM and AAH2.1

Discussion created by fbunjaku on Jan 16, 2006
Latest reply on Jan 16, 2006 by fbunjaku

Hi,

 

I have installed WildFire in same PC with AAH2.1 (CentOS 4.x). I use native DB.

 

/etc/asterisk/manager:[/b]

enabled = yes

port = 5038

bindaddr = localhost

 

secret = ****

deny=0.0.0.0/0.0.0.0

permit=82.114.70.26/255.255.255.255

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

 

secret = *****

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

 

In ASTERIKS-IM:[/b]

 

  • Enabled:   Yes

 

  • Server:    127.0.0.1

Port:    1235

  • Username: asteriskim   

  • Password:    *****

Pool Size:   

Asterisk Context:   

Default Caller ID:   

Dial Command Variables:   

 

 

AstManProxy (astmanproxy: Version 1.13, (C) David C. Troy)

installed and config as follows:[/b]

; List of asterisk host(s) you want to proxy

; host = ip_addr, port, user, secret, events

host = localhost, 5038, admin, *****, on

 

 

listenaddress = *

 

; Port for proxy to listen on

listenport = 1235

 

 

I constantly receive the error: Unable to establish a connection to the manager server, please see error log

 

The ERROR LOG:[/b]2006.01.16 20:02:44 Connection refused

java.net.ConnectException: Connection refused

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.PlainSocketImpl.doConnect(Unknown Source)

        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

        at java.net.PlainSocketImpl.connect(Unknown Source)

        at java.net.SocksSocketImpl.connect(Unknown Source)

        at java.net.Socket.connect(Unknown Source)

        at net.sf.asterisk.io.impl.SocketConnectionFacadeImpl.(SocketConnectionFacadeImpl. java:52)

        at net.sf.asterisk.manager.DefaultManagerConnection.createSocket(DefaultManagerCon nection.java:539)

        at net.sf.asterisk.manager.DefaultManagerConnection.connect(DefaultManagerConnecti on.java:528)

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

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

        at org.jivesoftware.phone.asterisk.DefaultManagerConnectionPool$ManagerObjectPoolF actory.makeObject(DefaultManagerCo$

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

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

        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)

....

 

 

Any idea?

 

Thnx,

FB

 

P.S. I receive same error when I install the WildFire Server in Windows and try to connect to remote Asterisk.

Outcomes