Hi all - Searching for java agi in the mailing list archives turns up ancient posts. Anyone else using java for their AGI? How well is it working & what are you using? My script is pretty simple, and I could write it with perl easy enough, but I just would feel better if I can keep most programming code for our system in java. Thank you- Matt
Matthew Pease wrote:> Hi all - > Searching for java agi in the mailing list archives turns up ancient > posts.Have a look at http://asterisk-java.org and the tutorial at http://asterisk-java.org/development/tutorial.html - it include a hello world AGI script in Java. =Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070607/fa6aad75/signature.pgp
----- Original Message ----- From: "Matthew Pease" <matt@parkinghero.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Thursday, June 07, 2007 5:32 PM Subject: [asterisk-users] agi with java?> Hi all - > Searching for java agi in the mailing list archives turns up ancient > posts. > > Anyone else using java for their AGI? How well is it working & > what are you using? > > My script is pretty simple, and I could write it with perl easy > enough, but I just would feel better if I can keep most programming > code for our system in java. > > Thank you- > MattOur IVR system is written in Java. Our customer can call to check their account balance and pay their bill through the phone. It has been running on an old P3 machine for several years without single problem. The version of Asterisk is pretty old.
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. Just my two eurocents, l. On Thu, 07 Jun 2007 23:32:12 +0200, Matthew Pease <matt@parkinghero.com> wrote:> Hi all - > Searching for java agi in the mailing list archives turns up ancient > posts. > > Anyone else using java for their AGI? How well is it working & > what are you using? > > My script is pretty simple, and I could write it with perl easy > enough, but I just would feel better if I can keep most programming > code for our system in java. > > Thank you- > Matt-- Loway Research - Home of QueueMetrics http://queuemetrics.com
On 10 Jun 2007, at 13:29, Lenz wrote:> Hi Lee, > we are a Java shop and our experience with Java has been much the > one you say - it does scale pretty well and it is very solid. What > I was trying to say is that Java is not very well suited to the > classic, Unix-style, fire-up-process-and-let-it-die that goes for > CGI/AGI programming. On the other side, I have no doubt that with > an application server and FastAGI you can get quite a lot of bang > for the buck. :) > l.Just to encourage folks who run a mile from the whole J2EE bloated mess...... You can write a very simple FastAGI server using asterisk-java in J2SE, and run it in just about any JVM. We have been very happy with it. Tim.