In article <[EMAIL PROTECTED]>,
Douglas Garstang <[EMAIL PROTECTED]> wrote:
> Peter,
> 
> Too slow! We're going to potentially be doing several MySQL lookups for 
> routing even the
> most basic of calls, and if every one of those queries has to make a call out 
> to an AGI
> script, it would become a performance problem.

AGI is only slow if you're calling it repeatedly and implementing it in
a scripting language that needs a big interpreter.

I have had great success writing AGIs in C and interfacing to MySQL
from within them. They end up nice and small and fast. A single AGI
invocation does all the database transactions necessary to decide
on the disposition of the call, and then jumps to the appropriate
extension and priority in the dialplan.

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to