Re: [Asterisk-java-users] IAX2 Connection problem
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2006-10-16 23:10:31
|
Did you enable the manager api in manager.conf? Did you make sure no firewall is preventing traffic to port 5039 (the manager api port) on the Asterisk box? Did you verify by telnet or some similar tool that you can actually access the manager api from the machine running your application? Note: The manager api uses a completly different protocol and connection than IAX2. =3DStefan Eric C. wrote: > I'm trying to use the HelloManager example from:=20 > http://asterisk-java.org/0.3-m1/tutorial.html but am not getting anywhe= re. >=20 > I have asterisk configured properly and it works whenever I put a *.cal= l=20 > file in the /var/spool/asterisk/outgoing directory. >=20 > My problem is that I get the error: > java.net.ConnectException: Connection refused >=20 > I have a softphone setup so that it can call the asterisk pbx and hear = the=20 > demo messages like the echo test and so on. >=20 > I have the following but do not know what is going on. >=20 > ManagerConnectionFactory factory =3D new=20 > ManagerConnectionFactory("192.168.0.100", "softPhoneUserName",=20 > "softPhonePassword"); >=20 >=20 > originateAction =3D new OriginateAction(); > originateAction.setChannel("IAX2/softPhoneUserName"); > originateAction.setContext("ContextProviderAsDefinedIn-IAX.CONF"); > originateAction.setExten("600"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(30000)); >=20 >=20 > I really need help with this. >=20 > thanks, > Eric. >=20 >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |