Re: [Asterisk-java-users] DefaultAGIServer with Tomcat Startup error
Brought to you by:
srt
From: Thameem A. <tha...@ya...> - 2006-04-18 08:16:41
|
Hi Stefan, Thanks for your valuable info..that works and saved my time. Great Help. Thanks, Thameem Stefan Reuter <sr...@re...> wrote: Hi Thameem, you must run the AGIServer in its own thread for this to work, otherwise tomcat just waits until the AGIServer is shutdown, which is not what you want :) Asterisk-Java contains the small convenience class AGIServerThread just for this case. Use it like this: public void init() throws ServletException { AGIServerThread serverThread = new AGIServerThread(); server = new DefaultAGIServer(); serverThread.setAgiServer(server); try{ serverThread.startup(); }catch(Exception ep){ logger.error("Error starting the DefaultAGIServer..."+ep,ep); } } =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |