Re: [Asterisk-java-users] Instantiating a script
Brought to you by:
srt
From: Jonathan A. <jau...@st...> - 2006-01-10 15:40:12
|
I had the same issue. You can do this by launching your own class object before launching the asterisk-java AGI engine. Something like the following will work. public static void main() { // do your startup stuff initialization(); DefaultAGIServer agi = new DefaultAGIServer(); agi.startup(); } Then you are off and running. Jonathan On Tue, 2006-01-10 at 10:15 -0500, Vadim Berezniker wrote: > The AGI server first instantiates any given handler when a request for > it comes in from asterisk. > It would be nice if there was a way to have certain handlers be > instantiated on startup. > There are certain things I want to preload befor any calls come in. > I don't want to the first call to be forced to wait until I'm done > loading. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |