[Asterisk-java-users] IAX2 Connection problem
Brought to you by:
srt
From: Eric C. <zip...@ho...> - 2006-10-16 23:05:16
|
I'm trying to use the HelloManager example from: http://asterisk-java.org/0.3-m1/tutorial.html but am not getting anywhere. I have asterisk configured properly and it works whenever I put a *.call file in the /var/spool/asterisk/outgoing directory. My problem is that I get the error: java.net.ConnectException: Connection refused I have a softphone setup so that it can call the asterisk pbx and hear the demo messages like the echo test and so on. I have the following but do not know what is going on. ManagerConnectionFactory factory = new ManagerConnectionFactory("192.168.0.100", "softPhoneUserName", "softPhonePassword"); originateAction = new OriginateAction(); originateAction.setChannel("IAX2/softPhoneUserName"); originateAction.setContext("ContextProviderAsDefinedIn-IAX.CONF"); originateAction.setExten("600"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); I really need help with this. thanks, Eric. |