Re: [Asterisk-java-users] Manager API logged off automatically
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-07-16 12:03:39
|
> However, I noticed that my Manager API logs off the asterisk server > after a certain amount of time. hmm what amout of time? > Is there a setting on the Asterisk server that logs off a manager API > connection after it is idle? In the case Asterisk-Java gets disconnected for whatever reason it will automatically reconnect... =20 > Is this a setting in the manager API class? No, autoreconnect is a basic feature of the ManagerConnection. What you can configure is if Asterisk-Java should also try to reconnect when authentication fails. That is disabled by default and can be enabled by using DefaultManagerConnection's setKeepAliveAfterAuthenticationFailure() method. > I could find references to this subject in either documentation, nor > in the archives. > =20 > I'm hoping to set up the Manager API server so it only needs to log in > once, and listen to events for the duration it is running. Thats the way it should work ;) To help you regarding this issue I need some further information. Please enable logging and send me the logs. The best way to do this is to include the log4j jar in your classpath along with log4.properties file that might look like this: log4j.rootCategory=3DINFO, File log4j.appender.File =3D org.apache.log4j.FileAppender log4j.appender.File.file =3D asterisk-java.log log4j.appender.File.append =3D false log4j.appender.File.layout =3D org.apache.log4j.PatternLayout log4j.appender.File.layout.ConversionPattern =3D %d %c %p - %m\n =3DStefan |