Re: [Asterisk-java-users] Newbie to asterisk-java, connecting to asterisk manager exception
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-10-13 00:44:21
|
Hi Christopher, > There is no firewall set, asterisk is running and the manager is enable= d > as > per the instructions. I get this from the stack trace though........ > > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:1= 71) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > at java.net.Socket.connect(Socket.java:452) hmm you did not include the exception message, that makes things a little bit harder... I suppose what you got was a "Connection refused" exception that means you supplied a wrong hostname/ip address or port or the Asterisk server does not listen on the manager port (or there _is_ a firewall ;). Make sure your asterisk is configured properly (and restarted afterwards) and test the connection from the machine running Asterisk-Java via telnet (port 5038). =3DStefan |