Asterisk
2005-Aug-18 13:01 UTC
[Asterisk-Users] Which AGI Development Software is fastest on Asterisk?
I'm looking to develop some custom AGI that will be MySQL intensive. It appears Asterisk supports many different development environments. Which would be best suited for Asterisk and MySQL? Bart
Stefan Reuter
2005-Aug-18 13:20 UTC
[Asterisk-Users] Which AGI Development Software is fastest on Asterisk?
On Thu, 2005-08-18 at 13:01 -0700, Asterisk wrote:> I'm looking to develop some custom AGI that will be MySQL intensive. It > appears Asterisk supports many different development environments. Which > would be best suited for Asterisk and MySQL?First you should decide if you want to run short lived AGI script processes on the same box along with Asterisk or want Asterisk to connect to one long lived process that serves multiple calls via TCP/IP (FastAGI). Usually you will prefer FastAGI as it allows AGI scripts to be processed on a different machine if needed and eliminates the cost of spawning a process (and additional setup like opening a db connection) for each call. Next you want to decide on you favorite programming language, there is support for almost everything. Have a look at http://www.voip-info.org/tiki-index.php?page=Asterisk%20AGI If you want go with Java have a look at Asterisk-Java's support for FastAGI at http://asterisk-java.sourceforge.net/tutorial.html =Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050818/c7f3a75d/attachment.pgp
Matthew Boehm
2005-Aug-18 13:42 UTC
[Asterisk-Users] Which AGI Development Software is fastest on Asterisk?
Asterisk wrote:> I'm looking to develop some custom AGI that will be MySQL intensive. It > appears Asterisk supports many different development environments. Which > would be best suited for Asterisk and MySQL? > > BartI use PHP. Love it. Fast, Easy. -Matthew
Roger Schreiter
2005-Aug-18 14:50 UTC
[Asterisk-Users] Which AGI Development Software is fastest on Asterisk?
Asterisk schrieb:> I'm looking to develop some custom AGI that will be MySQL intensive. It > appears Asterisk supports many different development environments. Which > would be best suited for Asterisk and MySQL?Hi, this is the same question as for other applications: Use C, if you want to optimize runtime, use Perl or PHP if you need fast developement. I've developed AGIs in C as well as in Perl. Both languages are suited well, with its respective advantages and disadvantages. Others report good experience with PHP, Python, and some are even using Java. The interface to asterisk is just stdin and stdout and a little parsing. So don't worry too much whether your preferred programming language is suitable for AGI programming! Roger.
Matt King
2005-Aug-18 17:18 UTC
[Asterisk-Users] Re: Which AGI Development Software is fastest on Asterisk?
Hello,> I'm looking to develop some custom AGI that will be MySQL intensive. It > appears Asterisk supports many different development environments. Which > would be best suited for Asterisk and MySQL?It's generally fastest to use FastAGI (over TCP/IP), rather than regular AGI as this means the OS isn't starting a new process for each call (just like it's faster to use PHP or Servlets rather than old-school CGI for serving web pages). This also means you can run your AGI application on a different server, if you want to, so as not to compromise Asterisk performance. If you know Java, you could try OrderlyCalls at http://orderlycalls.sourceforge.net (disclaimer - written by me!) which has full FastAGI and Manager support, reusable object pooling, and can be run inside Tomcat to build integrated web and telephony applications, though there are other packages out there, including Asterisk-Java ( http://asterisk-java.sourceforge.net - written by Stefan Reuter). Hope this helps, Matt King, Orderly Software http://www.orderlyq.com - probably the most advanced queue system in the world!
Maybe Matching Threads
- Which Java FastAGI implementation has the most "market share"?
- Which AGI Development Software is fastest onAsterisk?
- Re: New JAVA application server for Asterisk - OrderlyCalls
- Question about AGI vs. FastAGI vs. straight C/DB development
- FastAGI Connection Failure and Hangup