[Asterisk-Users] Re: Nested MySQL Commands
Douglas Garstang
dgarstang at oneeighty.com
Wed Jan 11 16:58:34 MST 2006
I don't get the whole concept of FastAGI. It's nothing special. Asterisk just opens a connection to a TCP port instead of executing a binary.
-----Original Message-----
From: Mike Fedyk [mailto:mfedyk at mikefedyk.com]
Sent: Wednesday, January 11, 2006 4:32 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Re: Nested MySQL Commands
Tony Mountifield wrote:
>In article <645FEC31A18FE54A8721500CDD55A7B602B425B7 at mail.oneeighty.com>,
>Douglas Garstang <dgarstang at oneeighty.com> 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.
>
And if you like writing your AGIs in interpreted languages, there is
always FastAGI.
_______________________________________________
--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
More information about the asterisk-users
mailing list