powered by Jive Software

Did Openfire 'Connection refused:' connect to Asterisk-IM?

We’ve installed Asterisk and attempted to setup the SIP mapping. We’ve have ‘SIP Phone not registered’ in both Spark and Sparkweb

Below is a copy of the startup log. Did Openfire register Asterisk or visa versa?

Openfire 3.6.0 [Oct 14, 2008 8:49:10 PM]
Admin console listening at:
http://chatty.eigor.com:9091
https://chatty.eigor.com:9092
Oct 14, 2008 8:49:14 PM org.asteriskjava.manager.internal.ManagerConnectionImpl connect
INFO: Connecting to dogfood:5060
Oct 14, 2008 8:49:15 PM org.jivesoftware.openfire.plugin.red5.Red5Plugin initializePlugin
INFO: Initializing red5 Plugin
Oct 14, 2008 8:49:15 PM org.jivesoftware.openfire.plugin.red5.Red5Plugin startPlugin
INFO: Registering red5 as a component
Oct 14, 2008 8:49:15 PM org.jivesoftware.openfire.plugin.red5.PacketHandler startPacketHandler
INFO: Starting PacketHandler
Oct 14, 2008 8:49:15 PM org.jivesoftware.openfire.plugin.red5.Red5Plugin initialize
INFO: Creating web service red5
Error connecting to asterisk server Local Connection
org.asteriskjava.live.ManagerCommunicationException: Unable to login
at org.asteriskjava.live.internal.AsteriskServerImpl.initializeIfNeeded(AsteriskSe rverImpl.java:236)
at org.asteriskjava.live.internal.AsteriskServerImpl.initialize(AsteriskServerImpl .java:217)
at org.asteriskjava.live.DefaultAsteriskServer.initialize(DefaultAsteriskServer.ja va:123)
at org.jivesoftware.phone.asterisk.CustomAsteriskServer.logon(CustomAsteriskServer .java:61)
at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.connectToServer(AsteriskPh oneManager.java:120)
at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.init(AsteriskPhoneManager. java:66)
at org.jivesoftware.phone.asterisk.AsteriskPlugin.initPhoneManager(AsteriskPlugin. java:85)
at org.jivesoftware.phone.PhonePlugin.init(PhonePlugin.java:100)
at org.jivesoftware.phone.PhonePlugin$1.call(PhonePlugin.java:298)
at org.jivesoftware.phone.PhonePlugin$1.call(PhonePlugin.java:294)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
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 org.asteriskjava.util.internal.SocketConnectionFacadeImpl.(SocketConnecti onFacadeImpl.java:69)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.createSocket(ManagerCon nectionImpl.java:713)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.connect(ManagerConnecti onImpl.java:692)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.doLogin(ManagerConnecti onImpl.java:485)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnection Impl.java:433)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnection Impl.java:418)
at org.asteriskjava.manager.DefaultManagerConnection.login(DefaultManagerConnectio n.java:266)
at org.asteriskjava.live.internal.AsteriskServerImpl.initializeIfNeeded(AsteriskSe rverImpl.java:232)
… 14 more

java.lang.AbstractMethodError
at org.jivesoftware.openfire.event.SessionEventDispatcher.dispatchEvent(SessionEve ntDispatcher.java:79)
at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:148 )
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:49)
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:351)
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:101)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:311)
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler .java:79)
at org.jivesoftware.openfire.net.StanzaHandler.process0(0S8t2-10-14 20:49:17,770 [pool-7-thread-1] INFO org.red5.server.jmx.JMXAgent -aznJM XHaHTML adapter was not enabled
2a
008-10-14 20:49:17,770 [pool-7-thread-1] INFO org.red5.server.jmx.JMXAgent - JMX RMI adapter was not enabled
ndler.java:276)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:175)
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:133)
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)
at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:185)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.lang.Thread.run(Unknown Source)

2008-10-14 20:49:18,051 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings
2008-10-14 20:49:18,051 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - IO Threads: 9
2008-10-14 20:49:18,051 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - Event Threads - core: 4, max: 8, queue: -1, keepalive: 60
2008-10-14 20:49:18,067 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - TCP No Delay: true
2008-10-14 20:49:18,067 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536
2008-10-14 20:49:18,067 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360
2008-10-14 20:49:18,083 [pool-7-thread-1] INFO org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to 0.0.0.0/0.0.0.0:1935
2008-10-14 20:49:18,083 [pool-7-thread-1] INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=RTMPMinaTransport,address=0.0.0.0,port=1935
2008-10-14 20:49:18,083 [pool-7-thread-1] INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=IoServiceManager,address=0.0.0.0,port=1935
Red5SIP starting in scope sip C:\Program Files (x86)\Openfire\bin
Red5SIP starting Asterisk at dogfood
Red5SIP using RTP port range 3000-3029, using SIP port range 5060-5099
[AsteriskManager] started
2008-10-14 20:49:18,911 [Thread-41] INFO org.asteriskjava.manager.internal.ManagerConnectionImpl - Connecting to dogfood:5038
[AsteriskManager] IOException java.net.ConnectException: Connection refused: connect
[AsteriskManager] AsteriskManager is stopped

I am not familiar with Red5. Is Asterisk running?

You can see if asterisk is running by going into the CLI and issueing an asterisk -r

In you manager.conf in asterisk did you put a username and password.

If you you use the permit like below this will allow any IP or you can specify a certian IP.

[username]
secret = password
;deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0