On Wed, 21 Oct 2009, Christophorus Laube wrote: > Using the nvcmdline utility you should use bash AGI or something more > scripty.
I'd suggest something way less scripty like C and a proper API if available. You can execute xxx AGIs written in C in the time it takes a PHP or Perl interpreter to load. (I haven't "benched" bash.) Executing agi() creates a process. Every shell command you execute creates a process. Creating all these processes is not free. Creating a process takes a huge amount of resources (time, CPU, memory, disk). Using a proper API eliminates all the shell command nonsense. Recently, somebody posted a shell script to extract lines from a queue log and warned that it could take a long time to execute. Re-coding the script in C reduced the execution time to almost 1/3,000th of the original execution time. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards [email protected] Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
