[asterisk-users] agi with java?
    Lee Jenkins 
    lee at datatrakpos.com
       
    Fri Jun  8 11:07:50 CDT 2007
    
    
  
Lenz wrote:
> 
> Hello Matthew,
> Java is not a great solution for AGIs because they are script you should 
> fire up and terminate very fast, while the overhead of launching a JVM, 
> loading all classes, etc, is pretty large. Also, you don't want multiple 
> JVMs in parallel loading everything multiple times.
> 
> This is not to say AGI is not feasible: you should look for FastAGI, 
> where * connects to an external server with resident proceses, and that 
> suits the Java model much better. Of course, if all you want to do is 
> lookup the callerid on mysql or something just as trivial, go for a 
> 20-line Perl script.
> 
We have found that generally speaking, running the FastAGI server on the 
same machine as Asterisk yields better performance than launching 
separate exe processes through the dial plan.
Completely anecdotal of course. This is careful research conducted over 
our entire 5 customer base...
-- 
Warm Regards,
Lee
    
    
More information about the asterisk-users
mailing list